]> cygwin.com Git - cygwin-apps/setup.git/blame - ChangeLog
2002-07-13 Robert Collins <rbtcollins@hotmail.com>
[cygwin-apps/setup.git] / ChangeLog
CommitLineData
4f591f9d
RC
12002-07-13 Robert Collins <rbtcollins@hotmail.com>
2
3 * PickPackageLine.cc (PickPackageLine::click): Set requirements for
4 packages under all circumstances - slightly higher overheader, simpler
5 code.
6 * download.cc (do_download_thread): Correctly download source
7 packages.
8 * package_meta.cc (checkForInstalled): Remove.
9 (checkForUpgradeable): Ditto.
10 (checkForSatisfiable): Ditto.
11 (processOneDependency): Ditto.
12 (packagemeta::set_requirements): Move guts to packageversion.
13 * package_version.cc (checkForInstalled): Copied from package_meta.cc.
14 (checkForUpgradeable): Ditto.
15 (checkForSatisfiable): Ditto.
16 (processOneDependency): Ditto.
17 (packageversion::set_requirements): Ditto.
18 * package_version.h (packageversion::set_requirements): Declare.
19
b1ff53ed
RC
202002-07-13 Robert Collins <rbtcollins@hotmail.com>
21
22 * IniDBBuilder.cc (IniDBBuilder::buildBeginBuildDepends): Implement.
23 (IniDBBuilder::buildBeginBinary): Implement.
24 * IniDBBuilder.h (IniDBBuilder::buildBeginBuildDepends): Declare.
25 (IniDBBuilder::buildBeginBinary): Ditto.
26 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildBeginBuildDepends):
27 Implement.
28 (IniDBBuilderPackage::buildBeginBinary): Ditto.
29 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildBeginBuildDepends):
30 Declare.
31 (IniDBBuilderPackage::buildBeginBinary): Ditto.
32 * inilex.l: Recognise Build-Depends-Indep, [,], >, < and remove
33 T_UNKNOWN.
34 * iniparse.y: Full support for parsing a debian Sources file in-line in
35 setup.ini.
36 * package_version.cc (packageversion::binaries): Implement.
37 * package_version.h (packageversion::binaries): Declare list of what
38 packages are created from a given source package.
39 (_packageversion::binaries): Ditto.
40
233a3e17
RC
412002-07-10 Robert Collins <rbtcollins@hotmail.com>
42
43 * iniparse.y: Add basis for support for parsing a debian Sources file.
44 * inilex.l: Ditto.
45
cfae3b8d
RC
462002-07-09 Robert Collins <rbtcollins@hotmail.com>
47
48 Change custom container code for packagedb::packages to STL containers
49 throughout.
50 * IniDBBuilderPackage.cc: Ditto.
51 * PickView.cc: Ditto.
52 * choose.cc: Ditto.
53 * desktop.cc: Ditto.
54 * download.cc: Ditto.
55 * install.cc: Ditto.
56 * package_db.cc: Ditto.
57 * package_db.h: Ditto.
58 * Makefile.am: Remove list.h references.
59 * list.h: Remove.
60
09130e58
RC
612002-07-08 Max Bowsher <maxb@ukf.net>
62
63 * PickView.cc (PickView::PickView): Set font of package list header to
64 the same as used in the rest of the package list.
65
a75ed5ce
RC
662002-07-08 Robert Collins <rbtcollins@hotmail.com>
67
68 * install.cc (NoReplaceOnReboot): New command line option to prevent
69 replacing in use files.
70 (install_one_source): Check the option and use it.
71 * README: Update TODO lists.
72
0cf68afd
RC
732002-07-08 Robert Collins <rbtcollins@hotmail.com>
74
75 * PickCategoryLine.cc: Change bucket to use STL container syntax
76 throughout.
77 (PickCategoryLine::paint): Use new Category type syntax.
78 * PickCategoryLine.h: Use STL vectors rather than custom containers
79 throughout.
80 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageCategory):
81 Use new add_category syntax.
82 * PickView.cc (PickView::insert_pkg): Use new Category type syntax.
83 (PickView::insert_category): Ditto.
84 (PickView::init_headers): Ditto.
85 * category.cc: Trim obsolete code.
86 * category.h: Replace interconnecting class with a typedef to
87 facilitate leveraging STL maps.
88 * choose.cc (fill_missing_category): Use updated pkg.add_category
89 syntax.
90 (default_trust): Use new Category type syntax.
91 (set_view_mode): Ditto.
92 (create_listview): Ditto.
93 * package_db.cc (categories): Ditto.
94 * package_db.h: Update headers list to include needed headers.
95 (packagedb::categories): Replace custom list with STL map.
96 * package_meta.cc: Use new Category type syntax throughout.
97 (packagemeta::add_category): Implement new syntax.
98 * package_meta.h: Remove commented out source.
99 (packagemeta::add_category): Update syntax to decouple interface from
100 packagedb.
101
89374d4a
CF
1022002-07-06 Christopher Faylor <cgf@redhat.com>
103
104 * site.cc (do_download_site_info_thread): Correct spelling error.
105
405d7186
RC
1062002-07-06 Robert Collins <rbtcollins@hotmail.com>
107
108 * PickCategoryLine.h: Include required header list.h.
109 * PickPackageLine.cc (PickPackageLine::paint): Adjust to use STL
110 containers for listing of packages per category and vice verca.
111 * PickView.cc (PickView::insert_pkg): Ditto.
112 (PickView::insert_category): Ditto.
113 * String++.h (String::caseless): STL helper to allow trivial containers
114 of Strings with case insensitive comparisons.
115 * category.h: Adjust to use STL containers for listing of packages per
116 category and vice verca.
117 * choose.cc (fill_missing_category): Ditto.
118 (default_trust): Ditto.
119 (ChooserPage::OnNext): Ditto.
120 * package_meta.cc (CategoryPackage::~CategoryPackage): Remove.
121 (packagemeta::packagemeta): Adjust for new category list name.
122 (packagemeta::~packagemeta): Adjust to use STL containers for listing
123 of packages per category and vice verca.
124 (packagemeta::set_action): Ditto.
125 * package_meta.h (CategoryPackage): Remove.
126 (packagemeta): Adjust to use STL containers for listing of packages per
127 category and vice verca.
128
080bec6e
RC
1292002-07-05 Robert Collins <rbtcollins@hotmail.com>
130
131 * io_stream.cc: Use STL containers rather than custom ones.
132 (io_stream::registerProvider): Ditto.
133 (findProvider): Ditto.
134
3f34f364
RC
1352002-07-05 Robert Collins <rbtcollins@hotmail.com>
136
137 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
138 Use STL collections for download site collections.
139 (IniDBBuilderPackage::add_correct_version): Ditto.
140 (IniDBBuilderPackage::process_src): Ditto.
141 * PickPackageLine.cc (PickPackageLine::click): Use the packageversion
142 accessible() call to abstract package availability.
143 * choose.cc (scanAVersion): Use STL collections for download site
144 collections.
145 * download.cc (check_for_cached): Ditto.
146 (download_one): Ditto.
147 * package_meta.cc (packagemeta::set_action): Use the packageversion
148 accessible() call to abstract package availability.
149 * package_source.h: Use STL containers rather than custom containers.
150 (site): Create a == operator to allow STL container use.
151 (packagesource::sites): Use STL containers rather than custom
152 containers.
153 * package_version.cc (_packageversion::accessible): Use STL containers
154 for download site containers.
155
e2cdf72c
RC
1562002-07-05 Robert Collins <rbtcollins@hotmail.com>
157
158 * LogFile.cc: Use STL containers rather than custom containers.
159 (filedef): Create == and < operators for STL use.
160 (files): Convert to an STL set.
161 (LogFile::setFile): Use STL operations on files.
162 (LogFile::exit): Ditto.
163
3bac26a1
RC
1642002-07-05 Robert Collins <rbtcollins@hotmail.com>
165
166 * ini.cc (do_remote_ini): Use STL collection for site collection.
167 * site.cc: Include site.h first to ensure it's parsable standalone.
168 Use STL algorithms.
169 (site_list): Convert to an STL container.
170 (all_site_list): Ditto.
171 (site_list_type::site_list_type): Implement copy constructor.
172 (site_list_type::operator=): Implement assignment operator.
173 (site_list_type::operator ==): Implement.
174 (site_list_type::operator <): Ditto.
175 (save_dialog): Use STL collection calls for site collection.
176 (save_site_url): Ditto.
177 (get_site_list): Ditto.
178 (get_saved_sites): Ditto.
179 (do_download_site_info_thread): Ditto.
180 (SitePage::OnNext): Ditto.
181 (SitePage::PopulateListBox): Ditto.
182 (SitePage::OnMessageCmd): Ditto.
183 * site.h: Use STL vectors instead of custom code.
184 (site_list_type::site_list_type): Declare.
185 (site_list_type::operator=): Ditto.
186 (site_list_type::operator ==): Ditto.
187 (site_list_type::operator !=): Ditto.
188 (site_list_type::operator <): Ditto.
189 (site_list_type::operator <=): Ditto.
190 (site_list_type::operator >): Ditto.
191 (site_list_type::operator >=): Ditto.
192 (site_list): Convert to an STL container.
193 (all_site_list): Ditto.
194
528a8edb
RC
1952002-07-05 Robert Collins <rbtcollins@hotmail.com>
196
197 * choose.cc (default_trust): Check package accessibility before
198 triggering an install. (Suggested by Pavel).
199
2002002-07-03 Pavel Tsekov <ptsekov@gmx.net>
201
202 * compress_gz.cc (compress_gz::construct): Always initialize key members
203 to ensure the destructor does the right thing.
204
4e868a01
RC
2052002-07-03 Pavel Tsekov <ptsekov@gmx.net>
206
207 * filemanip.cc (parse_filename): Do not try to parse empty
208 strings (filenames).
209 * package_db.cc (packagedb::packagedb): For each line check if sscanf()
210 extracted good package name and filename.
211
7f2b9277
RC
2122002-07-03 Robert Collins <rbtcollins@hotmail.com>
213
214 * package_meta.cc (packagemeta::set_requirements): Automatically select
215 version of dependent packages that satisfies the requirements.
216 Use processOneDependency to trigger the install of those packages.
217 (checkForInstalled): Check that the package remains installed.
218 (processOneDependency): Helper function for dependent packages.
219 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackage): Add more
220 debug information.
221 Clear out all current state on new packages.
222 (IniDBBuilderPackage::add_correct_version): Copy the dependency list
223 across.
224
84c4f5d1
RC
2252002-07-02 Robert Collins <rbtcollins@hotmail.com>
226
227 * Makefile.am (inilint_SOURCES): Add PackageSpecification sources.
228 nb: inilint is still incomplete, as the packageversion code is not
229 ready for database-less linking.
230 * site.cc (get_site_list): When the same site is reentered by the user
231 replace the old one. (Suggested by John Marshall).
232
64cd7f94
RC
2332002-07-02 Robert Collins <rbtcollins@hotmail.com>
234
235 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
236 Clear out package selections when generating implicit source packages.
237 * PackageSpecification.cc (PackageSpecification::satisfies): Implement.
238 (PackageSpecification::_operators::satisfies): Implement.
239 * PackageSpecification.h (PackageSpecification::_operators::satisfies):
240 Worker function for testing versions.
241
3c196821
RC
2422002-07-01 Robert Collins <rbtcollins@hotmail.com>
243
244 * IniDBBuilder.cc (IniDBBuilder::buildPackageRequirement): Remove.
245 * IniDBBuilder.h (IniDBBuilder::buildPackageRequirement): Ditto.
246 * IniDBBuilderPackage.cc: Use the STL algorithms.
247 Change cpv to cbpv throughout. Adjust -> to ., and use the new accessor
248 functions for the same variable throughout.
249 (IniDBBuilderPackage::IniDBBuilderPackage): Initialise new members.
250 (IniDBBuilderPackage::buildPackage): Use new cygpackage syntax,
251 and set an empty source package.
252 (IniDBBuilderPackage::buildPackageInstall): Use the new source member
253 to record an install package.
254 (IniDBBuilderPackage::buildPackageSource): Move source package logic
255 out from process_src, as it now occurs at separate times.
256 (IniDBBuilderPackage::buildPackageRequirement): Remove.
257 (IniDBBuilderPackage::buildSourceName): Use renamed package
258 specifiation accessor for clarity.
259 (IniDBBuilderPackage::buildSourceNameVersion): Ditto.
260 (IniDBBuilderPackage::add_correct_version): Use STL iterators rather
261 than custom code.
262 Remove source package references.
263 (IniDBBuilderPackage::process_src): Remove source package code as it's
264 now handled separately.
265 Set Path information before merging versions, to prevent dangling
266 pointers.
267 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildPackageRequirement):
268 Remove.
269 (IniDBBuilderPackage::cpv): Remove.
270 (IniDBBuilderPackage::cbpv): New generic binary working variable.
271 (IniDBBuilderPackage::cspv): Ditto, but for source packages.
272 (IniDBBuilderPackage::csp): Source package variable for disjoint
273 source packages.
274 * Makefile.am (AM_CFLAGS): Remove -Winline to allow stl set code
275 to compile. If it compiles cleanly in gcc 3.1, then reinstate.
276 * PickPackageLine.cc: Adjust packageversion accessors to the new
277 reference calls. (i.e. -> to .) throughout.
278 (PickPackageLine::paint): Use accessible() for clarity.
279 Use new split out source package logic.
280 (PickPackageLine::click): Ditto.
281 * PickView.cc (PickView::init_headers): Adjust packageversion accessors
282 to the new reference calls. (i.e. -> to .) throughout.
283 Use new split out source package logic.
284 * choose.cc: Don't depend on a specific package type.
285 Adjust packageversion accessors to the new reference calls. (i.e. -> to
286 .) throughout.
287 (set_existence): Use accessible () for clarity.
288 (default_trust): Simplify a little.
289 (scanAVersion): Factored out code from scan_downloaded_files for
290 clarity.
291 (scan_downloaded_files): Factor out inner loop for clarity.
292 (ChooserPage::OnNext): Don't dump the dependency list,
293 it's parsing is robust now!.
294 * cygpackage.cc (createInstance): Use a factory method to create new
295 objects.
296 (cygpackage::cygpackage): Make this private for use by the factory.
297 (cygpackage::setCanonicalVersion): Renamed from set_canonical_version.
298 Remove key usage as it's obsolete.
299 * cygpackage.h (cygpackage): Inherit from _packageversion, not
300 packageversion.
301 (cygpackage::createInstance): New factory.
302 (cygpackage::cygpackage): Make private.
303 * desktop.cc (make_passwd_group): Use new packageversion reference.
304 * download.cc (do_download_thread): Use changeRequested() for clarity.
305 Use new packageversion reference calls.
306 * iniparse.y (REQUIRES): Reuse the packageList code and dump the one-off
307 requires code.
308 * install.cc: Adjust -> to ., and use the new accessor functions for
309 packageversion throughout.
310 * package_db.cc: Adjust -> to ., and use the new accessor functions for
311 packageversion throughout.
312 (packagedb::packagedb): Use the new cygpackage factory.
313 (packagedb::flush): Leverage String to remove buffer overflow chance in
314 sprintf.
315 (packagedb::findBinary): Find a binary meta package that has a version
316 matching a given specification.
317 (packagedb::findSource): Ditto, but for source.
318 * package_db.h (packagedb::findBinary): Declare.
319 (packagedb::findSource): Ditto.
320 * package_meta.cc: Adjust packageversion accessors to the new
321 reference calls. (i.e. -> to .) throughout.
322 Include the package_meta header first to ensure it parses standalone.
323 Use the STL algorithms.
324 (packagemeta::packagemeta): Create a copy constructor to allowing
325 cloning binary package metadata to source package metadata.
326 (packagemeta::~packagemeta): Use the STL coleltion code rather than
327 custom collection code.
328 (packagemeta::add_version): Ditto.
329 (packagemeta::set_installed): Ditto.
330 (packagemeta::SDesc): Ditto.
331 (hasSDesc): Helper function for find_if.
332 (checkForInstalled): Ditto.
333 (checkForUpgradeable): Ditto.
334 (checkForSatisfiable): Ditto.
335 (packagemeta::action_caption): Update for split out source packages.
336 (packagemeta::set_action): Ditto.
337 (packagemeta::set_requirements): Support multi-valued dependency
338 lists - a|b & c|d - with versioned package specifications.
339 (packagemeta::accessible): Helper member to improve abstraction.
340 (packagemeta::sourceAccessible): Ditto.
341 * package_meta.h: Adjust packageversion accessors to the new
342 reference calls. (i.e. "->" to "." and"*" to "" ) throughout.
343 (packagemeta::packagemeta): Declare copy constructor.
344 Remove self initialising members.
345 (packagemeta::set_action): Update parameters for new packageversion.
346 (packagemeta::trustp): Ditto.
347 (packagemeta::versions): Becomes an STL set.
348 * package_source.h (packagesource::Cached): Const correctness change.
349 * package_version.cc: Rewrite the packageversion interface to remove
350 the cygpackage nonvirtual members, and provide a copy by value,
351 pointer semantics reference counting wrapper class to ease use and
352 comparison of packageversions.
353 Change existing packageversion class to _packageversion throughout.
354 (_defaultversion): A trivial concrete class to prevent specialcasing
355 the default constructor for packageversion;
356 (packageversion::packageversion): Implement.
357 (packageversion::~packageversion): Ditto.
358 (packageversion::operator=): Ditto.
359 (packageversion::operator !): Ditto.
360 (packageversion::operator bool): Ditto.
361 (packageversion::operator ==): Ditto.
362 (packageversion::operator !=): Ditto.
363 (packageversion::operator <): Ditto.
364 (packageversion::Name): Ditto.
365 (packageversion::Canonical_version): Ditto.
366 (packageversion::setCanonicalVersion): Ditto.
367 (packageversion::getfirstfile): Ditto.
368 (packageversion::getnextfile): Ditto.
369 (packageversion::SDesc): Ditto.
370 (packageversion::set_sdesc): Ditto.
371 (packageversion::LDesc): Ditto.
372 (packageversion::set_ldesc): Ditto.
373 (packageversion::sourcePackage): Ditto.
374 (packageversion::sourcePackageSpecification): Ditto.
375 (packageversion::setSourcePackageSpecification): Ditto.
376 (packageversion::depends): Ditto.
377 (packageversion::predepends): Ditto.
378 (packageversion::recommends): Ditto.
379 (packageversion::suggests): Ditto.
380 (packageversion::replaces): Ditto.
381 (packageversion::conflicts): Ditto.
382 (packageversion::provides): Ditto.
383 (packageversion::picked): Ditto.
384 (packageversion::pick): Ditto.
385 (packageversion::changeRequested): Ditto.
386 (packageversion::uninstall): Ditto.
387 (packageversion::source): Ditto.
388 (packageversion::accessible): Ditto.
389 (_packageversion::sourcePackage): Ditto.
390 (_packageversion::accessible): Ditto.
391 (_packageversion::changeRequested): Ditto.
392 * package_version.h: Rewrite the packageversion interface to remove
393 the cygpackage nonvirtual members, and provide a copy by value,
394 pointer semantics reference counting wrapper class to ease use and
395 comparison of packageversions.
396 Change existing packageversion class to _packageversion throughout.
397 (Dependency): Remove.
398 (packageversion): New wrapper class.
399 (_packageversion): Renamed from packageversion.
400 (_packageversion::setCanonicalVersion): New method.
401 (_packageversion::sourcePackage): Ditto.
402 (_packageversion::sourcePackageSpecification): Ditto.
403 (_packageversion::setSourcePackageSpecification): Ditto.
404 (_packageversion::changeRequested): Ditto.
405 (_packageversion::bin): Rename to source.
406 (_packageversion::src): Remove.
407 (_packageversion::accessible): New method.
408 (_packageversion::references): Allow reference counting.
409 (_packageversion::sourceVersion): Cached the best-match source
410 package version.
411
387cb501
RC
4122002-06-27 Robert Collins <rbtcollins@hotmail.com>
413
414 * compress_bz.h (compress_bz::position): Track how much has been read.
415 * compress_bz.cc (compress_bz::compress_bz): And initialise it.
416 (compress_bz::read): Track amount read by the client.
417 (compress_bz::tell): And report it when asked.
418
7d702af3
RC
4192002-06-27 Robert Collins <rbtcollins@hotmail.com>
420
421 * Makefile.am (snapshot): Automate snapshot creation some more.
422
08cd08c3
RC
4232002-06-27 Robert Collins <rbtcollins@hotmail.com>
424
425 * msg.cc (msg): Use vsnprintf to avoid buffer overflows.
426 (mbox): Ditto.
427 * ini.cc (fprintf): Ditto.
428 * log.cc (log): Ditto.
429 * package_db.cc (packagedb::sourcePackages): Split out source packages
430 from binary packages.
431 * package_db.h: Ditto.
432
aa1e3b4d
RC
4332002-06-27 Robert Collins <rbtcollins@hotmail.com>
434
435 * PackageSpecification.h: New file. Abstracts the ability to refer
436 to another package, by name, or name and version.
437 * PackageSpecification.cc: Ditto.
438 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Simplify.
439 (IniDBBuilder::buildPackageSource): Ditto.
440 (IniDBBuilder::buildBeginDepends): New method for versioned
441 dependencies.
442 (IniDBBuilder::buildBeginPreDepends): Likewise, for dependencies to be
443 satisfied before pre-install.
444 (IniDBBuilder::buildPriority): New method, for getting the package
445 Priority.
446 (IniDBBuilder::buildInstalledSize): How much disk space does it need?
447 (IniDBBuilder::buildMaintainer): Who maintains the package?
448 (IniDBBuilder::buildArchitecture): What platform is it for?
449 (IniDBBuilder::buildInstallSize): How big is the binary download?
450 (IniDBBuilder::buildInstallMD5): Whats the MD5 on the binary?
451 (IniDBBuilder::buildSourceMD5): Whats the MD5 on the source package?
452 (IniDBBuilder::buildBeginRecommends): What other packages are
453 recommended with this one?
454 (IniDBBuilder::buildBeginSuggests): And suggested?
455 (IniDBBuilder::buildBeginReplaces): What packages does this replace?
456 (IniDBBuilder::buildBeginConflicts): And collide with?
457 (IniDBBuilder::buildBeginProvides): What virtual packages (or obsolete
458 package names) does this provide?
459 (IniDBBuilder::buildDescription): Grab a multi line description one
460 line at a time.
461 (IniDBBuilder::buildSourceName): What source package should be used to
462 install the source for this binary package?
463 (IniDBBuilder::buildSourceNameVersion): Is a specific version needed?
464 (IniDBBuilder::buildPackageListAndNode): Add another AND clause to a
465 list of package specifications.
466 (IniDBBuilder::buildPackageListOrNode): Add another OR clause.
467 (IniDBBuilder::buildPackageListOperator): Add a versioning operator
468 to the current specification.
469 (IniDBBuilder::buildPackageListOperatorVersion): What version does the
470 operator act on?
471 * IniDBBuilder.h: Declare all the IniDBBuilder.cc changes.
472 * IniDBBuilderPackage.cc: As for IniDBBuilder.cc.
473 (IniDBBuilderPackage::IniDBBuilderPackage): Iniitialize new members.
474 (IniDBBuilderPackage::process_src): Streamline and split out
475 functionality.
476 (IniDBBuilderPackage::setSourceSize): From process_src.
477 * IniDBBuilderPackage.h: Declare the IniDBBuilderPackage.cc changes.
478 (IniDBBuilderPackage::currentSpec): Track the in-progress specifiation.
479 (IniDBBuilderPackage::currentOrList): Track the current Or list.
480 (IniDBBuilderPackage::currentAndList): Track the current And list.
481 * IniParseFeedback.cc (IniParseFeedback::progress): Provide completion
482 progress on parsing.
483 (IniParseFeedback::iniName): Tell what ini filename we are currently
484 processing.
485 * IniParseFeedback.h: Declare IniParseFeedback.cc changes.
486 * IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor):
487 Make the feedback object non-const to allow mutating methods which are
488 needed when the object has state.
489 (IniParseFindVisitor::visitFile): Tell the caller the name of each
490 .ini found.
491 Initialise the parser with the feedback object to allow it to tell of
492 progress.
493 * IniParseFindVisitor.h: Declare IniParseFindVisitor.cc changes.
494 * Makefile.am (inilinst_SOURCES): Add more requisite classes.
495 (setup_SOURCES): Add the new PackageSpecification sources.
496 * ScanFindVisitor.cc (ScanFindVisitor::visitFile): Use the new
497 builder syntax to setup binary package details.
498 * choose.cc: Use the LogSingleton calls throughout.
499 * configure.in: Create the INILINT substitution correctly for recent
500 autotool configurations.
501 * cygpackage.cc (cygpackage::getfirstfile): Return an empty String
502 rather than a string built from an int. Thanks to Pavel Tsekov for
503 identifying the bug.
504 (cygpackage::getnextfile): Ditto.
505 * download.cc: Use LogSIngletion calls throughout.
506 (validateCachedPackage): A refactoring of the
507 check_for_cached code to eliminate duplciation.
508 (check_for_cached): Use validateCachedPackage to check packages.
509 * ini.cc (GuiParseFeedback): Provide gui feedback on ini name and
510 parsing progress.
511 (do_remote_ini): Ditto.
512 * ini.h (ini_init): Pass a IniParseFeedback to the parser, to allow
513 progress reporting.
514 * inilex.l: Identify new symbols - operators, and multi line plain text.
515 Releases files.
516 * inilintmain.cc (show_help): Provide basic infomation on inilint.
517 * iniparse.y: Adjust for the new builder syntax, and process debian
518 Release files.
519 * io_stream_file.cc: Always include mkdir.h.
520 * list.h: Factor index location into a private routine.
521 (list::findindex): Implement this.
522 * mkdir.cc (mkdir_p): Make the use of WIN32 code conditional on mingw
523 builds. NB: This breaks cygwin build functionality still.
524 * package_meta.cc: Use the LogSingleton calls throughout.
525 (packagemeta::set_requirements): Adjust for object changes in
526 dependencies.
527 * package_meta.h (packagemeta::packagemeta): Initialise new members.
528 (packagemeta::architecture): What platform does this package run on?
529 This may need to move in the future to a per packagefile object.
530 (packagemeta::priority): What priority does this package have?
531 * package_source.h (packagesource::packagesource): Initialise new
532 members.
533 (packagesource::installedSize): How much space does the package need?
534 (packagesource::setInstalledSize): Tell the amount.
535 (packagesource::_installedSize): And store it.
536 * package_version.cc (packageversion::sourcePackage): return the
537 source package.
538 (packageversion::setSourcePackage): And set it.
539 * package_version.h: Declare the package_version.cc changes.
540 (packageversion::depends): New package specification AND list.
541 (packageversion::predepends): Ditto.
542 (packageversion::recommends): Ditto.
543 (packageversion::suggests): Ditto.
544 (packageversion::replaces): Ditto.
545 (packageversion::conflicts): Ditto.
546 (packageversion::provides): Ditto.
547 (packageversion::sourcePackage): What source package is needed?
548 * threebar.cc (ThreeBarProgressPage::SetText4): Set the label beside
549 the bottom bar.
550 * threebar.h: Declare the threebar.cc change.
551
5522002-06-27 John Marshall <johnm@falch.net>
553
554 * res.rc (SETUPINI_MISSING): Make trailing spaces visible.
555 * site.cc (SitePage::OnMessageCmd): Ditto
556
2a994e0b
RC
5572002-06-15 Robert Collins <rbtcollins@hotmail.com>
558
559 * nio-ie5.cc (NetIO_IE5::NetIO_IE): Allow cached data.
560
ceff7035
RC
5612002-06-15 Robert Collins <rbtcollins@hotmail.com>
562
563 * package_meta.cc (packagemeta::set_action): When installing packages
564 with no binaries, choose the source package.
565
9bd27040
RC
5662002-06-10 Robert Collins <rbtcollins@hotmail.com>
567
568 * IniParseFindVisitor (IniParseFindVisitor::visitFile): Apply Max
569 Bowshers fix for the crash with a root level setup.ini.
570 * README: Update todos.
571
1dcff4a0
RC
5722002-05-26 Ralf Habacker <ralf.habacker@freenet.de>
573
574 * archive_tar.cc (archive_tar::next_file_name()): fixed broken
575 GNU long name extension support.
576
0773e4f2
RC
5772002-05-27 Robert Collins <rbtcollins@hotmail.com>
578
579 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Don't
580 unescape 0 length strings.
581
a828d772
RC
5822002-05-20 Robert Collins <rbtcollins@hotmail.com>
583
584 * package_meta.cc (packagemeta::set_action): Don't allow reinstall
585 when local with no cached file, and install the default source if the
586 default version has no binary.
587
67829ce0
RC
5882002-05-19 Robert Collins <rbtcollins@hotmail.com>
589
590 * IniDBBuilderPackage.cc (IniDBBuilderPackage::IniDBBuilderPackage): New
591 method.
592 (IniDBBuilderPackage::buildVersion): Provide a warning when a newer
593 setup version created the ini file.
594 * IniDBBuilderPackage.h (IniDBBuilderPackage::IniDBBuilderPackage): New
595 method.
596 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use the new
597 feedback strategy.
598 * IniParseFindVisitor.h (IniParseFindVisitor::IniParseFindVisitor):
599 Require a feedback strategy.
600 * Makefile.am (setup_SOURCES): Add IniParseFeedback sources.
601 * Makefile.in: Regenerate.
602
4849e2fc
RC
6032002-05-19 Robert Collins <rbtcollins@hotmail.com>
604
605 * io_stream_file.cc (io_stream_file::remove): Use the SetFileAttributes
606 trick to delete read only files.
607 * io_stream_cygfile.cc (io_stream_cygfile::remove): Use file:// to
608 remove files.
609 * Makefile.am (release): Tweak to be more helpful.
610 * Makefile.in: Regenerate.
611
7cb35117
RC
6122002-05-19 Robert Collins <rbtcollins@hotmail.com>
613
614 * Makefile.am (release): Tweak to be more helpful.
615 * Makefile.in: Regenerate.
7cb35117 616
5090e3ce
RC
6172002-05-19 Robert Collins <rbtcollins@hotmail.com>
618
619 * Makefile.am (release): Tweak to be more helpful.
620 * Makefile.in: Regenerate.
621
9e9b881a
RC
6222002-05-19 Robert Collins <rbtcollins@hotmail.com>
623
624 * choose.cc (scan_downloaded_files): When a non-installed version
625 has neither bin nor src cached files for local installs,
626 remove the version from availability.
627
ea36e064
RC
6282002-05-19 Robert Collins <rbtcollins@hotmail.com>
629
630 * ini.cc (do_remote_ini): Save uncompressed ini's correctly.
631
b401ef47
RC
6322002-05-19 Robert Collins <rbtcollins@hotmail.com>
633
634 * rsync: New support library, contains librsync. This is not (yet)
635 rsync interoperable.
636 * configure.in: --with-rsync to enable rsync support. (Not complete).
637 * Makefile.am: Enable building with rsync.
638 * Makefile.in: Regenerate.
639 * configure: Ditto.
640 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Pass the md5 as
641 an array.
642 (IniDBBuilder::buildPackageSource): Ditto.
643 * IniDBBuilder.h: Ditto.
644 * IniDBBuilderPackage.cc: Ditto.
645 * IniDBBuilderPackage.h: Ditto.
646 * FindVisitor.cc: New file.
647 * FindVisitor.h: New file, interface for visiting a file system
648 aggregate.
649 * IniParseFindVisitor.cc: New file.
650 * IniParseFindVisitor.h: New file, concrete FindVisitor that parses
651 found setup.ini's.
652 * README: Update TODO's.
653 * String++.cc (String::String): New constructor for <string> inter-
654 operability.
655 (String::substr): New method.
656 * String++.h: Ditto.
657 * choose.cc (scan2): Remove.
658 (scan_downloaded_files): Simplify.
659 * dialog.h: Include parsing pre-requirements.
660 * download.cc (check_for_cached): Fullname was used incorrectly - fix.
661 * filemanip.cc (parse_filename): -src packages where incorrectly parsed.
662 * find.cc: Rewrite. Now uses a Visitor pattern and is re-entrant.
663 * find.h: Ditto.
664 * fromcwd.cc: Remove unneeded includes.
665 (is_test_version): Remove.
666 (found_file): Remove.
667 (SetupFindVisitor): Trivial visitor to detect setup.ini's.
668 (found_ini): Remove.
669 (do_fromcwd): Remove commented code that has be replaced elsewhere.
670 * ini.cc (local_ini): Remove.
671 (findBuilder): Remove.
672 (find_routine): Remove.
673 (do_local_ini): Use new IniParseFindVisitor.
674 * iniparse.y: Typecase MD5 arrays, as we know they are allocated as
675 unsigned char.
676 * postinstall.cc: Remove non-core includes.
677 (run_script_in_postinstall): Remove.
678 (RunFindVisitor): Trivial Visitor, runs each found script.
679 (do_postinstall): Use new find syntax.
680
0d4e0aad
CF
6812002-05-14 Christopher Faylor <cgf@redhat.com>
682
683 * ini.cc (find_routine): Don't clear buffer it it's NULL.
684
6852002-05-14 Christopher Faylor <cgf@redhat.com>
686
687 * filemanip.h (trail): Declare.
688 * filemanip.cc (trail): New function.
689 (find_tar_ext): Use trail() instead of strstr().
690 * fromcwd.cc (check_ini): Ditto.
691 * ini.cc (find_routine): Ditto. Don't tack local_dir to path since it
692 should now be fully qualified. Set ini_filename. Reset error_buf and
693 error_count for any subsequent ini file parsing.
694 (ini_filename): New static variable for parse error reporting.
695 (yyerror): Use full path of setup.ini in error message. Subtract one
696 from line number if at bol.
697 * find.cc (found_part): Eliminate.
698 (find_sub): Call for_each with full path found rather than just file
699 component.
700 (find): Don't calculate found_part.
701 * inilex.l (ini_init): Flush input buffer and reset line number.
702 (yybol): New function. Exports YY_AT_BOL.
703 * iniparse.y: Increase stack depth to allow more tokens to be processed.
704 (yyparse): Remove newline from error condition to allow subsequent
705 per-line error processing to proceed normally.
706
7072002-05-14 Christopher Faylor <cgf@redhat.com>
708
709 * find.cc (find_sub): Be more defensive in preserving trailing parts of
710 components when doing recursive directory searches or calling user
711 supplied for_each().
712 * ini.cc (find_routine): Don't assume that any path name with
713 "setup.ini" in it is actually a setup.ini file. Only honor trailing
714 components. Copy path argument to temporary storage when unescaping
715 to prevent nuking of argument.
716
874c569a
RC
7172002-05-12 Robert Collins <rbtcollins@hotmail.com>
718
719 * CONTRIBUTORS: New file.
720
f6a81f69
RC
7212002-04-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
722
723 * choose.cc: Run indent.
724 (nextbutton): Remove static variable.
725 (default_trust): Remove use of nextbutton.
726 (set_view_mode): Ditto.
727 (create_listview): Add IDC_CHOOSE_PREV and IDC_CHOOSE_NEXT to ta[] so
728 rbset() sets the prev/next/curr radio buttons properly.
729 (dialog_cmd): Delete function.
730 (dialog_proc): Delete function. Move WM_INITDIALOG functionality to
731 ChooserPage::OnInit.
732 (do_choose): Delete function. Move pre-DialogBox() code to
733 ChooserPage::OnInit(), post-DialogBox() code to ChooserPage::OnNext.
734 (WM_APP_START_CHOOSE): Remove define.
735 (WM_APP_CHOOSE_IS_FINISHED): Remove define.
736 (do_choose_thread): Delete function.
737 (ChooserPage::OnActivate): Delete method.
738 (ChooserPage::OnMessageApp): Delete method.
739 (ChooserPage::OnInit): New method.
740 (ChooserPage::OnNext): New method.
741 (ChooserPage::OnBack): New method.
742 (ChooserPage::OnMessageCmd): New method.
743 * choose.h: Run indent.
744 (ChooserPage::OnMessageApp): Delete declaration.
745 (ChooserPage::OnActivate): Ditto.
746 (ChooserPage::OnMessageCmd): New declaration.
747 (ChooserPage::OnInit): Ditto.
748 (ChooserPage::OnNext): Ditto.
749 (ChooserPage::OnBack): Ditto.
750 * desktop.cc (DesktopSetupPage::OnBack): Replace use of IDD_CHOOSER
751 with IDD_CHOOSE.
752 * fromcwd.cc (do_fromcwd): Replace use of IDD_CHOOSER with IDD_CHOOSE.
753 * ini.cc (do_ini_thread): Replace use of IDD_CHOOSER with IDD_CHOOSE.
754 * res.rc (IDD_CHOOSE): Remove dialog template.
755 (IDD_CHOOSER): Alter dialog template to fit wizard size and format.
756
74617327
RC
7572002-05-12 Robert Collins <rbtcollins@hotmail.com>
758
759 * LogFile.cc (endLog): Work around an apparent libg++-3 bug causing
760 corrupt log file entries.
761 * geturl.cc: Convert to the new LogSingleton logging.
762
3272d625
RC
7632002-05-12 Robert Collins <rbtcollins@hotmail.com>
764
765 * ini.cc (do_remote_ini): Use setup.bz2 if it exists in preference to
766 setup.ini.
767
fc687221
RC
7682002-05-12 Robert Collins <rbtcollins@hotmail.com>
769
770 * geturl.h: Declare getUrlToStream.
771 * geturl.cc (getUrlToStream): New function.
772 (get_url_to_membuf): Refactor to use getUrlToStream.
773
902c8a3f
RC
7742002-05-11 Robert Collins <rbtcollins@hotmail.com>
775
776 * Makefile.am: Add a release target to automate some of the routine
777 work.
778 * Makefile.in: Regenerate.
779
2ab26cdb
RC
7802002-05-11 Robert Collins <rbtcollins@hotmail.com>
781
782 * choose.cc (scan_downloaded_files): On local installs remove all
783 mirror sites if no cached copy of a package is found.
784
94852d65
RC
7852002-05-10 Robert Collins <rbtcollins@hotmail.com>
786
787 * Makefile.in: Regenerate.
788 * iniparse.y: Use left recursion, not right in the lines rule to
789 avoid stack overflows.
790 * README: Update TODO's.
791 * io_stream_file.cc: Native builds need to include sys/stat.h
792
3548fbc3
RC
7932002-05-06 John Marshall <jmarshall@acm.org>
794
795 * site.cc (SitePage::OnMessageCmd): recalculate navigation
796 button activation when "Add" is pressed.
797 (SitePage::CheckControlsAndDisableAccordingly): tweak comment.
798
7992002-05-07 Robert Collins <rbtcollins@hotmail.com>
2b48ecd0
RC
800
801 * Makefile.am (inlint_SOURCES): Add conditional objects to inilint
802 depending on platform.
803 Add file:// support.
804 * configure.in: Set conditional MINGWTARGET if compiling against mingw
805 libraries.
806 * Makefile.in: Regenerate.
807 * configure: Ditto.
808 * io_stream_file.cc: Only use win32 calls when building for mingw.
809
19911586
RC
8102002-05-05 Robert Collins <rbtcollins@hotmail.com>
811
812 * Makefile.am (noinst_PROGRAMS): Make inilint configurable.
813 * configure.in: Ditto.
814 Fix incorrect header checking syntax.
815 * aclocal.m4: Regenerate.
816 * configure: Regenerate.
817 * Makefile.in: Regenerate.
818 * io_stream.cc: Remove platform specific and provider specific code.
819 (io_stream::registerProvider): New method, registers a Url provider with
820 the io_stream code.
821 Make all methods consistently throw invalid_argument exceptions when
822 a provider that is requested is not present.
823 (findProvider): New private function, finds a provider.
824 * io_stream.h: Declare io_stream::registerProvider.
825 * io_stream_cygfile.cc: Create a Provider class to register with
826 io_stream.cc.
827 * io_stream_file.cc: Ditto.
828 * archive.cc: Remove unneeded includes.
829 * archive_tar.cc: Remove unneeded includes.
830 * archive_tar.h: Add required include.
831 * archive_tar_file.cc: Remove unneded includes.
832 * choose.cc: Remove unneeded includes:
833
bf4ffcd9
RC
8342002-05-04 Robert Collins <rbtcollins@hotmail.com>
835
836 * io_stream.cc: Use the new log interface thruout.
837
9f4a0c62
RC
8382002-05-04 Robert Collins <rbtcollins@hotmail.com>
839
840 * log.cc (log): Reimplement via LogSingleton.
841 (log_save): Remove.
842 (exit_setup): Remove.
843 * log.h (log_save): Remove.
844 (exit_setup): Remove.
845 * LogSingleton.cc: New file.
846 * LogSingleton.h: New file.
847 * LogFile.cc: New file.
848 * LogFile.h: New file.
849 * Makefile.am (inilint_SOURCES): Add the new log interface.
850 (setup_SOURCES): Add the new log interface and the concrete File
851 implementation.
852 * Makefile.in: Regenerate.
853 * archive.cc: Use the new log interface thruout.
854 * archive_tar.cc: Ditto.
855 * main.cc: Ditto.
856 * dialog.cc (fatal): Use the new log interface.
857 * ini.cc (do_ini_thread): Use the log interface to exit.
858 * isntall.cc (do_install_thread): Ditto.
859 * netio.cc (auth_cmd): Ditto.
860 * msg.cc (fatal): Ditto.
861 * localdir.cc (save_local_dir): Save to different files depending on
862 the mode, and if a root dir exists.
863
076654e7
RC
8642002-05-04 Robert Collins <rbtcollins@hotmail.com>
865
866 * IniDBBuilder.cc: New file.
867 * IniDBBuilder.h: New file.
868 * IniDBBuilderPackage.cc: New file.
869 * IniDBBuilderPackage.h: New file.
870 * PackageTrust.h: New file.
871 * IniState.h: Remove, wasn't thought out well enough.
872 * Makefile.am (inilint_SOURCES): Add more requirements.
873 (setup_SOURCES): Add new Builder base and concrete classes.
874 * Makefile.in: Regenerate.
875 * String++.cc (String::String): Implement int contructor.
876 * String++.h (String): Declare int constructor.
877 * archive_tar.cc (archive_tar::next_file_name): Return String() when
878 no filename exists.
879 * archive_tar.h (archive_tar_file): Remove get_next_filename method,
880 it's not needed.
881 * ini.cc: Replace IniState wuth IniDBBuilderPacakge.
882 (find_routine): Use new IniDBBuilder to configure the parser.
883 (do_local_ini): Ditto.
884 (do_remote_ini): Ditto.
885 * ini.h: Use IniDBBuilder to initialise parsing.
886 * inilex.l (MD5): Parse the MD5 string correctly, we had the nibbles
887 swapped.
888 (ini_init): Use an IniDBBuilder rather than static variables.
889 * iniparse.y: Hand off all the object creation to a builder, rather
890 than hardcoding the behaviour. This allows run-time configured
891 behaviour.
892 * io_stream_cygfile.h (io_stream_cygfile): Remove get_next_filename
893 method, it's not needed.
894 * io_stream_file.h (io_stream_file): Ditto.
895 * mount.cc (cygpath): Return String() for missing mounts.
896 * package_meta.cc (packagemeta::SDesc): Return String() for blank
897 descriptions.
898 * package_meta.h (trusts): Remove - replaced by PackageTrust.h.
899 (packagemeta::packagemeta): Fix incorrect syntax in String constructor
900 usage.
901 * cygpackage.cc (cygpackage::cygpackage): Fix incorrect syntax in
902 String constructor usage.
903 * site.h (site_list_type): Ditto.
904
6391823e
RC
9052002-05-03 Robert Collins <rbtcollins@hotmail.com>
906
907 * String++.h: Declare a << operator that accepts String objects.
908 * String++.cc: We need iostream for..
909 (operator <<): this. Provide a << operator that accepts String objects.
910 * ini.cc (yyerror): Remove the "C" classifier - it's not needed.
911 Change from vargs to a String parameter.
912 * inilintmail.cc: Remove the gui related headers.
913 (yyerror): Implement this for parsing.
914 * iniparse.y: Use the new yyerror syntax.
915
b92028a4
RC
9162002-05-03 Robert Collins <rbtcollins@hotmail.com>
917
918 * Makefile.am: Add IniState.h.
919 * Makefile.in: Regenerate.
920 * IniState.h: New file.
921 * choose.cc: Don't include ini.h - it's not needed.
922 * configure: Regenerate.
923 * desktop.cc: Don't include ini.h - it's not needed.
924 * download.cc: Ditto.
925 * fromcwd.cc: Ditto.
926 * ini.cc: Use IniState.h to track each parsing calling.
927 (find_routine): Ditto.
928 (do_remote_ini): Ditto.
929 (do_ini_thread): Ditto.
930 * ini.h (ini_init): Adjust parameters to include state object.
931 * inilex.l: Declare parser state variable.
932 (ini_init): Adjust parameters to include state object.
933 * iniparse.y: Remove obsolete setup_timestamp and setup_version
934 declarations.
935 (setup_header): Use new state variable to track time and version.
936 (add_correct_version): Ditto.
937 * install.cc: Don't include ini.h - it's not needed.
938
e0a4db64
RC
9392002-05-03 Robert Collins <rbtcollins@hotmail.com>
940
941 * nio-files.cc (NetIO): Use io_stream syntax for get_file_size.
942 * io_stream_file.cc: Don't include filemanip.h.
943 (io_stream_file::get_size): Implement here to remove filemanip
944 dependency.
945 * io_stream_cygfile.cc: Don't include filemanip.h.
946 (io_stream_cygfile::get_size): Implement here to remove filemanip
947 dependency.
948 Implement a stat based version for when win32 is not available.
949 * filemanip.h (get_file_size): Return size_t - it's more appropriate.
950 * filemanip.cc: Don't include win32.h - be platform independent.
951 Include strings.h and io_stream.h as part of that.
952 (get_file_size): Leverage io_streams and remove win32 implementation.
953 * download.cc (check_for_cached): Use io_stream syntax for
954 get_file_size.
955 (download_one): Ditto.
956
9572002-05-02 Robert Collins <rbtcollins@hotmail.com>
ac65f5c5
RC
958
959 * configure.in: Correct a typo in last change.
960 * configure: Regenerate.
961 * Makefile.in: Regenerate.
962
e0a4db64 9632002-05-02 Robert Collins <rbtcollins@hotmail.com>
e06ded88
RC
964
965 * configure.in: Check for string.h and string.
966 * configure: Regenerate.
967 * Makefile.in: Regenerate.
968
1fd0694a
RC
9692002-05-01 Robert Collins <rbtcollins@hotmail.com>
970
971 * res.rc (IDD_SPLASH): Remove white box.
972
89ca06c0
RC
9732002-05-01 Robert Collins <rbtcollins@hotmail.com>
974
975 Oops! forgot to list these in the last checkin.
976 * inilintmain.cc: New file.
977 * md5.h: New file - imported md5 source, BSD style licence.
978 * md5.cc: New file - imported md5 source, BSD style licence.
979 * Exception.cc: New file.
980 * Exception.h: New file.
981 * MD5++.cc: New file.
982 * MD5++.h: New file.
983
58ee6135
RC
9842002-05-01 Robert Collins <rbtcollins@hotmail.com>
985
986 * Makefile.am (AM_CFLAGS): Remove -mwindows, it's a linker flag.
987 Remove -fno-rtti, we need it for exceptions.
988 (AM_CXXFLAGS): Ditto.
989 (WARNONLY_CFLAGS): Ditto.
990 (EXTRA_PROGRAMS): Add with initial linter sources - not functional yet.
991 (setup_LDFLAGS): Add and set to -mwindows.
992 (setup_SOURCES): Add new sources.
993 * Makefile.in: Regenerate.
994 * README: Update TODO.
995 * choose.cc (scan_downloaded_files): Use ini information if it's
996 available.
997 * configure: Regenerate.
998 * download.cc (check_for_cached): Make reusable from elsewhere.
999 Throw exceptions on errors (as opposed to failures).
1000 Check MD5 sum when it's known.
1001 (download_one): Never force a download.
1002 Handle corrupt package exceptions.
1003 * ini.cc (find_routine): Reverse escape the URL to correctly identify
1004 the site URL.
1005 * inilex.l (MD5): Provide a parsing rule (note: lowercase is required).
1006 * iniparse.y: Allow calculation of MD5 sums, and allow src only
1007 packages.
1008 (process_src): New helper function.
1009 * isntall.cc (install_one_source): Check MD5 sums when possible.
1010 Throw exceptions on errors.
1011 (do_install_thread): Handle exceptions for installation calls.
1012 * package_source.h: Store MD5 information.
1013 * propsheet.cc (PropSheet::Create): Add a useful comment.
1014 * res.rc (IDS_INSTALL_ERROR): Define.
1015 (IDS_CORRUPT_PACKAGE): Define.
1016 * resource.h (IDS_INSTALL_ERROR): Define.
1017 (IDS_CORRUPT_PACKAGE): Define.
1018 * rfc1738.cc (rfc1738_unescape_part): Implement.
1019 * rfc1738.h (rfc1738_unescape_part): Declare.
1020
45e01f23
RC
10212002-04-29 Robert Collins <rbtcollins@hotmail.com>
1022
1023 * Makefile.am: Remove dependecy rules that automake emits.
1024 Correct badly copied dependency info for manually compiled files.
1025 (setup_SOURCES): Add all used headers.
1026 (EXTRA_DIST): Include non compilate but required sources.
1027 (setup_LDADD): Remove mingw32, it is autodetected.
1028 * Makefile.in: Regenerate.
1029 * String++.h: sys/types is a system header.
1030 * choose.cc (do_choose_thread): Make into a Win32 thread routine.
1031 Use ExitThread.
1032 (ChooserPage::OnMessageApp): Use Win32 threads. (_beginthread is not
1033 portable).
1034 * configure: Regenerate.
1035 * configure.in: Check for mingw32/cygwin specific headers and libraries.
1036 * cygpackage.h: Include the win32.h header to get correct macro
1037 definitions in all situations.
1038 * download.cc (do_download_reflector): Make into a Win32 thread routine.
1039 Use ExitThread.
1040 (do_download): Use Win32 threads.
1041 * ini.cc: Ditto.
1042 * install.cc: Ditto.
1043 * (WinMain): Adjust to build valid command line using application
1044 under both mingw32 and cygwin.
1045 * mount.cc (set)cygdrive_flags): Create new system flags if the
1046 user requests system and the value does not exist.
1047 * nio-http.cc: Define a _strnicmp for cygwin.
1048 * package_db.cc: Include <errno.h> if it exists.
1049 * site.cc (do_download_site_info_thread): Make into a Win32 thread
1050 routine.
1051 Use ExitThread.
1052 (do_download_site-Info): Use Win32 threads.
1053 * state.cc: Explicity declare variables to avoid header conflicts
1054 caused by '#define extern" on cygwin.
1055 * win32.h: Include <alloca.h> if it exists.
1056 (_MAX_PATH): Define as MAX_PATH when not defined by windows.h.
1057 (_access): Define as access if not defined by windows.h.
1058
8bb9dad9
RC
10592002-04-27 Robert Collins <rbtcollins@hotmail.com>
1060
1061 * compress_gz.cc (compress_gz::error): EOF is not an error condition.
1062
6908b7d7
RC
10632002-04-27 Robert Collins <rbtcollins@hotmail.com>
1064
1065 * Makefile.am: Add libgetopt++ to the subdirs list.
1066 Search the libgetopt++ header directory.
1067 Link against libgetopt++.la.
1068 (setup_SOURCES): Remove GetOption.cc and getopt.c and Option.cc.
1069 (setup_LDADD): Explicitly include res.o.
1070 * Makefile.in: Regenerate.
1071 * aclocal.m4: Regenerate.
1072 * bootstrap.sh: Call libtoolize.
1073 * configure: Regenerate.
1074 * configure.in: Add libtool support and configure libgetopt++.
1075 * desktop.cc (NoShortcutsOption): Turn into a BoolOption.
1076 (DesktopSetupPage::OnInit): Use the simpler syntax.
1077 * desktop.h: Remove dependency on Option.h, and remove NoShortcustOption
1078 declaration.
1079 * main.cc: Include getopt++/GetOption.h.
1080 (main): Use simpler syntax.
1081 * cdefs.h: Remove.
1082 * getopt.h: Remove.
1083 * getopt.c: Remove.
1084 * GetOption.h: Remove.
1085 * GetOption.cc: Remove.
1086 * Option.h: Remove.
1087 * Option.cc: Remove.
1088
9063358a
RC
10892002-04-26 Robert Collins <rbtcollins@hotmail.com>
1090
1091 * Makefile.am: Add zlib and bz2lib to SUBDIRS.
1092
f6100b6f
RC
10932002-04-26 Robert Collins <rbtcollins@hotmail.com>
1094
1095 * aclocal.m4: New file, cached macros.
1096 * bootstrap.sh: New file, calls required autotools in appropriate
1097 order.
1098 * Makefile.am: New file, input Makefile for automake.
1099 * Makefile,in: Now a generated file - regenerate.
1100 * configure: Regenerate.
1101 * configure.in: Add automake support.
1102 * inilex.l: Change VERSION to PACKAGEVERSION to avoid a collision with
1103 automake's VERSION define.
1104 * iniparse.y: Ditto.
1105
db04fc41
RC
11062002-04-26 Robert Collins <rbtcollins@hotmail.com>
1107
1108 * cdefs.h: New file, imported to allow getopt.c to build without
1109 cygwin headers.
1110 * getopt.h: New file, imported to allow building without cygwin headers.
1111 * getopt.c: Ditto.
1112 * bz2lib: New directory, contains copy of bz2lib.
1113 * cfgaux: New directory, contains autotool helper scripts.
1114 * Makefile,in: Adjust library and target definitions for building
1115 outside the sourceware tree.
1116 * compress_bz.h: Use new bz2lib header location.
1117 * mount.cc: Import key defines and enums to be independent of cygwin
1118 headers.
1119 * configure.in: Update to autoconf 2.53, and to be sourceware
1120 independent.
1121 * configure: Regenerate.
1122
931f2755
RC
11232002-04-12 Robert Collins <rbtcollins@hotmail.com>
1124
1125 * mklink2.cc (make_link_2): Tweak to work with current w32api
1126 headers.
1127
11282002-04-10 Pavel Tsekov <ptsekov@gmx.net>
1129
1130 * version.cc (canonicalize_version): Fix a call delete[]
1131 to delete the allocated address.
1132
11332002-03-29 Robert Collins <rbtcollins@hotmail.com>
1134
1135 * PickView.cc (PickView::set_headers): Set last_col correctly. Thanks
1136 to Ton van Overbeek for locating the bug area.
1137
49cf3899
RC
11382003-03-27 Robert Collins <rbtcollins@hotmail.com>
1139
1140 * PickView.cc (PickView::insert_pkg): Be more generic with
1141 object use.
1142 (PickView::insert_category): Ditto.
1143 (PickView::~PickView): Create.
1144 * PickView.h (PickView::~PickView): Declare.
1145
1be8f8fd
RC
11462003-03-27 Robert Collins <rbtcollins@hotmail.com>
1147
1148 * Makefile.in (OBJS): Add new commandline objects.
1149 * desktop.cc (NoShortCutsOption): New option code.
1150 (DesktopSetupPage::OnInit): Check whether to skip shortcuts.
1151 * desktop.h (NoShortCutsOption): New concrete command line option class.
1152 * main.cc (WinMain): Process command line options.
1153 * GetOption.h: New file, singleton command line class.
1154 * GetOption.cc: New file, implementation of the above.
1155 * Option.h : New file, abstract option for GetOption.
1156 * Option.cc: New file, implement constructor and destructor.
1157
f2e49cf8
RC
11582002-03-26 Pavel Tsekov <ptsekov@gmx.net>
1159
1160 * mkdir.cc (mkdir_p): Stop processing if the path is exhausted.
1161
11622002-03-26 Ton van Overbeek <tvoverbe@cistron.nl>
1163
1164 * PickPackageLine.cc (PickPackageline::paint): Adjust clipping rectangle
1165 to textheight, so large fonts work.
1166
11672003-03-26 Robert Collins <rbtcollins@hotmail.com>
1168
1169 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Don't translate
1170 symlinks.
1171
11722003-03-26 Robert Collins <rbtcollins@hotmail.com>
1173
1174 * io_stream_cygfile.cc (cwd): New static for cwd storage.
1175 (io_stream_cygfile::normalise): New method.
1176 (io_stream_cygfile::io_stream_cygfile): Use it.
1177 (io_stream_cygfile::exists): Ditto.
1178 (io_stream_cygfile::remove): Ditto.
1179 (io_stream_cygfile::mklink): And again.
1180 (cygmkdir_p): Yes, again.
1181 (io_stream_cygfile::move): And once more.
1182 * io_stream_cygfile.h (io_stream_cygfile::normalise): Declare.
1183 (io_stream_cygfile::cwd): Ditto.
1184
51ebb760
RC
11852003-03-26 Robert Collins <rbtcollins@hotmail.com>
1186
1187 * package_meta.cc (package_meta::~package_meta): Remove duplicate.
1188 (CategoryPackage::~CategoryPackage): Ditto. (Thanks to Ton van
1189 Overbeek for the report).
1190 * mklink2.cc: Moved from mklink2.c to avoid 'not a prototype error'.
1191 Make g++ compatible.
1192 * mklink2.c: Remove.
1193 * site.cc (site_list_type::init): Delete the correct memory addres.
1194 Thanks to Pavel Tsekov for tracking this down.
1195
e7d67c03
RC
11962002-03-20 Robert Collins <rbtcollins@hotmail.com>
1197
1198 * win32.h: Only define alloca if it's not already.
1199
2fa7c5a4
RC
12002002-03-20 Robert Collins <rbtcollins@hotmail.com>
1201
1202 * package_meta.h (packamgemeta::trustp): Make 'test' choice leave installed
1203 packages alone.
1204 * README: Update with latest requests.
1205 * Various: MTC fixes from setup200202 branch.
1206
7bf13fc9
CF
12072002-03-19 Christopher Faylor <cgf@redhat.com>
1208
1209 * Makefile.in (setup_version.c): Add back magic which allows detection
1210 of setup.exe version number.
1211
2fa7c5a4
RC
12122002-03-17 Robert Collins <rbtcollins@hotmail.com>
1213
1214 * * PickPackageLine.cc (PickPackageLine::paint): Fix incorrect clip region
1215 calculation on win9x systems.
1216
12172002-03-16 Robert Collins <rbtcollins@hotmail.com>
1218
1219 * install.cc (install_one_source): Write the correct length of a string to the
1220 lst file (Thanks to Pavel Tsekov for reporting the bug).
1221
12222002-03-15 Robert Collins <rbtcollins@hotmail.com>
1223
1224 * choose.cc (list_click): Always refresh the entire chooser, as our
1225 package state change mechanism is broken with the new improved list classes.
1226
12272002-03-15 Robert Collins <rbtcollins@hotmail.com>
1228
1229 * desktop.cc (make_passwd_group): Check for .lnk suffix on /etc/passwd and
1230 /etc/group.
1231
12322002-03-15 Robert Collins <rbtcollins@hotmail.com>
1233
1234 * PickPackageLine.cc (PickPackageLine::DrawCheck): New method factored out from
1235 paint().
1236 (PickPackageLine::paint): Use DrawCheck to draw the src tick box, and the new
1237 bin tickbox.
1238 (PickPackageLine::click): Handle the new bin tickbox.
1239 * PickPackageLine.h (PickPackageLine::DrawCheck): Declare this.
1240 * PickView.cc (pkg_headers): Add a Bin? column.
1241 (cat_headers): Ditto.
1242 (PickView::set_headers): Ditto.
1243 (PickView::init_headers): Ditto.
1244 * PickView.h (PickView): Ditto.
1245 * choose.cc (list_click): Use the new name for src_col to set the clip rectangle.
1246
12472002-02-24 Michael A Chase <mchase@ix.netcom.com>
1248
1249 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Fix up Robert's
1250 fixup.
1251
12522002-02-24 Michael A Chase <mchase@ix.netcom.com>
1253
1254 * desktop.cc (make_link): Add "file://" prefix to io_stream::mkpath_p()
1255 call.
1256 (make_passwd_group): Ditto.
1257 * localdir.cc (save_local_dir): Ditto.
1258 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Wrap long lines.
1259 Add "cygfile://" prefix to io_stream::open() calls.
1260
204315f9
RC
12612002-02-24 Robert Collins <rbtcollins@hotmail.com>
1262
1263 * log.cc (log_save): Fix creating /var/log.
1264 * packate_meta.cc (standard_dirs): Remove duplicate '/''s.
1265
58db1046
RC
12662002-02-24 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1267
1268 * res.rc (STRINGTABLE): Add IDS_CYGWIN_SETUP and
1269 IDS_CYGWIN_SETUP_WITH_PROGRESS strings.
1270 * resource.h: Add IDS_CYGWIN_SETUP and
1271 IDS_CYGWIN_SETUP_WITH_PROGRESS IDs.
1272
1273 * splash.cc (OnInit): Qualify SetWindowText() call with global scope
1274 operator (::SetWindowText()).
1275
1276 * threebar.cc: Run indent.
1277 (cistring.h): Add include.
1278 (SetText1, SetText2, SetText3): Qualify SetWindowText() call with
1279 global scope operator.
1280 (SetBar2): Add logic for writing percent complete into window title.
1281
1282 * window.h: Run indent.
1283 (SetWindowText): New function.
1284 (String): Add forward declaration.
1285 * window.cc: Run indent.
1286 (String++.h): Add include.
1287 (SetWindowText): New function.
1288
490717ef
RC
12892002-02-24 Robert Collins <rbtcollins@hotmail.com>
1290
1291 * README: Update TODO list.
1292 * install.cc (install_one): Fix src package location.
1293 (do_install_thread): Fix creating directories.
1294
7c6ef2c3
RC
12952002-02-19 Robert Collins <rbtcollins@hotmail.com>
1296
1297 * choose.cc: Include cygpackage.h for scan2 use.
1298 (set_existence): Ignore setup.ini mirrors when installing from cwd.
1299 (scan2): Process any valid file.
1300 Add cache entries when a file matching a setup.ini listed version is found.
1301 * filemanip.cc (parse_filename): Remove pkgtar - not used anywhere else.
1302 * filemanip.h (filemanip::pkgtar): Remove.
1303 * package_meta.cc (CategoryPackage::~CategoryPackage): New method.
1304 (packagemeta::~packagemeta): Move from package_meta.h
1305 Remove and delete all version and category information.
1306 * package_meta.h (CategoryPackage): Create a destructor.
1307 (packagemeta::~packagemeta): Move to .cc file.
1308
13092002-02-19 Robert Collins <rbtcollins@hotmail.com>
1310
1311 * install.cc (install_one_source): Make NULL cached package names cause
1312 errors.
1313
bb087dce
RC
13142002-02-18 Michael A Chase <mchase@ix.netcom.com>
1315
1316 * desktop.cc (make_passwd_group): Don't create passwd-grp.bat
1317 unnecessarily.
1318
13192002-02-18 Michael A Chase <mchase@ix.netcom.com>
1320
1321 * log.cc (log_save): Put "\n" at end of log lines instead of "'".
1322
c90bc3df
RC
13232002-02-19 Robert Collins <rbtcollins@hotmail.com>
1324
1325 * mount.cc (create_mount): Avoid a const char*->char* warning.
1326 (read_mounts): Ditto.
1327
3bab9a49
RC
13282002-02-05 Jason Tishler <jason@tishler.net>
1329
2fa7c5a4 1330 * download.cc (do_download_thread): Fix off-by-one error.
3bab9a49 1331
1ac649ed
RC
13322002-02-19 Robert Collins <rbtcollins@hotmail.com>
1333
1334 * configure.in (CXXFLAGS): Substitute at configure time, not runtime.
1335 * configure (CXXFLAGS): Regenerate.
1336 * Makefile.in (iniparse.o): Build via default rules - no errors now.
1337 * README: TODO list updates.
1338
13392002-02-19 Michael A Chase <mchase@ix.netcom.com>
1340
1341 * String++.cc (String::concat):: Remove.
1342 (String::vconcat):: Ditto.
1343 * String++.h (String::concat):: Remove.
1344 (String::vconcat):: Ditto.
1345 * archive_tar.cc: Don't include concat.h.
1346 * archive_tar_file.cc: Don't include concat.h.
1347 * compress_bz.cc (compress_bz::peek): Don't log unneeded messages.
1348 (compress_bz::seek): Ditto.
1349 (compress_bz::~compress_bz): Ditto.
1350 * compress_gz.cc (compress_gz::peek): Ditto.
1351 (compress_gz::error): Ditto.
1352 (compress_gz::~compress_gz): Ditto.
1353 * concat.cc (vconcat): Remove.
1354 (concat): Ditto.
1355 * concat.h (vconcat): Remove.
1356 (concat): Ditto.
1357 * desktop.cc (desktop_icon): Use new cygpath.
1358 (make_etc_profile): Ditto.
1359 (uexists): Ditto.
1360 (make_passwd_group): Ditto.
1361 (save_icon): Ditto.
1362 (check_desktop): Remove concat use.
1363 (check_start_menu): Ditto.
1364 * download.cc (download_one): Use new mkpath_p correctly.
1365 Use LOG_PLAIN.
1366 * fromcwd.cc: Don't include concat.h.
1367 * geturl.cc (get_url_to_membuf): Use String log() call.
1368 (get_url_to_file): Ditto.
1369 * install.cc: Don't include concat.h.
1370 (uninstall_one): Use LOG_PLAIN.
1371 (replace_one): Ditto.
1372 (install_one_source): Ditto.
1373 (install_one): More char to String conversion.
1374 (do_install_thread): Use new cygpath.
1375 Use new create_mount.
1376 * io_stream.cc (io_stream::move): Use new log().
1377 * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new cygpath.
1378 (io_stream_cygfile::exists): Ditto.
1379 (io_stream_cygfile::remove): Ditto.
1380 (io_stream_cygfile::mklink): Ditto.
1381 (io_stream_cygfile::write): Ditto.
1382 (cygmkdir_p): Ditto.
1383 (io_stream_cygfile::move): Ditto.
1384 * io_stream_file.cc: Don't include log.h.
1385 (io_stream_file::write): Don't log unneeded messages.
1386 * localdir.cc: Don't include concat.h.
1387 (LocalDirPage::OnNext): Use LOG_PLAIN.
1388 * log.cc: Don't include log.h.
1389 (exit_setup): Use new cygpath.
1390 * log.h (log_level): Add new level LOG_PLAIN.
1391 * main.cc (WinMain): Use new log().
1392 * mount.cc (SLASH_P): New macro from concat.h.
1393 (cygpath): Make String version globally visible.
1394 Remove varargs version.
1395 * mount,h: Ditto.
1396 * msg.cc (mbox): Use LOG_PLAIN.
1397 * net.cc (NetPage::OnNext): Ditto.
1398 * nio-ftp.cc (ftp_line): Use new log().
1399 * nio-http.cc: Don't include log.h.
1400 (retry_get): Use alternative url variable.
1401 * package_db.cc: Don't include concat.h.
1402 (packagedb::flush): Don't use concat.
1403 * package_meta.cc: Don't include concat.h.
1404 (packagemeta::uninstall): Use new cygpath.
1405 * postinstall.cc (do_postinstall): Ditto.
1406 * root.cc (RootPage::OnNext): Use LOG_PLAIN.
1407 * script.cc: Don't include concat.h.
1408 (init_run_script): Use new cygpath.
1409 (run_script): More char * to String conversion.
1410 (try_run_script): Ditto.
1411 * site.cc: Don't include concat.h.
1412 (SitePage::OnNext): Use LOG_PLAIN.
1413 (SitePage::OnMessageCmd): Use new log().
1414 * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN.
1415
3c054baf
RC
14162002-02-19 Robert Collins <rbtcollins@hotmail.com>
1417
1418 * Makefile.in (OBJS): Add new object.
1419 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the name.
1420 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
1421 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
1422 (PickLine::Pickline): Accept a String for the key.
1423 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to Strings.
1424 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is automatically
1425 initialisednow.
1426 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
1427 (PickView::init_header): Move category length checking out of the inner loop for
1428 efficiency.
1429 Convert all char use to Strings.
1430 * PickView.h: Include the String++ header.
1431 (PickView::note_width): Update the prototype.
1432 * String++.cc: New file, implements a reference counting string class.
1433 * String++.h: New file, declares a reference counting string class.
1434 * archive.cc: Include String++ instead of concat.
1435 (archive::extract_file): Convert char * usage to Strings.
1436 * archive.h: Inlude the String++ header.
1437 (archive::extract_file): Update prototype.
1438 (archive::next_file_name): Convert to a String.
1439 (archive::linktarget): Ditto.
1440 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
1441 (archive_tar::linktarget): Ditto.
1442 * arhive_tar.h: Update the copyright.
1443 Explicitly include the relevant headers.
1444 (tar_map_result_type): Convert to String usage.
1445 (archive_tar::next_file_name): Update prototype.
1446 (archive_tar::linktarget): Ditto.
1447 * category.cc (Category::Category): Update initialisers.
1448 Convert to String usage.
1449 (Categorycmp): Update to String usage.
1450 * category.h: Include the String++ header.
1451 (Category::Category): Update to String usage.
1452 (Category::name): Ditto.
1453 (Category::key): Ditto.
1454 * choose.cc: Remove concat.h, it's not needed.
1455 (scan2): Update to String usage.
1456 (do_choose): Ditto.
1457 * cygpackage.cc: Update includes for use of String class.
1458 (cygpackage::cygpackage): Update for String usage.
1459 (cygpackage::set_canonical_version): Ditto.
1460 (cygpackage::destroy): Ditto.
1461 (cygpackage::getfirstfile): Ditto.
1462 (cygpackage::getnextfile): Ditto.
1463 (cygpackage::Name): Ditto.
1464 (cygpackage::Vendor_version): Ditto.
1465 (cygpackage::Package_version): Ditto.
1466 (cygpackage::Canonical_version): Ditto.
1467 (cygpackage::set_sdesc): Ditto.
1468 (cygpackage::set_ldesc): Ditto.
1469 * cygpackage.h: Include String++.h for parsing this file.
1470 (cygpackage::cygpackage): Update for String usage.
1471 (cygpackage::set_canonical_version): Ditto.
1472 (cygpackage::destroy): Ditto.
1473 (cygpackage::getfirstfile): Ditto.
1474 (cygpackage::getnextfile): Ditto.
1475 (cygpackage::Name): Ditto.
1476 (cygpackage::Vendor_version): Ditto.
1477 (cygpackage::Package_version): Ditto.
1478 (cygpackage::Canonical_version): Ditto.
1479 (cygpackage::set_sdesc): Ditto.
1480 (cygpackage::set_ldesc): Ditto.
1481 (cygpackage::name): Ditto.
1482 (cygpackage::vendor): Ditto.
1483 (cygpackage::packagev): Ditto.
1484 (cygpackage::canonical): Ditto.
1485 (cygpackage::fn): Ditto.
1486 (cygpackage::sdesc): Ditto.
1487 (cygpackage::ldesc): Ditto.
1488 * desktop.cc: Update includes for use of String class.
1489 (batname): Update for String usage.
1490 (iconname): Ditto.
1491 (make_link): Ditto.
1492 (start)menu): Ditto.
1493 (desktop_icon): Ditto.
1494 (make_cygwin_bat): Ditto.
1495 (make_etc_profile): Ditto.
1496 (uexists): Ditto.
1497 (make_passwd_group): Ditto.
1498 (save_icon): Ditto.
1499 (check_desktop): Ditto.
1500 (check_startmenu): Ditto.
1501 * dialog.cc (eget): Update for String usage.
1502 (egetString): New function.
1503 (eset): New variant for Strings.
1504 * dialog.h: Include String++.h for parsing this file.
1505 (egetString): New function.
1506 (eset): New variant for Strings.
1507 * diskfull.cc (diskfull): Update for String usage.
1508 * diskfull.h: Include String++.h for parsing this file.
1509 (diskfull): Update for String usage.
1510 * download.cc: Update includes for use of String class.
1511 (check_for_cached): Update for String usage.
1512 (download_one): Ditto.
1513 * filemanip.cc (get_file_size): Ditto.
1514 (base): Ditto.
1515 (parse_filename): Ditto.
1516 (backslash): Ditto.
1517 * filemanip.h: Include String++.h for parsing this file.
1518 (fileparse): Update for String usage.
1519 (base): Ditto.
1520 (parse_filename): Ditto.
1521 Don't consider '_' to be a separator.
1522 (backslash): Ditto.
1523 * find.cc: Update includes for use of String class.
1524 (find_sub): Make more flexible.
1525 (find): Update for String usage.
1526 * find.h (find): Use Strings.
1527 * fromcwd.cc (found_file): Update for String usage.
1528 * geturl.cc: Ditto.
1529 (init_dialog): Ditto.
1530 (get_url_to_membuf): Ditto.
1531 (get_url_to_string): Ditto.
1532 (get_url_to_file): Ditto.
1533 * geturl.h: Ditto.
1534 (get_url_to_membuf): Ditto.
1535 (get_url_to_string): Ditto.
1536 (get_url_to_file): Ditto.
1537 * hash.h: Ditto.
1538 (add_subdirs): Ditto.
1539 * ini.cc: Update includes for String usage.
1540 (find_routine): Update for String usage.
1541 (do_remote_ini): Ditto.
1542 (do_ini_thread): Ditto.
1543 * ini.h (ini_init): Ditto.
1544 * inilex.l: Update includes for String usage.
1545 (ini_init): Update for String usage.
1546 * iniparse.y: Ditto.
1547 (add_correct_version): Ditto.
1548 * install.cc: Update includes for String usage.
1549 (install_one_source): Update for String usage.
1550 (uninstall_one): Ditto.
1551 (replace_one): Ditto.
1552 (install_one_source): Ditto.
1553 (do_install_thread): Ditto.
1554 * io_stream.cc: Update includes for String usage.
1555 (io_stream::open): Update for String usage.
1556 (io_stream::mkpath_p): Ditto.
1557 (io_stream::remove): Ditto.
1558 (io_stream::mklink): Ditto.
1559 (io_stream::move_copy): Ditto.
1560 (io_stream::move): Ditto.
1561 (io_stream::exists): Ditto.
1562 * io_stream.h: Update includes to allow correct parsing.
1563 (io_stream::open): Update for String usage.
1564 (io_stream::mkpath_p): Ditto.
1565 (io_stream::remove): Ditto.
1566 (io_stream::mklink): Ditto.
1567 (io_stream::move_copy): Ditto.
1568 (io_stream::move): Ditto.
1569 (io_stream::exists): Ditto.
1570 * io_stream_cygfile.cc: Update includes for String usage.
1571 (get_root_dir_now): Update for String usage.
1572 (io_stream_cygfile::io_stream_cygfile): Ditto.
1573 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1574 (io_stream_cygfile::exists): Ditto.
1575 (io_stream_cygfile::remove): Ditto.
1576 (io_stream_cygfile::mklink): Ditto.
1577 (cygmkdir_p): Ditto.
1578 (io_stream_cygfile::set_mtime): Ditto.
1579 (io_stream_cygfile::move): Ditto.
1580 (io_stream_cygfile::get_size): Ditto.
1581 * io_stream_cygfile.h: Update includes for String usage.
1582 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
1583 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1584 (io_stream_cygfile::exists): Ditto.
1585 (io_stream_cygfile::remove): Ditto.
1586 (io_stream_cygfile::mklink): Ditto.
1587 (cygmkdir_p): Ditto.
1588 (io_stream_cygfile::set_mtime): Ditto.
1589 (io_stream_cygfile::move): Ditto.
1590 (io_stream_cygfile::get_size): Ditto.
1591 (io_stream_cygfile::fname): Ditto.
1592 (io_stream_cygfile::lmode): Ditto.
1593 * io_stream_file.cc: Update includes for String usage.
1594 (io_stream_file::io_stream_file): Update for String usage.
1595 (io_stream_file::~io_stream_file): Ditto.
1596 (io_stream_file::exists): Ditto.
1597 (io_stream_file::remove): Ditto.
1598 (io_stream_file::mklink): Ditto.
1599 (io_stream_file::set_mtime): Ditto.
1600 (io_stream_file::move): Ditto.
1601 (io_stream_file::get_size): Ditto.
1602 * io_stream_file.h: Update includes for String usage.
1603 * io_stream_file.cc: Update includes for String usage.
1604 (io_stream_file::io_stream_file): Update for String usage.
1605 (io_stream_file::~io_stream_file): Ditto.
1606 (io_stream_file::exists): Ditto.
1607 (io_stream_file::remove): Ditto.
1608 (io_stream_file::mklink): Ditto.
1609 (io_stream_file::set_mtime): Ditto.
1610 (io_stream_file::move): Ditto.
1611 (io_stream_file::get_size): Ditto.
1612 (io_stream_file::fname): Ditto.
1613 (io_stream_file::lmode): Ditto.
1614 * localdir.cc: Update includes for String usage.
1615 (save_local_dir): Update for String usage.
1616 (check_if_enable_next): Ditto.
1617 (load_dialog): Ditto.
1618 (browse_cb): Ditto.
1619 (LocalDirPage::OnInit): Ditto.
1620 (LocalDirPage::OnNext): Ditto.
1621 * log.cc: Update includes for String usage.
1622 (struct LogEnt): Update for String usage.
1623 (log): Ditto.
1624 (log_save): Ditto.
1625 (exit_setup): Ditto.
1626 * log.h: Update includes for String usage.
1627 (log_level): Update for String usage.
1628 (log): Ditto.
1629 (log_save): Ditto.
1630 * main.cc (WinMain): Update for String usage.
1631 * mklink2.c (make_link_2): Update for String usage.
1632 * mklink2.h (make_link_2): Update for String usage.
1633 * mount.cc: Update includes for String usage.
1634 (mount_table): Update for String usage.
1635 (find2): Ditto.
1636 (create_mount): Ditto.
1637 (remove1): Ditto.
1638 (remove_mount): Ditto.
1639 (read_mounts): Ditto.
1640 (set_root_dir): Ditto.
1641 (get_root_dir): Ditto.
1642 (path_prefix_p): Ditto.
1643 (cygpath): Ditto.
1644 * mount.h: Update includes for String usage.
1645 (create_mount): Update for String usage.
1646 (remove_mount): Ditto.
1647 (cygpath): Ditto.
1648 (set_root_dir): Ditto.
1649 (get_root_dir): Ditto.
1650 * msg.cc (mbox): Ditto.
1651 * net.cc (NetPage::OnNext): Ditto.
1652 * package_db.cc (packagedb::flush): Ditto.
1653 (packagedb::packages): Ditto.
1654 (packagedb::categories): Ditto.
1655 * package_db.h: Update includes for String usage.
1656 (packagedb::packages): Update for String usage.
1657 (packagedb::categories): Ditto.
1658 * package_meta.cc: Update includes for String usage.
1659 (hash::add_subdirs): Update for String usage.
1660 (packagemeta::uninstall): Ditto.
1661 (packagemeta::SDesc): Ditto.
1662 (packagemeta::action_caption): Ditto.
1663 * package_meta.h: Update includes for String usage.
1664 (packagemeta::packagemeta): Update for String usage.
1665 (packagemeta::~packagemeta): Ditto.
1666 (packagemeta::uninstall): Ditto.
1667 (packagemeta::SDesc): Ditto.
1668 (packagemeta::action_caption): Ditto.
1669 (package_source.cc site::site): Ditto.
1670 (packagesource::set_canonical): Ditto.
1671 (packagesource::set_cached): Ditto.
1672 * package_source.h: Update includes for String usage.
1673 (site::site): Update for String usage.
1674 (packagesource::set_canonical): Ditto.
1675 (packagesource::set_cached): Ditto.
1676 (packagesource::packagesource): Ditto.
1677 (packagesource::sites): Ditto.
1678 (packagesource::cached): Ditto.
1679 * package_version.h: Update includes for String usage.
1680 (Dependency): Update for String usage.
1681 (packageversion): Ditto.
1682 * postinstall.cc: Update includes for String usage.
1683 (do_postinstall): Update for String usage.
1684 * res.rc (IDD_LOCAL_DIR): Fix typo again!
1685 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
1686 * rfc1738.h: Update includes for String usage.
1687 (rfc1738_escape_part): Update for String usage.
1688 * root.cc: Update includes for String usage.
1689 (check_if_enable_next): Update for String usage.
1690 (save_dialog): Ditto.
1691 (browse_cb): Ditto.
1692 (directory_is_absolute): Ditto.
1693 (directory_is_rootdir): Ditto.
1694 (directory_has_spaces): Ditto.
1695 (RootPage::OnInit): Ditto.
1696 (RootPage::OnNext): Ditto.
1697 * script.cc: Update includes for String usage.
1698 (init_run_script): Update for String usage.
1699 (run): Ditto.
1700 (run_script): Ditto.
1701 (try_run_script): Ditto.
1702 * script.h: Update includes for String usage.
1703 (run_script): Update for String usage.
1704 (try_run_script): Ditto.
1705 * site.cc site_list): Ditto.
1706 (all_site_list): Ditto.
1707 (other_url): Eliminate.
1708 (site_list_type::init): Update for String usage.
1709 (site_list_type::site_list_type): Ditto.
1710 (get_site_list): Ditto.
1711 (get_saved_sites): Ditto.
1712 (do_download_site_info_thread): Ditto.
1713 (SitePage::OnNext): Ditto.
1714 (SitePage::OnActivate): Ditto.
1715 (SitePage::PopulateListBox): Ditto.
1716 (SitePage::OnMessageCmd): Handle empty url's.
1717 * site.h: Update includes for String usage.
1718 (site_list_type::site_list_type): Update for String usage.
1719 (site_list_type::init): Ditto.
1720 (site_list_type::~site_list_type): Ditto.
1721 (site_list_type::url): Ditto.
1722 (site_list_type::displayed_url): Ditto.
1723 (site_list_type::key): Ditto.
1724 * source.cc (SourcePage::OnDeactivate): Ditto.
1725 * state.h: Update includes for String usage.
1726 (local_dir): Update for String usage.
1727 (trust_level): Remove.
1728 * version.cc: Update includes for String usage.
1729 (canonicalize_version): Update for String usage.
1730 * version.h: Update includes for String usage.
1731 (canonicalize_version): Update for String usage.
1732
08233ec7
CF
17332002-02-15 Christopher Faylor <cgf@redhat.com>
1734
1735 * filemanip.c (parse_filename): Revert previous change.
1736
94dffbdd
CF
17372002-02-14 Christopher Faylor <cgf@redhat.com>
1738
1739 * filemanip.c (parse_filename): Don't treat '_' as a version number
1740 introducer.
1741
cef493d7
CF
17422002-01-29 Christopher Faylor <cgf@redhat.com>
1743
1744 * configure: Regenerate.
1745
57219197
RC
17462002-01-27 Robert Collins <rbtcollins@hotmail.com>
1747
94dffbdd
CF
1748 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
1749 <Hoeck@extern.lrz-muenchen.de>
57219197 1750
cc7493c3
RC
17512002-01-27 Robert Collins <rbtcollins@hotmail.com>
1752
1753 * README: Update Todo's.
1754 * list.h: Run indent.
1755 (list): New methods checksize and insert to reduce code duplication.
1756 (list::registerbykey): Use them.
1757 (list::registerbyobject): Ditto.
94dffbdd
CF
1758 (list::removebyindex): Copy each object individually - safe for non
1759 trivial objects.
cc7493c3
RC
1760 (list::checksize): Implement.
1761 (list::insert): Implement.
1762
a900d1fa
RC
17632002-01-27 Robert Collins <rbtcollins@hotmail.com>
1764
1765 * Makefile.in: Remove the dlmalloc object by default.
94dffbdd
CF
1766 * install.cc (do_install_thread): Remove the mallinfo call for 'working
1767 around' the crashing issue.
a900d1fa 1768 * package_db.h: Include <string.h> - it's needed to parse this.
94dffbdd 1769 * package_source.cc (site::site): Move here from the header file.
a900d1fa
RC
1770 * package_source.h (site): Stop the constructor being inlinable.
1771
9835fb4a
RC
17722002-01-26 Robert Collins <rbtcollins@hotmail.com>
1773
1774 * filemanip.cc (find_tar_ext): Add a descriptive comment.
1775
17762002-01-25 Michael A Chase <mchase@ix.netcom.com>
1777
1778 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
1779 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
94dffbdd
CF
1780 * install.cc (install_one_source): Add space between words in log()
1781 call.
cef493d7 1782
77ba23d8
RC
17832002-01-22 Robert Collins <rbtcollins@hotmail.com>
1784
94dffbdd
CF
1785 * log.cc (exit_setup): When saving to the download dir, explicity
1786 specify the path.
77ba23d8 1787
6dc75764
RC
17882002-01-22 Robert Collins <rbtcollins@hotmail.com>
1789
94dffbdd
CF
1790 * archive.cc (extract_file): Separate out the prefix and the URL
1791 scheme.
6dc75764 1792 * archive.h (archive::extract_file): Ditto.
94dffbdd
CF
1793 * install.cc (install_one_source): Ditto. Use the new
1794 archive::extract_file syntax.
6dc75764
RC
1795 (replace_one): Use the new syntax.
1796 (io_stream.cc): Add some log info for links.
1797
7e8fc33c
RC
17982002-01-22 Robert Collins <rbtcollins@hotmail.com>
1799
1800 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
1801 (PickCategoryLine::paint): Use the new action method.
1802 (PickCategoryLine::click): Set the action for all children.
1803 (PickCategoryLine::set_action): New method.
1804 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
1805 (PickCategoryLine::current_default): Use packagemeta _actions class.
94dffbdd
CF
1806 * PickLine.h (PickLine::set_action): New abstract method that requires
1807 including package_meta.h.
7e8fc33c
RC
1808 * PickPackageLine.cc (PickPackageLine::set_action): New method.
1809 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
1810 * list.h (getbykey): A const correctness fix.
1811 * package_meta.cc: Run indent.
1812 (packagemeta::Default_action): New const.
1813 (packagemeta::Install_action): Ditto.
1814 (packagemeta::Reinstall_action): Ditto.
1815 (packagemeta::Uninstall_action): Ditto.
1816 (packagemeta::_actions::caption): New method.
1817 (packagemeta::_actions::operator++): Ditto.
1818 (packagemeta::set_action): New overload.
1819 * package_meta.h (packagemeta::_actions): New class.
1820 (packagemeta::set_action): Declare this.
1821
2c9254b6
RC
18222002-01-22 Robert Collins <rbtcollins@hotmail.com>
1823
1824 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
1825 * choose.cc: Don't define alloca anymore, it's done in win32.h
1826
97647369
RC
18272002-01-22 Robert Collins <rbtcollins@hotmail.com>
1828
1829 * PickPackageLine.cc: New file.
1830 * PickPackageLine.h: New file.
1831 * PickLine.cc: New file.
1832 * PickLine.h: New file.
1833 * PickCategoryLine.cc: New file.
1834 * PickCategoryLine.h: New file.
1835 * PickView.cc: New file.
1836 * PickView.h: New file.
1837 * Makefile.in: Add new objects to setup.exe.
1838 Backout -fno-exceptions option.
1839 * choose.cc: Include PickView.h.
1840 Remove view related defines and static variables.
1841 (_pkg_headers): Moved to PickView.cc.
1842 (_cat_headers): Ditto.
1843 (view::views::Unknown): Ditto.
1844 (view::views::PackageFull):
1845 (view::views::Package):
1846 (view::views::Category):
1847 (pkgtrustp): Moved to package_meta.cc.
1848 (add_required): Moved to package_meta.cc.
1849 (pick_category_line::empty): Moved to PickCategoryLine.cc
1850 (paint): Adjust for moved static variables.
1851 (view::scroll): Moved to PickView.cc.
1852 (list_vscroll): Adjust for moved static variables.
1853 (list_hscroll): Ditto.
1854 (list_click): Ditto.
1855 (note_width): Moved to PickView.cc.
1856 (view::view): Ditto.
1857 (view::set_view_mode): Ditto.
1858 (view::mode_caption): Ditto.
1859 (view::views::caption): Ditto.
1860 (view::set_headers): Ditto.
1861 (DoInsertItem): Ditto.
1862 (view::init_headers): Ditto.
1863 (view::insert_pkg): Ditto.
1864 (view::insert_category): Ditto.
1865 (view::clear_view): Ditto.
1866 (view::views::operator++): Ditto.
1867 (view::click): Ditto.
1868 (default_trust): Adjust for moved statics.
1869 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
1870 (pick_pkg_line::click): Ditto.
1871 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
1872 (pick_category_line::paint): Ditto.
1873 (pick_category_line::click): Ditto.
1874 (set_view_mode): Adjust for moved statics.
1875 (create_listview): Ditto.
1876 * choose.h: Remove Category and packagemeta forward defines - not needed.
1877 Don't include unneeded headers list and package_meta.
1878 (_header): Move to PickView.h.
1879 (pick_line): Move to PickLine.h.
1880 (pick_pkg_line): Move to PickPackageLine.h.
1881 (pick_category_line): Move to PickCategoryLine.h.
1882 (view): Move to PickView.h.
1883 * ini.h (trusts): Move to package_meta.h.
1884 * package_meta.h (trusts): New enum.
1885 (packagemeta::set_requirements): New helper method.
1886 (packagemeta::trustp): Ditto.
1887
b566778e
CF
18882002-01-21 Christopher Faylor <cgf@redhat.com>
1889
1890 * choose.h (view): Move forward declaration of views into public area
1891 or g++ v3 will complain.
1892
f71e9756
CF
18932002-01-21 Christopher Faylor <cgf@redhat.com>
1894
1895 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
1896 * win32.h (alloca): Define as __builtin_alloca.
1897 * io_stream_memory.cc: Add include file.
1898
e9440f0f
RC
18992002-01-21 Robert Collins <rbtcollins@hotmail.com>
1900
1901 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as destroyed.
1902 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
1903 * compress.cc (compress::~compress): Be less verbose.
1904 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
1905 Mark the stream as destroyed.
1906 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as destroyed.
1907 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not marked
1908 as destroyed.
cef493d7 1909 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
e9440f0f
RC
1910 stream as destroyed.
1911 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
1912 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
cef493d7 1913
5e0464a1
RC
19142002-01-21 Robert Collins <rbtcollins@hotmail.com>
1915
1916 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
1917 (OBJS): Link in malloc objects.
1918 * category.cc (category): Use new char, not strdup.
1919 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
1920 (do_choose): Use new char, not malloc.
1921 * concat.cc (vconcat): Ditto.
1922 * cygpackage.cc (cygpackage): Use new char, not strdup.
1923 (set_canonical_version): Ditto.
1924 (cygpackage::destroy): Use delete[], not free.
1925 * desktop.cc (uexists): Ditto.
1926 * dialog.cc (egest): Use new char, not strdup.
1927 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
1928 * hash.cc (hash::hash): Use delete instead of free.
1929 (hash::add): Use new char, not strdup.
1930 * ini.cc (do_remote_ini): Use delete[] not free.
1931 * inilex.l: Use new char, not strdup.
1932 (ini_init): Ditto.
1933 * iniparse.y: Ditto.
1934 Use a local package_db rather than a static one.
1935 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
1936 (do_install_thread): Call mallinfo to force a consistency check. Appears
1937 to fix a 'inuse' error in -DDEBUG builds.
1938 Use delete[] for strings.
1939 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new char,
1940 not strdup.
1941 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
1942 (io_stream_cygfile::remove): Use new char, not strdup.
1943 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not strdup.
1944 (io_stream_file::io_stream_file): Use delete[], not free.
1945 (io_stream_file::remove): Use new char, not strdup.
1946 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
1947 * io_stream_memory.h (memblock): Use new char, not malloc.
1948 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
1949 * main.cc (WinMain): Use new char, not strdup.
1950 * mount.cc (find2): Use new char, not malloc.
1951 (read_mounts): Ditto.
1952 (cygpath): Use new char, not strdup.
1953 * netio.cc (NetIO::~NetIO): Use delete[], not free.
1954 (NetIO::set_url): Use new char, not strdup.
1955 (NetIO::get_ftp_auth): Use delete[], not free.
1956 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
1957 Use new char instead of strdup.
1958 * nio-http.cc (base64_encode): Use new char, not malloc.
1959 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
1960 * package_source.h (~ packagesource): Use delete[] instead of delete.
1961 * port.h (strdup): Deprecate the use of strdup.
1962 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
1963 * script.cc (init_run_script): Us delete[], not free.
1964 (run_script): Ditto.
1965 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
1966 (SimpleSocket::invalidate): Use delete[], not free.
1967 * site.cc (site_list_type::init): Use new char instead of strdup.
1968 * site.h (~site_list_type): Use delete[], not free.
1969
ad3c7385
RC
19702002-01-20 Robert Collins <rbtcollins@hotmail.com>
1971
1972 * Makefile.in (OBJS): Add win32.o - win32 support functions.
1973 * README: Update todos.
1974 * archive.cc (extract_file): Support a suffix for appending to extracted files.
1975 * archive.h: Ditto.
1976 * choose.cc (set_view_mode): Use the new view::views class.
1977 (view::views::Unknown): New static for defaulting view::views variables.
1978 (view::views::PackageFull): New static for the current view.
1979 (view::views::Package): Ditto.
1980 (view::views::Category): Ditto.
1981 (topbucket::paint): Remove.
1982 (topbucket::empty): Rename to pick_category_line::empty.
1983 (topbucket::~topbucket): Remove.
1984 (paint): Use the new view::views class.
1985 Don't paint 'all' as a category when showing package categoies.
1986 (pick_category_line::actiontext): New method.
1987 (pick_category_line::paint): Make showing the category optional, and show the
1988 'category action'.
1989 (pick_category_line::click): Make showing the category optional, and
1990 differentiate between the name being clicked, and the action description.
1991 (view::view): Use the new view::views class.
1992 (view::set_view_mode): Ditto.
1993 (view::mode_caption): Ditto.
1994 (view::views::caption): New method.
1995 (view::set_headers): Use the new view::views class.
1996 (view::clear_view): Ditto.
cef493d7 1997 (viewsplusplus): Replaced by
ad3c7385
RC
1998 (view::views::operator++): New operator.
1999 (set_view_mode): Use the new view::views class.
2000 (create_listview): Ditto.
2001 (dialog_cmd): Ditto.
2002 * choose.h (actions): Remove.
2003 (views): Remove.
2004 (pick_line): Add a new convenience constructor.
2005 (top_bucket): Remove.
2006 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
2007 (view::views): New class.
2008 * ini.h: Don't include choose.h
2009 (is_download_action): Remove.
2010 (is_upgrade_action): Remove.
2011 (is_uninstall_action): Remove.
2012 (is_full_action): Remove.
2013 * install.cc (num_replacements): New static.
2014 (rebootneeded): Ditto.
2015 (replace_one): Handle upgrades separate from removal or new installs.
2016 (install_one_source): Handle in use files.
2017 (install_one): Don't repeat upgrades.
2018 (do_install_thread): Initialize new statics.
2019 Order actions as uninstall, replace, install.
2020 Warn about rebooting if needed.
2021 * res.rc (IDS_REBOOT_REQUIRED): New string.
2022 * resource.h (IDS_REBOOT_REQUIRED): Give value.
2023 * win32.h: Declare class Win32, and update copyright and intent message.
2024 * win32.cc: New file.
2025
edef4f57
CV
20262002-01-15 Corinna Vinschen <corinna@vinschen.de>
2027
2028 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
2029 * package_meta.cc (packagemeta::uninstall): Check for additional
2030 Windows shortcut. Unset R/O file attribute before trying to delete
2031 file.
2032
21f325d7
RC
20332002-01-09 Robert Collins <rbtcollins@hotmail.com>
2034
2035 * choose.cc (pkgtrustp): Fall back to installed if a package is not present in
2036 the current trust level. For prev, fall back via curr.
2037 (set_existence): Allow sources with no sites, but cached files to be
2038 kept.
2039 (pick_category_line::paint): Start drawing clickable categories.
2040 * fromcwd.cc (found_file): Reinstate local file scanning.
2041
858f100d
RC
20422002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2043
cef493d7 2044 * fromcwd.cc: Run indent.
858f100d
RC
2045 (do_fromcwd): Reverse sense of comment. Set next_dialog
2046 to IDD_CHOOSER instead of IDD_CHOOSE.
2047 * ini.cc (find_routine): Remove "/" from "/setup.ini".
cef493d7 2048
d343da15
RC
20492001-01-07 Robert Collins <rbtcollins@hotmail.com>
2050
2051 * category.cc (Categorycmp): Add a const safe version.
2052 * category.h (Categorycmp): Add a const safe version.
2053 (Category): Add operator ==.
2054 * choose.cc (fill_missing_category): Add every package to "All".
2055 (pick_category_line::paint): Add support for hidden labels, and a tree depth.
2056 (pick_category_line::click): Ditto.
2057 (view::view): Pass in a top level category to use.
2058 (view::insert_pkg): Special case - skip category "All".
2059 (view::insert_category): Ditto.
2060 (view::clear_view): Set the contents label state.
2061 (create_listview): Pass in a top level category to view().
2062 * choose.h (topbucket): Make bucket available to derived classes.
2063 (pick_category_line): Add support for hidden labels, and a tree depth.
2064 Remove our second copy of bucket.
2065 (view): Pass in a top level category to the constructor.
2066 Use pick_category_line to allow three level display.
2067
bcf20115
RC
20682001-01-06 Robert Collins <rbtcollins@hotmail.com>
2069
2070 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
2071 * iniparse.y (add_correct_version): Copy descriptions across.
cef493d7 2072 * package_meta.cc (SDesc): Iterate through versions, return the first with a
bcf20115
RC
2073 description.
2074 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
2075
bc78a6d5
RC
20762001-01-04 Robert Collins <rbtcollins@hotmail.com>
2077
2078 * script.cc (run_script): Change cygpath:// to cygfile://.
2079 * install.cc (do_install_thread): Fix off-by-one errors.
2080
4f4e55c2
RC
20812001-01-04 Robert Collins <rbtcollins@hotmail.com>
2082
2083 * package_db.cc (packagedb::flush): Fix an off-by-one error.
2084
8e9aa511
RC
20852002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
2086
2087 * Makefile.in (realclean): more clean.
2088 (OBJS): Add script.o.
2089 * postinstall.cc (run_script_in_etc_postinstall): New function.
2090 (do_postinstall): Split off new funtion init_run_script ().
2091 (init_run_script):
2092 (run):
2093 (run_script): Move to script.cc. Replace some deprecated remove
2094 and move calls.
2095 * script.h:
2096 * script.cc: New file.
2097 * Forward port cygwin-20010707.jcn3.patch.
2098 * package_meta.cc (uninstall): Run pre- and postremove scripts.
2099 * install.cc: Typo fix.
2100 (do_install): Run script initialisation.
cef493d7 2101
b7301c43
RC
21022001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2103
2104 * cistring.cc: Run d2u.
2105 * cistring.h: Run d2u.
2106
2107 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
2108 from the generated /etc/profile. Bash will source this file
2109 automatically, and having this here merely results in .bashrc being
2110 executed twice. Run d2u.
2111 * desktop.h: Run d2u.
2112
2113 * propsheet.cc: Run d2u.
2114 (PropSheetProc): New function. Add minimize box here instead of in
2115 PropertyPage::DialogProc.
2116 (PropSheet::Create): Change to use creation callback PropSheetProc.
2117 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
2118
2119 * propsheet.h: Run indent, d2u.
2120 * proppage.h: Run indent, d2u.
2121
2122 * proppage.cc: Run d2u.
2123 (PropertyPage::DialogProc): Remove minimize-box-adding
2124 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
2125 Add support for calling virtual OnMessageCmd. Add setting of fonts in
2126 WM_INITDIALOG handler.
2127 (resource.h): New include for resource IDs.
2128
2129 * res.rc: Resize and rearrange property page dialog templates
2130 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
2131 specification. Run d2u.
2132 (IDD_SITE): Add an edit control and an "Add" button in order to
2133 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
2134 (IDD_OTHER_URL): Remove dialog template.
2135 (IDD_DLSTATUS): Remove dialog template.
2136
2137 * site.cc: Run d2u.
2138 (SitePage::OnBack): Remove NEXT() macro invocation.
2139 (SitePage::OnActivate): New member function.
2140 (load_dialog): Remove. Functionality subsumed into
2141 SitePage::OnActivate.
2142 (save_dialog): Change to support both list and user URLs. Remove
2143 OTHER_IDX and mirror_idx logic.
2144 (SitePage::PopulateListBox): New member function.
2145 (SitePage::CheckControlsAndDisableAccordingly): New member function.
2146 (SitePage::OnMessageCmd): New override.
2147 (check_if_enable_next): Remove.
2148 (dialog_cmd): Remove.
2149 (do_download_site_info_thread): Remove calls to NEXT() macro.
2150 (SitePage::Create): Call the single-param PropertyPage::Create
2151 overload.
2152 (other_url): New static taken from other.cc.
2153 (SitePage::OnNext): Remove mirror_idx logic.
2154 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
2155 list box populating code, now handled in SitePage::PopulateListBox.
2156 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
2157 (save_site_url): Fix potential buffer overflow problem. Switched to
2158 TCHAR in grossly premature preparation for multilingual support.
2159 * site.h: Run d2u.
2160 (SitePage::OnActivate): New member function.
2161 (SitePage::CheckControlsAndDisableAccordingly) New member.
2162 (SitePage::OnMessageCmd): New override.
2163 (do_download_site_info_thread): Add MessageBox call on failure to
2164 download site list.
2165
2166 * splash.cc: Run d2u.
2167 (SplashPage::OnInit): Set the font for the title.
2168 * splash.h: Run d2u.
2169
2170 * threebar.cc: Run d2u.
2171 * threebar.h: Run d2u.
2172
2173 * window.h: Run d2u.
2174 (Window::IsButtonChecked): New member function declaration.
2175 (Window::OnMessageCmd): New member function.
2176 (Window::SetDlgItemFont): New member function declaration.
2177 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
2178 members.
2179 * window.cc: Run d2u.
2180 (Window::IsButtonChecked): New member function definition.
2181 (Window::SetDlgItemFont): New member function definition.
2182 (Window::Window): Add initialization for FontCounter.
2183 (Window::~Window): Delete any fonts we created.
2184
2185 * geturl.cc: Run d2u.
2186 (progress): Remove the "3" field width from the "%3d"
2187 percent-complete format indicator. Causes line to not start at
2188 beginning of text box, and does little to help with "jumping", since
2189 the "bytes downloaded so far" field is variable-width anyway. Change
2190 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
2191 painfully slow connections, or temporary slowdowns in faster
2192 connections should such more-instantaneous functionality become
2193 available.
2194
2195 * net.h: Run d2u.
2196 (NetPage::OnMessageCmd): New member function declaration.
2197 (NetPage::CheckIfEnableNext): New member function declaration.
2198 * net.cc: Run d2u.
2199 (NetPage::OnMessageCmd): New member function definition.
2200 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
2201 (check_if_enable_next): Remove.
2202 (NetPage::CheckIfEnableNext): New member function, subsumes
2203 check_if_enable_next.
2204 (propsheet.h): Add include.
2205 (NetPage::Init): Add call to CheckIfEnableNext.
2206 (load_dialog): Remove call to check_if_enable_next.
2207 (NetPage::Create): Call single-template-ID-parameter overload of
2208 PropertyPage::Create instead of three-parameter one.
2209
2210 * Makefile.in (OBJS): Remove other.o.
2211 * other.cc: Remove file.
2212
df62e023
RC
22132002-01-01 Robert Collins <rbtcollins@hotmail.com>
2214
2215 * README: Update TODO's.
2216 * choose.cc (set_existence): Delete non installed packages with no
2217 mirrors.
2218 (fill_missing_category): Fix an off-by-one error.
cef493d7 2219 (default_trust): Ditto. Also delete any unused categories.
df62e023
RC
2220 (view::init_headers): Fix an off-by-one error.
2221 (set_view_mode): Ditto.
2222 (set_view_mode): Ditto.
2223 (create_listview): Ditto.
2224 (dialog_cmd): Ditto.
2225 (do_choose): Ditto.
2226 * io_stream.cc: Indent.
2227 * io_stream.h: Ditto.
2228 * package_db.cc: Ditto.
2229 * package_meta.h: Const correctness for SDesc ();
2230 * proppage.cc: Run d2u and indent.
2231 * propsheet.cc: Run d2u and indent.
2232 * window.cc: Run d2u and indent.
2233 * window.h: Run d2u and indent.
2234
cec57ee1
CF
22352001-12-28 Christopher Faylor <cgf@redhat.com>
2236
e98c531e 2237 * Makefile.in (iniparse.o): Accommodate newer bisons.
cec57ee1 2238
ab57ceaa
RC
22392001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2240
2241 * window.h (Window): New file, new class.
2242 * window.cc (Window): New file, new class.
2243
2244 * threebar.h (ThreeBarProgressPage): New file, new class.
2245 * threebar.cc (ThreeBarProgressPage): New file, new class.
2246
2247 * splash.h (SplashPage): New file, new class.
2248 * splash.cc (SplashPage): Replace file with implementation of new
2249 class.
2250
2251 * source.h (SourcePage): New file, new class.
2252 * source.cc: Run indent.
2253 (SourcePage): Add class implementation to this file.
2254 (do_source): Remove, functionality subsumed by SourcePage::Create()
2255 and SourcePage::OnDeactivate().
cef493d7 2256 (dialog_proc): Remove, functionality subsumed by
ab57ceaa
RC
2257 SourcePage::OnActivate().
2258
2259 * site.h: Run indent.
2260 (SitePage): Add class declaration.
2261 * site.cc: Run indent.
2262 (SitePage): Add class implementation.
2263 (do_download_site_info_thread): New function.
2264 (context): New var. Context info for do_download_site_info_thread().
2265 (do_download_site_info): New function.
2266 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
2267 (SitePage::OnBack): SitePage class implementation..
2268 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
2269 by SitePage members.
2270 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
2271 functionality.
2272 (do_site): Remove, now handled by do_download_site_info_thread() and
2273 SitePage::OnNext functionality.
2274 (get_site_list): Remove dismiss_url_status_dialog() call.
2275
2276 * root.h (RootPage): New file, new class.
2277 * root.cc: Run indent.
2278 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
2279 (dialog_proc): Remove.
2280 (do_root): Remove
2281 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
2282 (RootPage::OnInit): New member function. Move get_root_dir() logic to
2283 here from do_root().
2284 (RootPage::Create): New member function.
cef493d7 2285 (RootPage::OnNext): New member function. Move IDOK logic from
ab57ceaa
RC
2286 dialog_cmd() to here.
2287 (RootPage::OnBack): New member function.
2288
2289 * propsheet.h (PropSheet): New file, new class.
2290 * propsheet.cc (PropSheet): New file, new class.
2291
2292 * proppage.h (PropertyPage): New file, new class.
2293 * proppage.cc (PropertyPage): New file, new class.
2294
2295 * postinstall.cc (do_postinstall): Add owner parameter.
2296
2297 * other.cc (do_other): Add owner parameter.
2298
2299 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
cef493d7 2300 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
ab57ceaa 2301 get_ftp_auth().
cef493d7 2302 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
ab57ceaa
RC
2303 get_proxy_auth(),
2304 and get_ftp_auth().
cef493d7 2305 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
ab57ceaa
RC
2306 get_auth(), get_proxy_auth().
2307
2308 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
cef493d7 2309 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
ab57ceaa
RC
2310 NetIO::get_ftp_auth)
2311 (auth_common): Add owner param. Pass owner param to DialogBox.
cef493d7 2312 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
ab57ceaa
RC
2313 owner param to auth_common().
2314
2315 * net.h (NetPage): New file, new class.
2316 * net.cc: Run indent.
2317 (net.h, threebar.h): Add includes.
2318 (Progress): Add extern.
2319 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
2320 property sheet logic. Saved temporarily for reference.
cef493d7 2321 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
ab57ceaa
RC
2322 NetPage::OnNext, NetPage::OnBack):
2323 New implementation of NetPage class members.
2324 (do_net): Remove.
2325 (dialog_proc): Remove.
2326
2327 * msg.h (fatal, note, yesno): Add owner param.
2328 * msg.c (fatal, note, yesno, mbox): Add owner param.
2329 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
2330 now that we have a parent.
2331
2332 * main.cc: Run indent.
cef493d7 2333 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
ab57ceaa
RC
2334 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
2335 headers.
2336 (root_dialog_proc): extern into this file.
2337 (Progress): Progress dialog defined here, used in several other files.
2338 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
2339 Site, Chooser, Desktop pages and MainWindow sheet. Call
2340 InitCommonControls() to make sure Windows is set up for our use of
2341 property sheets. Add pages to sheet.
2342 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
2343 now handled by the PropSheet class.
2344 (root.h): Add include.
2345
2346 * log.cc (log_save): Pass NULL parent to fatal().
2347 (exit_setup): Pass NULL parent to note().
2348
2349 * localdir.h (LocalDirPage): New file, new class.
2350 * localdir.cc: Run indent.
2351 (localdir.h): New include.
2352 (threebar.h): New include.
2353 (Progress): extern into this file.
2354 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
cef493d7 2355 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
ab57ceaa
RC
2356 LocalDirPage.
2357 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
2358 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
2359 (do_local_dir): Remove.
2360 (dialog_proc): Remove.
2361 (cwd): Remove, not used by anything.
2362
2363 * install.cc: Run indent.
2364 (process.h, threebar.h): New includes.
2365 (Progress): extern into this file.
2366 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
2367 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
2368 ThreeBarProgressPage.
cef493d7 2369 (dialog_cmd, dialog_proc, dialog): Removed, handled in
ab57ceaa 2370 ThreeBarProgressPage.
cef493d7
CF
2371 (init_dialog): Remove all mention of the above ins_* handles. Now
2372 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
ab57ceaa
RC
2373 ThreeBarProgressPage instance Progress directly.
2374 (progress): Alter bar update logic to call ThreeBarProgressPage
2375 instance Progress directly.
2376 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
2377 instance Progress directly.
cef493d7 2378 (install_one_source): Alter SetWindowText()s to call
ab57ceaa
RC
2379 ThreeBarProgressPage
2380 instance Progress directly. Pass NULL parent to note().
cef493d7 2381 (do_install_thread): Rename from do_install(), added owner param.
ab57ceaa
RC
2382 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
2383 directly.
2384 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
cef493d7 2385 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
ab57ceaa
RC
2386 fatal().
2387 (do_install_reflector): New function.
2388 (do_install): New function.
2389
2390 * ini.cc (process.h, threebar.h): New includes.
2391 (Progress): externed into this file.
2392 (find_routine): Pass NULL parent to note().
2393 (do_local_ini): Add owner param.
cef493d7 2394 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
ab57ceaa
RC
2395 and note(). Remove call to dismiss_url_status_dialog().
2396 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
cef493d7 2397 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
ab57ceaa
RC
2398 to IDD_CHOOSER on exit.
2399 (do_ini_thread_reflector): New function.
2400 (context): New var. Context for do_ini_thread.
2401 (do_ini): New function.
2402
2403 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
2404 owner param.
cef493d7 2405 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
ab57ceaa 2406 gw_iprogress)
cef493d7 2407 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
ab57ceaa
RC
2408 Removed.
2409 (threebar.h): New include.
2410 (Progress): externed into this file.
cef493d7 2411 (dialog_cmd, dialog_proc, dialog): Removed, handled by
ab57ceaa 2412 ThreeBarProgressPage now.
cef493d7 2413 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
ab57ceaa 2414 SetWindowText()s
cef493d7 2415 and bar setting SendMessage()s to call ThreeBarProgressPage instance
ab57ceaa
RC
2416 Progress directly. Remove "one bar only" logic, this is now handled
2417 explicitly in the ThreeBarProgressPage class.
cef493d7 2418 (progress): Altered bar and text update logic to call
ab57ceaa
RC
2419 ThreeBarProgressPage instance Progress directly. Changed kbps
2420 calculation to floating point and now print out a single decimal
2421 place.
2422 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
2423 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
cef493d7 2424 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
ab57ceaa
RC
2425 update logic to call ThreeBarProgressPage instance Progress directly.
2426 (dismiss_url_status_dialog): Remove.
2427
2428 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
2429 false, was true.
2430
2431 * download.cc: Run indent.
2432 (process.h, threebar.h): New includes.
2433 (Progress): externed into this file.
2434 (download_one): Add owner param. Pass it to get_url_to_file().
2435 (do_download_thread): Renamed from do_download. Add owner param. When
2436 calculating total_download_bytes, take binpicked and srcpicked into
2437 account. Remove call to dismiss_url_status_dialog(), no longer needed.
2438 Pass owner handle to download_one() and yesno().
2439 (do_download_reflector, do_download): New functions.
2440 (context): New var. Context for do_download_thread().
2441
2442 * dialog.h (D(x)): Add owner param.
2443
2444 * desktop.h (DesktopSetupPage): New file, new class.
2445 * desktop.cc: Run indent.
2446 (desktop.h): Add include.
cef493d7 2447 (dialog_proc, do_desktop): Remove, now handled in
ab57ceaa
RC
2448 DesktopSetupPage::OnInit().
2449 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
2450 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
2451 resp.
2452 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
2453 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
2454 of DesktopSetupPage.
2455
2456 * cistring.h: New file, new class.
2457 * cistring.cc: New file, new class.
2458
2459 * choose.h: Run indent.
2460 (Chooser): New class declaration.
2461 * choose.cc: Run indent.
cef493d7 2462 (do_choose): Add owner param. Pass it to DialogBox() and
ab57ceaa
RC
2463 fatal().
2464 (Chooser): New class implementation.
2465
2466 * res.rc (IDS_VERSION_INFO): New string.
2467 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
2468 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
2469 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
2470 throughout.
2471 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
2472 TAB control navigation etc. Give the controls a reasonable tab order.
2473 Grouped radio buttons. Something's still not right, can't tab away
2474 from back/next/cancel group reliably.
2475 * resource.h (IDD_CHOOSER): New dialog ID.
2476
2477 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
2478 threebar.o, and window.o.
2479
cc41a057
RC
24802001-12-21 Robert Collins <rbtcollins@hotmail.com>
2481
2482 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
2483 (pick_pkg_line::paint): Clip columns to prevent overlap.
2484
cbfc4215
RC
24852001-12-20 Robert Collins <rbtcollins@hotmail.com>
2486
2487 * Makefile.in: Add libcomctl32.a for setup.exe.
2488 * archive.h (archive): Prevent non-child direct creation of the class.
2489 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
2490 * choose.cc: Include commctrl for the choose header.
2491 (NEW_COL_SIZE_SLOP): Define without magic numbers.
2492 (pkgtrustp): Convert to function.
2493 (set_action): Remove.
cef493d7 2494 (add_required, fill_missing_category,default_trust): Use list syntax for
cbfc4215
RC
2495 package list.
2496 Use new set_action.
2497 (choose_caption): Remove.
2498 (topbucket::paint): New method.
2499 (topbucket::empty): Ditto.
2500 (topbucket::click): Ditto.
2501 (topbucket::~topbucket): Ditto.
2502 (paint): Remove i,ii and p as they are obsolete.
2503 Remove header drawing code.
2504 Use new chooser method to paint the chooser.
2505 Use new chooser itemcount method.
2506 (scroll_common): Rename to view::scroll.
2507 Scroll the header window separately.
2508 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
2509 (listview_proc): Look for header messages.
2510 (note_width): Accept stringless calls.
2511 (pick_line::set_line): Remove.
2512 (pick_line::paint): Remove.
2513 (pick_pkg_line::paint): Paint this one line, using the header column widths.
2514 (pick_category_line::paint): Paint this category, and anything in the bucket.
2515 (pick_line::click): Remove.
2516 (pick_pkg_line::click): Handle a click.
2517 (pick_category_line::click): Handle a click.
2518 (_view): Rename all to view.
2519 (view::view): Initialise the control contents.
2520 (view::set_headers): Work with the header control.
2521 (view::init_headers): Use list syntax for package list.
2522 Rearrange the width logic a little.
2523 (view::insert_pkg): Update to use the hierarchy.
2524 (view::insert_category): Ditto.
2525 (view::insert_at, view::insert_under): Remove.
2526 (view::clear_view): Update to use the hierarchy.
2527 (view::click): Update to use the hierarchy.
2528 (set_view_mode): Use list syntax for package list.
2529 Update for new chooser methods.
2530 (DoInsertItem): New helper function. (Needs a home somewhere).
2531 (create_listview): Remove choose control code and use the constructor instead.
2532 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
2533 * choose.h: Include newly required headers list and package_meta.
2534 (_voew): Rename to view.
2535 (pick_line): Convert to an ABC.
2536 (pick_pkg_line): New class.
2537 (pick_catgory_line): New class.
2538 (topbucket): New class.
2539 (view::scroll): New method created from listview_scroll function.
2540 * desktop.cc (make_passwd_group): Use list syntax for package list.
2541 * download.cc (do_download): Use list syntax for package list.
2542 * fromcwd.cc (found_file): Use list syntax for package list.
2543 * iniparse.y (pacakges): Use list syntax for package list.
2544 * install.cc (uninstall_one): Use list syntax for package list.
2545 (do_install): Use list syntax for package list.
2546 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
2547 Prevent inaccurate synthetic copy and assignment.
2548 * list.h: Include required header stdlib.
2549 Work on const correctness.
2550 * package_db.cc (packagedb::getpackagebyname): Remove.
2551 (packagedb::packagedb): Remove custom list code, and make db a local.
2552 (packagedb::getfirstpackage): Remove.
2553 (packagedb::getnextpackage): Remove.
2554 (packagedb::addpackage): Remove.
2555 (flush): Remove custom list code.
2556 (packagedb::registerpackage): Remove.
2557 (packagedb::packages): New static member.
2558 (packagedb::task): New static member.
2559 * package_db.h (PackageDBActions): New enum.
2560 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
2561 addpackage, registerpackage, packages, packagecount, curr_package, db.
2562 Add packages, task.
2563 * pacakge_meta.cc: Include package_db.h.
2564 (packagemeta::action_caption): New method.
2565 (packagemeta::set_action): New method.
2566 * package_meta.h (CategoryPackage): Initialise key.
2567 (packagemeta): Initialise key.
2568 Add set_action and action_caption methods.
2569 Prevent inaccurate synthetic copy and assignment.
2570 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
2571 * source.cc: Include package_db for db manipulation.
2572 (save_dialog): Set the db task.
2573 * win32.h: Tell the w32 include headers what IE version to expect/require.
2574
cd8e5750
RC
25752001-12-06 Robert Collins <rbtcollins@hotmail.com>
2576
2577 * README: Wishlist updates.
2578
5519d243
RC
25792001-12-04 Robert Collins <rbtcollins@hotmail.com>
2580
2581 * package_db.cc (getnextpackage): Don't overrun the array.
2582
de6a1a64
RC
25832001-12-04 Robert Collins <rbtcollins@hotmail.com>
2584
2585 * Makefile.in (OBJS): Add setup_version.o.
2586 (version.c): Rename to setup_version.
2587 * choose.cc (set_action): Prevent NULL pointer dereference.
2588 (package_sort): Remove.
2589 * fromcwd.cc (canonicalize_version): Moved to version.cc.
2590 (check_ini): New function for use with find to see if there is a cached setup.ini.
2591 (do_fromcwd): Check for a cached setup.ini from any mirror site.
2592 * ini.cc (find_routine): New function, for finding cached setup.ini's.
2593 (do_local_ini): New function, drives parsing of local ini's.
2594 (do_remote_ini): New function, drives parsing and caching of remote ini's.
2595 (do_ini): Move guts to do_remote_ini and do_local_ini.
2596 * list.h (removebyindex): New method.
2597 * other.cc (save_dialog): Use new site_list and all_site_list to add the
2598 new site to the site picklist.
2599 (dialog_cmd): Only save the dialog when exiting the dialog.
2600 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
2601 * site.cc (site_list_type): Move to site.h
2602 (site_list): New global, sites chosen by the user.
2603 (all_site_list): New global, all potential sites.
cef493d7 2604 (site_list_type::init): New method, parses a mirror.lst URL string into a
de6a1a64
RC
2605 site_list_type object.
2606 (site_list_type::site_list_type): New method.
2607 (check_if_enable_next): Examine the control, not a local variable.
2608 (load_dialog): Select all the user chosen sites by default.
cef493d7 2609 (save_dialog): Adjust for multiple selection semantics.
de6a1a64 2610 (save_site_url): Save all user chosen sites.
cef493d7 2611 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
de6a1a64
RC
2612 thats not needed.
2613 Remove obsolete other_url reference.
2614 (dialog_proc): Use all_site_list instead of site_list.
2615 (site_sort): Remove.
2616 (get_site_list): Remove malloc use - use list template instead.
2617 Move site_list_type initialisation to site_list_type::init().
2618 (get_initial_list_idx): Renamed to ...
2619 (get_saved_sites): this. Also read in multiple sites to the site_list.
2620 (do_site): Use all_site_list not site_list.
2621 Log all chosen sites.
2622 * site.h: New file, defines site related class, functions and variables.
2623 * state.h: Add comment about use of state.h
2624 (mirror_site): Remove.
2625 (other_url): Remove.
2626 (MIRROR_SITE): Remove.
2627 * version.cc: New file, for version-handling and related functions.
2628
341988b9
RC
26292001-12-02 Robert Collins <rbtcollins@hotmail.com>
2630
2631 * Makefile.in: Add filemanip.o to setup.
2632 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
2633 * archive_tar.h (archive_tar_file): Implement get_size virtual.
2634 (archive_tar): Ditto.
2635 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
2636 (paint): Ditto.
2637 (_view::init_headers): Ditto.
2638 (_view::insert_pkg): Ditto.
2639 (set_view_mode): Ditto.
2640 (scan2): Ditto.
2641 (do_choose): Ditto.
2642 (base): Moved to filemanip.cc.
2643 (find_tar_ext): Ditto.
2644 (parse_filename): Ditto.
2645 (_Info::_Info): Remove.
2646 * compress_bz.h (compress_bz): Implement get_size virtual.
2647 * compress_gz.h (compress_gz): Implement get_size virtual.
2648 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
2649 * download.cc (get_file_size): Move to filemanip.cc.
2650 (check_for_cached): Use [] operator instead of getnth - its more readable.
2651 (download_one): Ditto.
2652 * filemanip.cc: New file.
2653 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
2654 (get_url_to_membuf): New function - contains get_url_to_string worker code.
2655 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
2656 * geturl.h: Declare new prototype.
2657 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
2658 Tidy up the error code a little.
2659 * ini.h: Remove __cplusplus protection for ini_init.
2660 (_Info): Remove.
2661 * inilex.l: Remove old globals.
2662 (ini_init): Use an io_stream for getting the characters.
2663 (ini_getchar): Ditto.
2664 * iniparse.y: Declare yylex as a C++ function.
2665 (add_correct_version): Use [] operator instead of getnth - its more readable.
2666 * io_stream.cc (io_stream::move_copy): Use the copy method.
2667 (io_stream::copy): New method to simply copy from one stream to another.
2668 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
2669 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
2670 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
2671 * io_stream_file.cc (io_stream_file::get_size): Implement this.
2672 * io_stream_file.h (io_stream_file::get_size): Declare this.
2673 * io_stream_memory.h: Include errno as it's neded to parse the header.
2674 (io_stream_memory::get_size): Implement this.
2675 (io_stream_memory::st_size): Delete this.
2676 * list.h: Change getnth into the [] operator.
2677 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
2678 (NetIO::set_url): Ditto.
2679 (NetIO::open): Ditto.
2680 * netio.h: As for netio.cc.
2681 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
2682 being modified.
2683 * nio-file.h: Ditto.
2684 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
2685 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
2686 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
2687 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
2688 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
2689 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
2690 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
2691 * package_source.cc (packagesource::set_canonical): Ditto.
2692 (packagesource::set_cached): Ditto.
2693 * package_source.h (site::~site): Ditto.
cef493d7 2694 * site.cc: Change site_list_type to a class, and search and replace sort_key to
341988b9
RC
2695 key globally.
2696
071c1c54
RC
26972001-12-01 Robert Collins <rbtcollins@hotmail.com>
2698
2699 * package_source.cc (packagesource::set_canonical): Filename was out by one.
2700
4fe323f9
RC
27012001-11-30 Robert Collins <rbtcollins@hotmail.com>
2702
2703 * Makefile.in (OBJS): Remove category_list - it's not needed.
2704 * README: More wishlist updates.
2705 * category.cc (Category::Category): Initialise new members.
2706 (Categorycmp): New function.
2707 * category.h (Category): New member key for template use.
2708 * category_list.cc: Remove.
2709 * category_list.h: Remove.
2710 (Categorycmp): New function prototype.
2711 * choose.cc: Remove category_list - not needed.
cef493d7 2712 (set_action): Only show the 'source' option when the source is actually
4fe323f9
RC
2713 available.
2714 (add_required): Fix recursion limiter to 5.
2715 (fill_missing_category): Use list access.
2716 (default_trust): Ditto.
2717 (pick_line::paint): Ditto.
2718 (_view::init_headers): Ditto.
2719 (_view::insert_pkg): Ditto.
2720 (_view::insert_category): Ditto.
2721 (_view::click): Ditto.
2722 (set_view_mode): Ditto.
2723 (do_choose): Ditto.
2724 * cygpackage.h: Remove category_list - not needed.
2725 * geturl.cc (get_url_to_string): Fix null byte insertion.
2726 * inipatse.y: Remove category_list - not needed.
2727 (categories): Use list access.
2728 * package_db.cc: Ditto.
2729 * package_db.h: Remove category_list - not needed.
2730 (packagedb): Use the list template for categories.
2731 * package_meta.cc (add_category): Ditto.
2732 * package_meta.h (CategoryPackage): Link to the category as well.
cef493d7 2733 (packagemeta): Use a list of CategoryPackages instead of Categories
4fe323f9
RC
2734 for more memory efficient cross-referencing.
2735
7d66d192
RC
27362001-11-30 Robert Collins <rbtcollins@hotmail.com>
2737
2738 * package_db.cc (packagedb::flush): Write a canonical version for all packages
2739 irrespective of the media they were installed from.
2740
bb849dbd
RC
27412001-11-29 Robert Collins <rbtcollins@hotmail.com>
2742
2743 * Makefile.in (OBJS): Add package_source and rfc1738.
2744 * README: Wishlist update.
2745 * category_list.cc (register_category): Use references.
2746 * category_list.h (CategoryList): Ditto.
2747 * choose.cc (isinstalled): Remove.
2748 (pkgtrustp): New macro.
2749 (set_action): Use packagemeta.
2750 (add_required): Ditto.
2751 (choose_caption): Example package to choose caption, rather than state flags.
2752 (check_existence): Remove.
2753 (set_existence): Remove old code.
2754 (fill_missing_category): Use packagemeta.
2755 (keep_or_skip): Remove.
2756 (default_trust): Use packagemeta and set trust values directly.
2757 (pick_line::set_line): Use packagemeta.
2758 (_view::insert_pkg): Ditto.
2759 (_view::insert_category): Ditto.
2760 (_view::click): Ditto.
2761 (set_view_mode): Ditto. Also remove "exclude" code.
2762 (create_listview): Use packagemeta.
2763 (dialog_cmd): Ditto.
2764 (getpkgbyname): Remove
2765 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
2766 (read_installed_db): Remove.
2767 (package_sort): Use packagemeta.
2768 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
2769 * choose.h: Use packagemeta.
2770 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
2771 (cygpackage::cygpackage): Ditto.
2772 (cygpackage::set_canonical_version): Copy the passed string.
2773 (cygpackage::~cygpackage): Move cleanup code to destroy().
2774 (cygpackage::destroy): New function.
2775 (cygpackage::getfirstfile): Use a separate buffer.
2776 (cygpackage::getnextfile): Ditto.
2777 (cygpackage::Canonical_version): New function.
2778 (cygpackage::set_sdesc): Ditto.
2779 (cygpackage::set_ldesc): Ditto.
2780 * cygpackage.h (cygpackage::Canonical_version): New method.
2781 (cygpackage::set_sdesc): New method.
2782 (cygpackage::set_ldesc): New method.
2783 (cygpackage::SDesc): New method.
2784 (cygpackage::LDesc): New method.
2785 (cygpackage::set_canonical_version): New method.
2786 * desktop.cc: Include packagedb headers.
2787 (make_password_group): Use packagemeta.
2788 * download.cc: Include packagedb headers.
2789 (check_for_cached): New method to find any cached file and fill out the database
2790 info.
2791 (download_one): Take a packagesource, support multiple mirrors.
2792 (do_download): Use packagemeta.
2793 * from cwd.cc: Include packagedb headers.
2794 (found_file): Use packagemeta.
2795 * ini.cc (do_ini): Beginning of multiple-mirror support.
2796 * ini.h (CategoryPackage): Remove.
2797 (Dependency): Remove.
2798 (Package): Remove.
2799 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
2800 * inilex.l: Support multiple mirrors.
2801 * iniparse.y: Include packagedb headers.
2802 (parser): Use packagemeta.
2803 (new_package): Remove.
2804 (add_correct_version): New function.
2805 (new_requirement): Remove.
2806 (add_category): Remove.
2807 * install.cc (uninstall_one): Use packagemeta.
2808 (install_one_source): New function.
2809 (install_one): Use packagemeta.
2810 (do_install): Use packagemeta.
2811 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
2812 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
2813 after setting the mtime, it makes no sense, and results in 0 length files.
2814 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
2815 * list.h: New file, template class for a form of list.
2816 * package_db.cc (packagedb::registerpackage): New function.
2817 * package_db.h (packagedb::npackages ()): New method.
2818 * package_meta.cc (packagemeta::add_version): Use list template.
2819 (packagemeta::set_installed): Ditto.
2820 (packagemeta::add_category): New method.
2821 * package_meta.h: Include necessary headers to parse the class.
2822 (CategoryPackage): New class.
2823 (packagemeta): Initialise all members.
2824 (packagemeta::SDesc): New method.
2825 (packagemeta::Categories): New method.
2826 (packagemeta::add_category): Ditto.
2827 (packagemeta::versions): Change to be a list instance.
2828 * package_source.cc (packagesource::set_canonical): New method.
2829 (packagesource::set_cached): New method.
2830 * package_source.h: Include necessary headers to parse the class.
2831 (site): New class.
2832 (packagesource::packagesource): Initialize all members.
2833 (packagesource): Make this class non-abstract.
2834 * package_version.cc (packageversion::packageversion): New method.
2835 * package_version.h (Dependency): New class.
2836 (packageversion::Canonical_vesion): New method.
2837 (packageversion::SDesc): New method.
2838 (packageversion::LDesc): New method.
2839 (packageversion::new_requirement): Ditto.
2840 (packageversion::srcpicked, binpicked): What to install.
2841 (packageversion::src, bin): Installation source data.
2842 * rfc1738.cc: New file. Escapes special characters in URL's.
2843 * rfc1738.h: Ditto.
2844
90d14922
RC
28452001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2846
2847 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
2848 SimpleSocket::gets() returns a zero-length string, so that we
2849 don't end up eating the entire stream thinking it's all header info.
2850
7c7034e8
RC
28512001-11-23 Robert Collins <rbtcollins@hotmail.com>
2852
2853 * install.cc (badrename): Remove.
2854 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
2855 * io_stream.cc (io_stream::move_copy): New method.
2856 (io_stream::move): New method.
2857 * io_stream.h (io_stream): New methods move and move_copy.
2858 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
2859 * io_stream_cygfile.h (io_stream_cygfile): New method move.
2860 * io_stream_file.cc (io_stream_file::move): New method.
2861 * io_stream_file.h (io_stream_file): New method move.
2862 * package_db.cc (packagedb::flush): New method.
2863 * package_db.h (packagedb): New method flush.
2864
fa0c0d10
RC
28652001-11-23 Robert Collins <rbtcollins@hotmail.com>
2866
2867 * Makefile.in (OBJS): Add package_version.
2868 * ategory.cc (Category::Category): Update constructors.
2869 * category_list.cc (CategoryList::register_category): Insert correctly.
2870 * choose.cc: Include package_version.h, not package.h.
2871 * cygpackage.cc: Ditto.
2872 (cygpackage::uninstall): New method.
2873 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
2874 New method uninstall.
2875 * hash.cc (add, has, enumerate): Change prototype to be accurate.
2876 * hash.h (hash): Change prototypes to be accurate.
2877 * ini.h (_Info): New parameterless constructor.
2878 (CategoryPackage): New constructor.
2879 (Package): Ditto.
2880 * install.cc: Don't include unneeded headers.
2881 Include package database headers.
2882 (hash::add_subdirs): Remove.
2883 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
2884 Don't uninstall source packages.
2885 (do_install): Just can uninstall_one once as we ignore source packages now.
cef493d7 2886 Don't copy the installed.old database accross, instead iterate through the
fa0c0d10
RC
2887 packagedb packages list and write the isntalled packages out.
2888 * package_db.cc: Include package_version.h, not package.h.
2889 (packagedb::packagedb): Never let db be undefined.
2890 Record the installation filename, so we can reconstruct installed.db.
2891 (packagedb::addpackage): Insert packages in alpha sorted order.
2892 (packagedb::categories): Initialise correctly.
2893 * package_meta.cc: Include win32 and mount headers as a workaround to
2894 current io_stream limitations. Include a TODO about that.
2895 (standard_dirs): New, from install.cc.
2896 (hash::add_subdirs): New, from install.cc.
2897 (packagemeta::set_installed): Rename genericpackage to packageversion.
2898 (packagemeta::uninstall): New method.
2899 * package_meta.h: Rename genericpackage to packageversion.
2900 (packagemeta): Update constructor.
2901 (add_version, set_installed): Rename genericpackage to packageversion.
2902 (uninstall): New method.
2903 (installed_from): New member.
2904 * package_source.cc: New file.
2905 * package_source.h: New file.
2906 * package_version.cc: New file.
2907 * package_version.h: New file.
2908 * package.cc: Removed.
2909 * package.h: Removed.
cef493d7 2910
7b606ae5
RC
29112001-11-21 Robert Collins <rbtcollins@hotmail.com>
2912
2913 * Makefile.in (OBJS): Add category.o and category_list.o.
2914 * category.h: New file.
2915 * category.cc: New file.
2916 * category_list.h: New file.
2917 * category_list.cc: New file.
2918 * choose.cc: Include category headers.
2919 (fill_missing_category): Use package_db to access global categories.
2920 (_view::insert_pkg): Ditto.
2921 (_view::insert_category): Ditto.
2922 (set_view_mode): Ditto.
2923 (getcategorybyname): Remove.
2924 * cygpackage.h: Include category_list.h to parse this correctly.
2925 (cygpackage): New virtual &Categories.
2926 * ini.h (_CategoryPackage): More C to C++ conversion.
2927 (Category): Remove.
2928 (getcategorybyname): Remove.
2929 (register_category): Remove.
2930 * iniparse.y: Include package db and category headers.
2931 (categories): Use package_db to access global categories.
2932 (category): Remove.
2933 (ncategories): Remove.
2934 (register_category): Remove.
2935 * package.h: New virtual &Categories.
2936 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
2937 (packagedb::categories): Declare.
2938 * package_db.h (packagedb): New member categories for global categories list.
2939
d0fa1c4e
RC
29402001-11-21 Robert Collins <rbtcollins@hotmail.com>
2941
2942 * choose.h: Don't include ini.h
2943 * ini.h: Allow pure c++ in the header file.
2944
24cbae7f
RC
29452001-11-21 Robert Collins <rbtcollins@hotmail.com>
2946
2947 * install.cc (do_install): Write a version 2 installed.db file.
2948 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
2949
7939f6d1
RC
29502001-11-21 Robert Collins <rbtcollins@hotmail.com>
2951
2952 * Makefile.in (OBJS): Add package abstraction objects.
2953 * choose.cc: Include package abstraction headers.
2954 (read_installed_db): Use packagedb class and ignore installed sources.
2955 * cygpackage.cc: New file.
2956 * cygpackage.h: New file.
2957 * filemanip.h (get_file_size): Use unixy types.
2958 * package.h: New file.
2959 * package.cc: New file.
2960 * package_db.cc: New file.
2961 * package_db.h: New file.
2962 * package_meta.cc: New file.
2963 * package_meta.h: New file.
2964
33bc0053
RC
29652001-11-21 Robert Collins <rbtcollins@hotmail.com>
2966
2967 * REAME: Updates to wishlist.
2968
12ccadc0
RC
29692001-11-16 Robert Collins <rbtcollins@hotmail.com>
2970
2971 * README: Updated and added my list of wishlist and todo items.
2972
ca9506cc
RC
29732001-11-14 Robert Collins <rbtcollins@hotmail.com>
2974
2975 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
2976 * archive_tar.cc (archive_tar::write): New prototype.
2977 (archive_tar::seek): New method.
2978 * archive.h (archive_tar_file): Update write() and add seek().
2979 (archive_tar): Ditto.
2980 * archive_tar_file.cc (archive_tar_file::write): New prototype.
2981 (archive_tar_file::seek): New method.
2982 * compress_bz.cc (compress_bz::write): New prototype.
2983 (compress_bz::seek): New function.
2984 * compress_bz.h (compress_bz): Update write() and add seek().
2985 * compress_gz.cc (compress_gz::write): New prototype.
2986 (compress_gz::seek): New function.
2987 * compress_gz.h (compress_gz): Update write() and add seek().
2988 * geturl.cc: Include io_stream headers.
2989 (GUBuf): Remove.
2990 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
2991 * io_stream.h (io_stream_seek_t): New enum.
2992 (io_stream): Update write() and add seek().
2993 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
2994 (io_stream_cygfile::seek): New function.
2995 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
2996 * io_stream_file.cc (io_stream_file::write): New prototype.
2997 (io_stream_file::seek): New function.
2998 * io_stream_file.h (io_stream_file): Update write() and add seek().
2999
2db33f10
RC
30002001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
3001
3002 * localdir.cc: Add headers unistd.h and port.h.
cef493d7 3003 (save_local_dir): Expand search logic to include local directory for
2db33f10
RC
3004 location of file last-cache.
3005 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
cef493d7 3006 (do_local_dir): Expand search logic to include local directory for file
2db33f10
RC
3007 last-cache.
3008 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
cef493d7 3009 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
2db33f10 3010 Internet.
cef493d7 3011 (do_source): Default to Install from Internet on first entry or
2db33f10
RC
3012 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
3013
03a6c5b1
RC
30142001-11-13 Robert Collins <rbtcollins@hotmail.com>
3015
3016 * choose.cc (find_tar_ext): Only match at the end of the string.
3017 (getpkgbyname): Prevent NULL pointer dereference.
3018
b24c88b3
RC
30192001-11-13 Robert Collins <rbtcollins@hotmail.com>
3020
3021 * Makefile.in (CFLAGS): Add warnings and -Werr.
3022 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
3023 (OBJS): Add io_stream class' objects.
3024 (autoload.o): Use WARNONLY_FLAGS.
3025 (inilex.o): Ditto.
3026 (iniparse.o): Ditto.
3027 * archive.cc: New file.
3028 * archive.h: New file.
3029 * archive_tar.cc: New file.
3030 * archive_tar.h: New file.
3031 * archive_tar_file.cc: New file.
3032 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
3033 * choose.cc: Use io_stream.h, not mount.h.
3034 Run indent.
3035 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
3036 (read_installed_db): Use io_streams.
3037 * choose.h: Run indent.
3038 * compress.cc: New file.
3039 * compress.h: New file.
3040 * compress_bz.cc: New file.
3041 * compress_bz.h: New file.
3042 * compress_gz.cc: New file.
3043 * compress_gz.h: New file.
3044 * concat.cc: Run indent.
3045 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3046 * concat.h: Run indent.
3047 * desktop.cc: Run indent.
3048 Include mklink2.h rather than redefining by hand.
3049 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3050 (etc_profile): Fix compiler warning (deprecated conversion).
3051 (make_link): Fix compiler warning (deprecated conversion).
3052 Tidy up use of args variable - consolidate into argbuf.
3053 (start_menu): Fix compiler warning (deprecated conversion).
3054 (desktop_icon): Fix compiler warning (deprecated conversion).
3055 (make_etc_profile): Fix compiler warning (deprecated conversion).
3056 (uexists): Fix compiler warning (deprecated conversion).
3057 (check_desktop): Fix compiler warning (deprecated conversion).
3058 (check_startmenu): Fix compiler warning (deprecated conversion).
3059 * dialog.cc: Run indent.
3060 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3061 (fatal): Fix compiler warning (deprecated conversion).
3062 * dialog.h: Run indent.
3063 * diskfull.cc: Run indent.
3064 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3065 * download.cc: Run indent.
3066 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3067 (download_one): Fix compiler warning (signed vs unsigned comparison).
3068 * filemanip.h: Run indent.
3069 * find.cc: Run indent.
3070 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3071 (find): Fix compiler warning (deprecated conversion).
3072 * find.h: Run indent.
3073 * fromcwd.cc: Run indent.
3074 * geturl.cc: Run indent.
3075 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3076 (dialog_cmd): Return a value.
3077 (dialog_proc): Remove unused variables.
3078 Return a value.
3079 (get_url_to_file): Fix compiler warning (deprecated conversion).
3080 * geturl.h: Run indent.
3081 * hash.cc: Run indent.
3082 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3083 * hash.h: Run indent.
3084 * ini.cc: Run indent.
3085 Use io_streams.
3086 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3087 (do_ini): Use io_streams for local io.
3088 * ini.h: Run indent.
3089 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
3090 Fix compiler warning (brackets for truth assignment).
3091 * install.cc: Run indent.
3092 Fix compiler warning (/* in comment).
3093 Use io_streams.
3094 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3095 (dialog_cmd): Return a value.
3096 (dialog_proc): Return a value.
3097 (start_tics): Deleted - was unused.
3098 (badrename): Fix compiler warnings (unused, deprecated conversion).
3099 (standard_dirs): Fix compiler warning (deprecated conversion).
3100 (exists): Remove.
3101 (uninstall_one): Convert to io_streams.
3102 (install_one): Convert to io_streams.
3103 (do_install): Convert to io_streans.
3104 Fix compiler warning (deprecated conversion).
3105 * io_stream.cc: New file.
3106 * io_stream.h: New file.
3107 * io_stream_cygfile.cc: New file.
3108 * io_stream_cygfile.h: New file.
3109 * io_stream_file.cc: New file.
3110 * io_stream_file.h: New file.
3111 * localdir.cc: Run indent.
3112 Use io_streams.
3113 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3114 (get_root_dir_now): Remove.
3115 (save_local_dir): Convert to io_streams.
3116 (dialog_cmd): Return a value.
3117 (do_local_dir): Convert to io_streams.
3118 (log.cc): Run indent.
3119 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3120 (log): Fix compiler warning (deprecated conversion).
3121 (log_save): Fix compiler warning (deprecated conversion).
3122 * log.h: Run indent.
3123 (log): Fix compiler warning (deprecated conversion).
3124 (log_save): Fix compiler warning (deprecated conversion).
3125 * main.cc: Run indent.
3126 Don't include "netio.h".
3127 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3128 (netio_test): Remove.
3129 (sid_auth): Fix compiler warning (partially bracketed initialiser).
3130 (WinMain): Return a value.
3131 * mkdir.cc: Run indent.
3132 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3133 * mklink2.c: Run indent.
3134 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3135 (mkcygsymlink): New function.
3136 * mklink2.h: New file.
3137 * mount.cc: Run indent.
3138 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3139 (create_mount): Remove unused variables.
3140 (cygpath): Fix compiler warning (signed vs unsigned comparison).
3141 * mount.h: Run indent.
3142 * msg.cc: Run indent.
3143 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3144 (msg): Fix compiler warning (deprecated conversion).
3145 (mbox): Fix compiler warning (deprecated conversion).
3146 * msg.h: Run indent.
3147 (msg): Fix compiler warning (deprecated conversion).
3148 * net.cc: Run indent.
3149 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3150 (dialog_cmd): Return a value.
3151 * netio.cc: Run indent.
3152 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3153 (auth_cmd): Return a value.
3154 * netio.h: Run indent.
3155 * nio-file.cc: Run indent.
3156 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3157 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
3158 * nio-file.h: Run indent.
3159 * nio-ftp.cc: Run indent.
3160 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3161 * nio-ftp.h: Run indent.
3162 * nio-http.cc: Run indent.
3163 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3164 * nio-http.h: Run indent.
3165 * nio-ie5.cc: Run indent.
3166 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3167 * nio-ie5.h: Run indent.
3168 * other.cc: Run indent.
3169 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3170 (dialog_cmd): Return a value.
3171 * port.h: Run indent.
3172 * postinstall.cc: Run indent.
3173 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3174 (cmd): Fix compiler warning (deprecated conversion).
3175 (eun): Fix compiler warning (deprecated conversion).
3176 * root.cc: Run indent.
3177 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3178 * simpsock.cc: Run indent.
3179 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3180 * simpsock.h: Run indent.
3181 * site.cc: Run indent.
3182 Use io_streams.
3183 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3184 (get_root_dir_now): Remove.
3185 (save_site_url): Convert to io_streams.
3186 (dialog_cmd): Return 0.
3187 (get_initial_list_idx): Convert to io_streans.
3188 * source.cc: Run indent.
3189 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3190 (check_if_enable_next): Remove.
3191 (load_dialog): Remove unused variables.
3192 (save_dialog): Ditto.
3193 (dialog_cmd): Return a value.
3194 * splash.cc: Return a value.
3195 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3196 (dialog_cmd): Return a value.
3197 * state.cc: Run indent.
3198 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3199 * state.h: Run indent.
3200 * tar.h: Remove.
3201 * tar.cc: Remove.
3202
398dd7b2
CF
32032001-11-12 Christopher Faylor <cgf@redhat.com>
3204
3205 * desktop.cc (start_menu): Change start menu name to "Cygwin".
3206 (check_startmenu): Ditto.
3207
c29ee141
CF
32082001-11-11 Christopher Faylor <cgf@redhat.com>
3209
3210 * choose.cc (parse_filename): Finish reorganization by correctly
3211 decrementing p in memmove.
3212
3a8276de
CF
32132001-11-11 Christopher Faylor <cgf@redhat.com>
3214
3215 * choose.cc (parse_filename): Reorganize code to work around gcc
3216 optimization problem.
3217
6eea52fb
RC
32182001-11-09 Gareth Pearce <tilps@hotmail.com>
3219
3220 * choose.cc (set_action): Allow skip as an option for installed
3221 packages that have version number not listed in setup.ini.
3222
cf99b153
RC
32232001-11-10 Robert Collins <rbtcollins@hotmail.com>
3224
3225 * choose.cc (set_cation): Backout last change.
3226 (choose_caption): Ditto.
3227
55e204f6
RC
32282001-11-10 Robert Collins <rbtcollins@hotmail.com>
3229
3230 * ini.h (actions): Remove - transferred to choose.h.
3231 (views): Ditto.
3232 * choose.h: Protect class's from "C" compilers.
3233 (actions): New enum, from ini.h. This may not be the 'right' place
3234 but that place doesn't exist yet.
3235 (_views): New enum, from ini.h.
cef493d7 3236 * choose.cc (set_action): Handle installed packages with a version not in
55e204f6
RC
3237 setup.ini.
3238 (choose_caption): Ditto.
3239 * iniparse.y: Rearrange header order to handle new ini.h.
3240
32412001-11-10 Robert Collins <rbtcollins@hotmail.com>
3242
3243 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
3244 (registry_category): Fix compiler warning (deprecated conversion).
3245 * iniparse.y (registry_category): Ditto.
3246 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
3247 (add_requried): Remove unused variable.
3248 (choose_caption): Handle all enumeration values via a default.
3249 (paint): Fix compiler warnings (unused, deprecated conversion).
3250 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
3251 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
3252 (note_width): Fix compiler warnings (deprecated conversion).
3253 (keep_or_skip): Fix compiler warnings (unused).
3254 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
3255 (set_view_mode): Fix compiler warnings (unused).
3256 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
3257 end of function).
3258 (dialog_proc): Fix compiler warnings (unused).
3259 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
3260 * choose.h (_header): Fix compiler warnings (deprecated conversion).
3261 (_view): Ditto.
3262
67a55ad9 32632001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
cef493d7 3264
67a55ad9
RC
3265 * simpsock.h (SimpleSocket::invalidate): Declare new method.
3266 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
3267 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
3268 memory for buf in the constructor.
3269 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
3270 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
3271 (SimpleSocket::write): Check object consistency - return -1 on error.
3272 invalidate() the object on socket write error.
3273 (SimpleSocket::fill): Check object consistency - return -1 on error.
3274 invalidate() the object if socket read error is encountered and there
3275 is no more data available in the internal read buffer.
3276 Allocate memory for the internal read buffer.
3277 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
3278 during fill() and no more data is available in the internal read buffer.
3279 (SimpleSocket::read): Check object consistency - return -1 on error.
3280 invalidate() the object if socket read error is encountered.
3281 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
3282 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
3283 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
3284 (NetIO_FTP::read): Use NetIO_FTP::ok().
3285 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
3286 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
3287
5898e300
RC
32882001-11-09 Robert Collins <rbtcollins@hotmail.com>
3289
3290 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3291 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
3292 (SimpleSocket::printf): Ditto.
3293 (SimpleSocket::write): Ditto.
3294 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
3295 printf and write.
3296 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3297 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
3298 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3299
8e58f8fd
RC
33002001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
3301
3302 * geturl.cc (get_url_to_string): clean up memory leak
3303 (get_url_to_file): ditto
cef493d7 3304
4b4002ab
RC
33052001-11-06 Robert Collins <rbtcollins@hotmail.com>
3306
3307 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
3308 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
3309
94525fd9
RC
33102001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
3311
3312 * fromcwd.cc (found_file): Free() memory containing the version and
3313 filepath information for a given package, before replacing the pointers which
3314 reference this memory.
3315
33162001-11-06 Robert Collins <rbtcollins@hotmail.com>
ca83c665
RC
3317
3318 * fromcwd: Fix compiler warnings for cvsid.
3319 (canonicalize_version): Fix compilter warnings.
3320 (do_fromcwd): Ditto.
3321 * version.h: Fix compiler warnings for canonicalize_version.
3322
ce1f9ec2
RC
33232001-11-03 Robert Collins <rbtcollins@hotmail.com>
3324
3325 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
3326
89d82ec7
RC
33272001-11-02 Robert Collins <rbtcollins@hotmail.com>
3328
3329 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
3330
c8fea72a
RC
33312001-11-02 Robert Collins <rbtcollins@hotmail.com>
3332
8114d309
RC
3333 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
3334
33352001-11-02 Robert Collins <rbtcollins@hotmail.com>
3336
cef493d7 3337 * choose.cc (default_trust): Change the "Required" forced install category to
8114d309 3338 "Base".
c8fea72a 3339
f557695e
RC
33402001-11-02 Robert Collins <rbtcollins@hotmail.com>
3341
3342 * choose.cc: Ran indent.
3343 (set_action): When the requested trust level is missing and the level was not
3344 user requested, set the action to ACTION_SAME_CURR.
3345
9a60dafc
CF
33462001-11-01 Christopher Faylor <cgf@redhat.com>
3347
cef493d7 3348 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
f557695e
RC
3349
33502001-11-02 Robert Collins <rbtcollins@hotmail.com>
3351
3352 * choose.cc (_view::init_headers): Resync with the paint logic.
9a60dafc 3353
878faffd
RC
33542001-11-02 Robert Collins <rbtcollins@hotmail.com>
3355
cef493d7 3356 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
878faffd
RC
3357 packages.
3358
05bfdf26
RC
33592001-11-02 Robert Collins <rbtcollins@hotmail.com>
3360
3361 * choose.cc (default_trust): Autoset currently installed packages per the user's
3362 selection of prev/curr/exp.
3363
0b9af00c
RC
33642001-11-02 Robert Collins <rbtcollins@hotmail.com>
3365
3366 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
3367
7cefe128
RC
33682001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
3369
3370 * geturl.cc (is_showing): Remove.
3371 (is_local_install): New static variable. Controls whether the
3372 progress dialog and the supporting thread will be created.
3373 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
3374 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
cef493d7 3375 This prevents the progress dialog to gain control over the
7cefe128
RC
3376 application and fixes the "setup.exe going to background" problem.
3377 (progress): Use is_local_install.
3378 (get_url_to_string): Set is_local_install.
3379 (dismiss_url_status_dialog): Use is_local_install.
3380 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
3381 (init_dialog): Remove usage of SetForegroundWindow.
cef493d7 3382 This prevents the progress dialog to gain control over the
7cefe128
RC
3383 application and fixes the "setup.exe going to background" problem.
3384
42a99ed1
RC
33852001-11-02 Robert Collins <rbtcollins@hotmail.com>
3386
3387 * choose.cc (list_click): Change r to row for clarity.
3388 When we shrink the list below 1 page, scroll to the top of the list.
3389 (_view::click): Return the actual change for contractions.
3390 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
3391
45c2d7d3
RC
33922001-11-02 Robert Collins <rbtcollins@hotmail.com>
3393
3394 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3395 * localdir.cc: Ran indent.
3396 (get_root_dir_now): New function.
3397 (save_local_dir): New function.
3398 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
3399 (do_local_dir): If there is a saved local dir, read it in.
3400 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3401 * root.cc (dialog_cmd): Ditto.
3402 * source.cc (dialog_cmd): Ditto.
3403
2399c54d
RC
34042001-11-01 Robert Collins <rbtcollins@hotmail.com>
3405
3406 * choose.cc(list_vscroll): Return 0 as required by win32.
3407 (list_hscroll): Ditto.
3408 (list_click): Ditto.
3409
8e4402a9
RC
34102001-11-01 Robert Collins <rbtcollins@hotmail.com>
3411
3412 * argv.cc: Remove.
3413 * argv.h: Remove.
3414 * main.cc(WinMain): Use __argv to retrieve command line parameters.
3415 * Makefile,in: Remove argv.o.
3416
c168185f
RC
34172001-11-01 Matt Hargett <matt@use.net>
3418
cef493d7
CF
3419 * geturl.cc (progress): Change int to unsigned int to eliminate
3420 lint warnings.
3421 * (get_url_to_string): Check for NULL pointer.
3422 * mount.cc (find2): Use free instead of delete for malloc'd
3423 memory.
3424 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
c168185f 3425
f97a1ece
RC
34262001-10-31 Robert Collins <rbtcollins@hotmail.com>
3427
3428 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
3429 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
3430 (read_installed_db): Bugfix for testing whether a package has a source tarball.
3431 Reported by Matt (matt@usa.net).
cef493d7 3432 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
f97a1ece
RC
3433 confusion and lint errors. Reported by Matt (matt@usa.net).
3434
d52ed64b
RC
34352001-10-31 Robert Collins <rbtcollins@hotmail.com>
3436
cef493d7 3437 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
d52ed64b
RC
3438 from dcrt0.cc.)
3439 * argv.h: New file.
3440 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
3441 Add mingw_getopt.o build rule.
3442 * main.cc(WinMain): Initialise argv and argc for use by getopt.
3443
392ba1ba
CF
34442001-10-27 Christopher Faylor <cgf@redhat.com>
3445
3446 * res.rc: Rearrange info on top line slightly.
3447
31324d15
CF
34482001-10-27 Christopher Faylor <cgf@redhat.com>
3449
3450 * desktop.cc (make_passwd_group): Move file creation earlier in the
3451 process to ensure that passwd-grp.bat reflects desired operation.
3452
34532001-27-10 Trevor Forbes <t4bs@hotmail.com>
3454
3455 * postinstall.cc (each): Remove "*.done" file else rename will fail.
3456
ee411d77
CF
34572001-10-16 Christopher Faylor <cgf@redhat.com>
3458
3459 * res.rc: Oops. Take 640x480 screen size into account.
3460
e74944da
CF
34612001-10-16 Christopher Faylor <cgf@redhat.com>
3462
3463 * res.rc: Enlarge chooser screen.
3464
e368cfb9
CF
34652001-10-12 Christopher Faylor <cgf@redhat.com>
3466
3467 * Makefile.in: Accomodate changes to w32api_include macro.
3468
a6ba3670
CF
34692001-10-12 Christopher Faylor <cgf@redhat.com>
3470
3471 * Makefile.in: Use correct flags for windres.
3472
683e96f6
CF
34732001-10-12 Christopher Faylor <cgf@redhat.com>
3474
3475 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
3476
2c18c00b
CF
34772001-10-12 Christopher Faylor <cgf@redhat.com>
3478
3479 * choose.cc (pick_line::paint): Reorganize after botched patch.
3480
0f61a05a
CF
34812001-10-12 Christopher Faylor <cgf@redhat.com>
3482
3483 * choose.cc (pick_line::paint): Add missing declaration.
3484
308d6f3e
CF
34852001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
3486
3487 * choose.cc (pick_line::paint): Add package name to sdesc for display.
3488
3bcf85be
RC
3489Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
3490
3491 * choose.cc (_view::insert_pkg): Correctly exit loop.
3492 * iniparse.y (register_category): Always insert new categories.
3493
fb2cd8f6
CF
3494Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
3495
3496 * inilex.l (yylex): For comments, eat all characters up to, but not
3497 including newline.
3498
127b32e1
CF
3499Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
3500
3501 * fromcwd.cc (found_file): Use correct package name when adding an
3502 unknown package rather than random stack garbage.
3503
2cd555aa
CF
3504Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
3505
3506 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
3507
4254cc64
CF
3508Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
3509
3510 * desktop.cc (etc_profile): Leave environment variables untouched.
3511
acbae401
CV
35122001-08-07 Corinna Vinschen <corinna@vinschen.de>
3513
3514 * autoload.c: Add dynamic load statements for NT/W2K
3515 advapi32 functions not available in 9x/ME.
3516 * main.cc (set_default_dacl): New function.
3517 (WinMain): Call `set_default_dacl' if running on NT/W2K.
3518
969a294c
CF
3519Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
3520
3521 * ini.h (_CategoryPackage): Change pkg field to pkgname for
3522 consistency.
3523 * choose.cc: Use pkgname field when referencing _CategoryPackage
3524 throughout.
3525 (fill_missing_category): Don't add excluded packages.
3526 (default_trust): Ditto.
3527 (_view::insert_pkg): Ditto.
3528 * iniparse.y (register_category): Use consistent variable name.
3529
9eeb0e83
ED
35302001-07-09 Egor Duda <deo@logos-m.ru>
3531
3532 * choose.cc: Use system foreground color for text output.
3533
06560feb
CF
3534Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
3535
3536 * choose.cc (set_action): Use default trust for determining reinstall
3537 and source only.
3538 (default_trust): Set default trust.
3539 (pick_line::paint): Allow source selection when reinstalling or
3540 retrieving.
3541
1fb09149
CF
3542Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
3543
3544 * choose.cc (isinstalled): Modify to properly accomodate special case
3545 of "download only".
3546 (set_action): Check downloaded components, not installed components if
3547 "download only".
3548 (set_existence): Always include full list of files when "download
3549 only".
3550
14cfffa5
CF
3551Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
3552
3553 * choose.cc (pick_line::paint): Properly display "na" field when no
3554 source exists.
3555
f54385f6
CF
3556Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
3557
3558 * choose.cc (scan2): Ensure that older versions do not show up in
3559 "Test" slot.
3560
85b1fb54
CF
3561Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
3562
3563 * choose.cc (set_action): Allow "Skip" action if trust != installed.
3564 * res.rc: Fix copyright.
3565
2dada532
CF
3566Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
3567
3568 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
3569 boxes.
06c6d195 3570 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
2dada532
CF
3571
3572 * choose.cc: Restore some more changes from 2001-06-25, throughout.
3573 (paint): Wrap some excessively long lines.
3574 (pick_line::paint): Ditto. Move the arrow in the "Current" column
3575 right to where it belongs. Move the source checkbox slightly to the
3576 right.
3577 (do_choose): List categories and required packages in setup.log.full.
3578
3579Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
3580
3581 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
3582
1b13eeec
CF
3583Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
3584
3585 * ini.h (struct _Info): Add "derived" element.
3586 * choose.cc (scan2): Try to place unknown tar files into proper slot
3587 when package exists in setup.ini but tar file does not.
3588
9307254d
RC
3589Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
3590
3591 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
3592 (do_choose): Log the first category name.
3593
3467d79f
CF
3594Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
3595
3596 *ini.h: Reapply 2001-06-25 changes.
3597 * choose.cc (add_required): Ditto. Default to "Keep" state if
3598 UNINSTALL and product is installed. Default to curr state if SKIP,
3599 etc.
3600 (keep_or_skip): New function. Returns skip or keep state depending on
3601 installed state of package.
3602 (default_trust): Use keep_or_skip to set state.
3603 (_view::insert_pkg): Use calloc to allocate lines.
3604 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
3605
8f53e82a
RC
3606Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
3607
1fb09149 3608 * choose.cc: Remove globals full_list, headers, package_indexes and
8f53e82a
RC
3609 nindexes.
3610 Add globals cat_headers, pkg_headers and chooser.
3611 (add_required): New function.
3612 (paint): Use the chooser for header details.
3613 Call into the chooser to paint each line.
1fb09149 3614 (list_click): Use new global variables.
8f53e82a
RC
3615 Call into the chooser to handle the click.
3616 Repaint the entire view if packages have been added or removed.
3617 (note_width): Get passed a headers struct rather than using a global
3618 variable.
3619 (fill_missing_category): New function.
3620 (default_trust): Skip non-"Required" or "Misc" packages.
3621 (pick_line::set_line (Package *)): New function.
3622 (pick_line::set_line (Category *)): New function.
3623 (pick_line::paint): New function.
3624 (pick_line::click): New function.
3625 (_view::_view): New function.
3626 (_view::set_view_mode): New function.
3627 (_view::mode_caption): New function.
3628 (_view::set_headers): New function.
3629 (_view::init_header): New function.
3630 (_view::insert_pkg): New function.
3631 (_view::insert_category): New function.
3632 (_view::insert_at): New function.
3633 (_view::insert_under): New function.
3634 (_view::clear_view): New function.
3635 (viewsplusplus): New function.
3636 (_view::client): New function.
3637 (set_view_mode): Use new chooser functionality.
3638 (set_full_list): Use new global variables.
3639 (create_listview): Instantiate chooser.
3640 Remove all hardcoded headers[] code.
3641 (dialog_cmd): On trust changes, check dependencies.
3642 (getcategorybyname): New function.
3643 (getpackagecategorybyname): New function.
3644 (scan2): Use case-insensitive package comparison.
3645 (do_choose): Use fill_missing_category ().
3646 Show some category data.
3647 * ini.h: Protect against multiple inclusion.
3648 (views) New enum.
3649 (_CategoryPackage): New struct.
3650 (_Category): New struct.
3651 (_Package): Change category to Category * from char *.
3652 (extern Category category): New global variable.
3653 (extern in ncategories): Ditto.
3654 (getcategorybyname): New prototype.
3655 (catpackagecategorybyname): New prototype.
3656 (register_category): New prototype.
3657 (add_category): New prototype.
3658 * iniparse.y: Parse multiple categories per package.
2dada532
CF
3659 (category): New global variable.
3660 (ncategories): New global variable.
8f53e82a
RC
3661 (new_package): Compare package against NULL, not 0.
3662 (new_requirement): Source formatting fix.
3663 (register_category): New function.
3664 (add_category): New function.
3665 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3666 IDC_CHOOSE_VIEWCAPTION: New control.
3667 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3668 IDC_CHOOSE_VIEWCAPTION: New control.
3669 Increment _APS_NEXT_CONTROL_VALUE.
3670
26a27c14
CF
3671Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
3672
e19ad6a3 3673 * choose.cc (paint): Wrap excessively long lines.
26a27c14
CF
3674 (list_click): Ditto.
3675 (create_listview): Ditto.
3676 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
3677 setup.log.full. Allow "Yes" for source exists in setup.log.full when
3678 installing from local directories.
3679
97312777
CF
3680Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
3681
5f9f0d8d
CF
3682 * choose.cc (set_action): Only clear srcpicked when moving to next
3683 state. Allow source installation if it exists in the current "trust"
3684 state. Don't move to skip state when package is installed.
97312777
CF
3685 (list_click): Don't allow source clicking when no source is available.
3686 (set_full_list): Display package when not is_full_action.
3687 * ini.h (is_full_action): Define.
3688
72fd1d1e
CF
3689Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
3690
3691 * install.cc (check_for_old_cygwin): New function. First stab at
3692 checking for old cygwin versions.
3693 (do_install): Call check_for_old_cygwin if there were no errors during
3694 the install.
3695
41ac91b5 3696Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
86202506
CF
3697
3698 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
3699 than zeroed "source" element.
3700
80429b97
CF
3701Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
3702
3703 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
3704 the highest available "hole" in the trust array.
3705
654ea642
CF
3706Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
3707
3708 * choose.cc (set_existence): Use pointer method for indexing in trust
3709 array.
3710 (create_listview): Ditto.
3711 (scan2): Ditto. Also, use consistent variable name for indexing into
3712 trust array.
3713 * ini.h (Package): Reorganize info array for easier scanning.
3714
e98d90bd
CF
3715Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
3716
3717 * choose.cc (isinstalled): Eliminate special download only test.
3718 (set_action): Don't move to next state if in ACTION_SAME range and not
3719 incrementing.
3720 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
3721 downloading.
3722 (do_choose): Sort packages after all packages have been read.
3723 Accomodate the fact that first element in trust array is empty so that
3724 log files don't report the wrong trust value.
3725 * iniparse.y (new_package): Malloc space for package name or suffer
3726 memory corruption.
3727
38c97581
CF
3728Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
3729
3730 * ini.h (Dependency): New structure. Declare new function.
3731 * inilex.l (yylex): Detect new setup.ini options - category and requires.
3732 * iniparse.y: Declare new setup.ini token values.
3733 (yyparse): Parse new token values.
3734 (new_requirement): New function.
3735
3736Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
3737
3738 * choose.cc (read_installed_db): Eliminate obsolete code.
3739
3ae6c15c
CF
3740Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
3741
3742 * choose.cc (set_action): Set trust on "redo".
3743 (_Info::_Info): New constructor.
3744 (read_installed_db): Use new constructor. Use trusts type for
3745 iterator.
3746 * ini.h (struct _Info): Label struct, add constructor.
3747 (Package): Make installed_ix a type 'trusts.'
3748 * install.cc (uninstall_one): Unset any installed info for current
3749 package.
3750 (install_one): Allocate new Info struct for installed reflecting new
3751 installed info.
3752 (do_install): Don't output line to installed.db if package is being
3753 uninstalled.
3754
9c0a9876
CF
3755Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
3756
3757 * choose.cc (getpkgbyname): Use consistent method for scanning package
3758 array.
3759
68b27c12
CF
3760Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
3761
3762 * choose.cc: Add some comments.
3763 (getpkgbyname): Use strcasecmp for comparisons.
3764
07108cc2
CF
3765Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
3766
f0984dcb 3767 * install.cc (do_install): Avoid checking for download action if
07108cc2
CF
3768 package wasn't currently retrieved.
3769
c46a33a9
CF
3770Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
3771
3772 * choose.cc: Eliminate extra array throughout. Use element in package
3773 structure instead. Use pointers rather than array indexes where
3774 appropriate.
3775 (set_action): New function to set next action based on current.
3776 (choose_caption): New function. Returns display caption.
3777 (check_existence): Change arguments. Use pointer to 'info' structure.
3778 (set_existence): Use pointer rather than array index.
3779 (default_trust): Use trusts enum for second argument.
3780 (set_full_list): Honor exclude element in package structure.
3781 (build_labels): Eliminate.
3782 (base): Make global. Use const char * argument.
3783 (get_package_version): Eliminate.
3784 (getpkgbyname): New function.
3785 (read_installed_db): Use parse_filename to get version info.
3786 * desktop.cc (make_passwd_group): Use getpkgbyname function.
3787 * download.cc (get_file_size): const argument.
3788 (do_download): Use is_download_action to determine when something
3789 should be downloaded.
3790 * filemanip.h: Add some functions.
3791 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
3792 * ini.h: Use enums for actions and trusts.
3793 (is_download_action): New macro.
3794 (is_upgrade_action): Ditto.
3795 (is_uninstall_action): Ditto.
3796 (struct Package): Add new fields.
3797 * inilex.l (yylex): Detect new setup.ini options.
3798 * iniparse.y: Declare new tokens.
3799 (yyparse): Detect exclude keyword. Fill out version field even if
3800 version == 0.
3801 (new_package): Use greater granularity when allocating package array to
3802 avoid repeated calls to realloc.
3803 * install.cc (exists): const argument.
3804 (uninstall_one): Take pkg argument.
3805 (install_one): Ditto. Eliminate unneeded arguments which can be
3806 derived from package info.
3807 (do_install): Iterate over package array using a pointer. Use
3808 is_download_action to control when package should be downloaded.
3809 * tar.cc (tar_open): const argument.
3810 * tar.h: Refloect const argument.
3811
7cc06fd3
CF
38122001-05-31 Michael Chase mchase@ix.netcom.com
3813
3814 * main.cc (WinMain): Add setup version to starting setup.log entry
3815
9522028b
CF
3816Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
3817
3818 * inilex.l: Add + to list of valid string characters.
3819
e9b1aaa7
CF
3820Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
3821
3822 * Makefile.in: Remove more stuff in the clean target.
3823
8e1299fa
CF
3824Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
3825
3826 * Makefile.in: Correctly generate iniparse.h.
3827
85553593
CV
3828Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
3829
3830 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
3831 * geturl.h: Change declaration of `get_url_to_file' accordingly.
3832 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
3833 Set member `ftp_auth'.
3834 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
3835 to constructors of derived classes.
3836 (NetIO::get_ftp_auth): New method.
3837 * netio.h: Change class definition accordingly.
3838 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
3839 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
3840 Add code for ftp authentication retry.
3841 * nio-ftp.h: Change class definition accordingly.
3842 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
3843 Add code for ftp authentication retry in case of proxy connection.
3844 * nio-http.h: Change class definition accordingly.
3845 * res.rc: Add FTP authentication dialog.
3846 * resource.h: Add new constants used in res.rc.
3847 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
3848
c4174b9c
CF
3849Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
3850
3851 * res.rc (IDD_SPLASH): Add a copyright year.
3852
0af2d779
CF
3853Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
3854
3855 * Makefile.in: Make iniparse.y produce a c++ file.
3856 * choose.cc (set_existence): Revert 2001-05-27 change.
3857 * ini.cc: Remove "C" from declaration of yyparse.
3858 * iniparse.y (yyparse): Fill out version field by default when a binary
3859 install is detected and no version has been set yet.
3860 * install.cc (do_install): Mount things earlier so that we can use
3861 proper mount table settings. Don't remove mounts since they are now
3862 honored.
3863 * mount.cc (create_mount): Reread the mount table after establishing a
3864 new mount.
3865 (read_mounts): Explicitly clear root_here to allow multiple uses of
3866 this function. Ensure that there is no garbage in the table when we've
3867 exhausted all of the mounts in the registry.
3868 (cygpath): Accomodate ./ in path.
3869
85b43844
CF
3870Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
3871
0af2d779
CF
3872 Use parse_filename method to parse filenames throughout. Use
3873 get_root_dir to retrieve the current root directory throughout. Set
3874 const in argument list, where appropriate, throughout.
3875 * choose.cc (set_existence): Detect case of uninstalled package with no
3876 version.
85b43844
CF
3877 (parse_filename): New function.
3878 * filemanip.h (fileparse): New structure.
3879 * mount.cc (read_mounts): Remember where we found the root mount.
3880 (set_root_dir): New function.
3881 (get_root_dir): Ditto.
3882 * mount.h: Declare new functions.
3883 * site.cc (get_root_dir_now): Renamed from get_root_dir.
3884 (save_site_url): Use new function name.
3885 (get_initial_list_idx): Ditto.
3886
08f8c762
CF
3887Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
3888
3889 * choose.cc: Use a constant throughout to deal with chooser icon
3890 length.
3891 * res.rc (IDD_CHOOSE): Increase size of chooser box.
3892
47f8d8b3
CF
38932001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
3894
3895 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
3896 use when Redownload or Sources Only selected.
3897
6a748750
CF
3898Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
3899
3900 Reformat file after botched patch formatting.
3901 * choose.cc (which_trust): Eliminate variable.
3902 (default_trust): Don't set which_trust.
3903 (do_choose): Use selected trust when reinstalling or installing source.
3904
a351e48c
CF
3905Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
3906
3907 Change concat to cygpath throughout.
3908 Change map_filename to cygpath throughout.
3909 * concat.cc (vconcat): New function.
3910 (concat): Use vconcat.
3911 * concat.h: Reflect above.
3912 * install.cc (map_filename): Eliminate.
3913 (install_one): Free dest_file.
3914 * mount.cc (find2): Expect input key to be pointing to mount record.
3915 (in_table): New function.
3916 (is_admin): Move from root.cc.
3917 (read_mounts): New function.
3918 (path_prefix_p): New function.
3919 (cygpath): New function.
3920 * mount.h: Define new functions and structure.
3921 * root.cc (in_table): Move to mount.cc.
3922 (do_root): Call read_mounts to initialize root stuff and mount table.
3923 * site.cc (get_root_dir): Ditto.
3924
e227ee24
CF
39252001-05-09 Matt Hargett <matt@use.net>
3926
3927 * Makefile.in: Remove *.rc from clean.
3928
25fd2965
CF
3929Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
3930
3931 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
3932 TRUST_PREV which produced "0" versions.
3933
42bf5b92
CF
39342001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
3935
3936 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
3937 _APS_NEXT_CONTROL_VALUE to account for addition of
3938 IDC_CHOOSE_INST_TEXT.
3939 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
3940 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
3941 hot keys to select Prev, Curr, Exp.
3942 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
3943 define for LOOP_PACKAGES to include new actions ACTION_REDO and
3944 ACTION_SRC_ONLY.
3945 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
3946 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
3947 source Checkbox to use.
3948 (build_labels): Add logic to allow for selection of Source only
3949 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
3950 current version binary.
3951 (dialog_proc): Add conditional display for file selection prompt based
3952 on download vs install using IDC_CHOOSE_INST_TEXT.
3953 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
3954 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
3955 handle the instance where Source Download/Install was selected. Modify
3956 log file to store appropriate information regarding Action selected and
3957 the new actions that were added (I.E.: ACTION_REDO and
3958 ACTION_SRC_ONLY).
3959 * download.cc: Add include for <unistd.h> and "port.h".
3960 (download_one): Modify parameter list to include the selected action
3961 for the file to be downloaded. Modify size check against expected size
3962 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
3963 .tmp file to also remove the destination file if exists due to ability
3964 to redownload source and binary now.
3965 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
3966 calculation of Download Bytes. Modify to also use ACTION_REDO and
3967 ACTION_SRC_ONLY in determining files selected for download.
3968 * install.cc (uninstall_one): Add check to treat a Reinstall like an
3969 upgrade so current version will be uninstalled prior to reinstall.
3970 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
3971 uninstalling and installing binary and source packages.
3972 * desktop.cc (make_passwd_group): Modify logic to account for a Source
3973 only cygwin install when checking for cygwin to determine need for
3974 mkpasswd and mkgroup.
3975
3976Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
8a09aa99
CF
3977
3978 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
3979 Removed WS_DISABLED from "OK" buttons to accomodate default focus
3980 changes in net.cc and source.cc.
3981 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
3982 a default is selected.
3983 * winsup/cinstall/source.cc (dialog_proc): Ditto.
3984 (check_if_enable_next): Removed. No longer needed since a radio button
3985 will always be selected.
3986 (load_dialog): Removed call to check_if_enable_next.
3987 (dialog_cmd): Ditto. Also added default to switch.
3988
87bdba0c
CF
3989Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
3990
3991 * res.rc: Resize affected text.
3992
8293fc16
CF
3993Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
3994
3995 * net.cc (do_net): Default to direct download.
87bdba0c 3996 * res.rc: Move default selections to the top.
8293fc16 3997
ed96c6da
EB
39982001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
3999
4000 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
4001 Must now include <windows.h> and not the pieces.
4002 * choose.cc (create_listview): Clean up type mismatch problems.
4003 * dialog.h (NEXT(id)): Ditto.
4004 * geturl.cc (dialog): Ditto.
4005 * install.cc (dialog): Ditto.
4006 * splash.cc (load_dialog): Ditto.
4007
fe94cc29
CF
4008Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
4009
4010 * tar.cc (class gzbz): Define dummy virtual functions.
4011
fb087b80
CF
4012Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
4013
4014 * Makefile.in: Add bz2 include/library support.
4015 * filemanip.h: New file.
fe94cc29
CF
4016 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
4017 .tar.bz2 found.
fb087b80
CF
4018 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
4019 (read_installed_db): Ditto.
4020 (do_choose): Ditto.
4021 * fromcwd.cc (found_file): Ditto.
4022 (do_fromcwd): Ditto.
4023 * tar.cc (class gzbz): New super class for uncompression support.
4024 (gz): New class for gzip support.
4025 (bz): New class for bzip2 support.
4026 (tar_open): Use gzbz class to control file opening.
4027 (tar_ftell): Ditto for returning position in file.
4028 (skip_file): Ditto for reading file.
4029 (tar_next_file): Ditto.
4030 (tar_read_file): Ditto.
4031 (tar_close): Ditto for close.
4032
4033 * zlib/configure.in: Force NM substitution.
4034
4035 * source.cc (do_source): Default to "Install from Internet".
4036
88bcaf07
CF
40372001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
4038
4039 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
4040 `stat'.
4041 * choose.cc (list_click): Correct inability to select source code for
4042 download.
4043 (scan2): Modify to skip source tarballs when scanning disk for
4044 installable packages.
4045
ef45c299
CV
40462001-03-10 Chris Abbey <chris_abbey@yahoo.com>
4047
4048 * install.cc: install sources into /usr/src instead
4049 of /, also include the sizes of source tarballs
4050 in total_bytes.
4051 * download.cc: include sizes of source tarballs in
4052 total_download_bytes.
4053
9fe1181b
CV
4054Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
4055
4056 * download.cc (get_file_size): Remove `static'.
4057
2bfdb848
CV
4058Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
4059
4060 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
4061
60c632b3
CV
40622001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
4063
4064 * choose.cc (paint): Modify message for nothing to download vs
4065 nothing to install/update based on installation method.
4066 (list_click): Modify to skip versions in selection process if
88bcaf07 4067 installing from local directory and installation file does not exist.
60c632b3
CV
4068 Also leaves Source Action set to N/A if the source file does not exist
4069 and installing from local directory.
4070 (check_existence): New method to check current existence of installation
4071 files based on selected installation method.
4072 (set_existence): New method to set the current existence of installation
4073 files based on selected installation method.
4074 (best_trust): Modify decision process for best trust to base decision on
4075 current trust selected (IE: Prev, Curr, or Test), existence of file and
4076 installation method selected.
4077 (default_trust): Add logic to capture the current trust level and the
4078 trust selected for the given package.
88bcaf07 4079 (set_full_list): Expand decision criteria for displaying a package in
60c632b3
CV
4080 the selection list to include file existence/non-existence and selected
4081 installation method.
4082 (build_labels): Modify criteria for label addition to include
4083 installation method and file existence/non-existence.
88bcaf07 4084 (create_listview): Modify to establish package trust level for each
60c632b3
CV
4085 package before setting up the display list. Also modification to set
4086 current trust button as the default.
88bcaf07 4087 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
60c632b3
CV
4088 a reset of the selection list in addition to setting the default trust.
4089 (get_package_version): New method to provide reusable code for
4090 determining the package version from the file name for a specified
4091 trust.
4092 (scan2): Modify to use new method get_package_version and
4093 also enhance handling of the build for the structures package and
4094 extra.
4095 (read_installed_db): Modify to use the new method
4096 get_package_version and also enhance handling of the build for the
4097 structures package and extra.
88bcaf07 4098 (do_choose): Add additional initialization of package and extra
60c632b3
CV
4099 structures. Modify to use read_installed_db all the time despite
4100 install method. Modify output to setup.log.full log file to increase
4101 readability by adding additional spacing, expanded code and available
4102 versions.
4103 * ini.h: Add new fields install_exists, source_exists and
88bcaf07 4104 partial_list_display to the structure definition for package.
60c632b3
CV
4105 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
4106 pushbuttons by replacing with Radio Buttons thus allowing the
4107 operator to better determine which is selected.
4108
2f9645a1
CV
41092001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
4110
88bcaf07 4111 * download.cc (do_download): Add new variables total_download_bytes and
2f9645a1
CV
4112 total_download_bytes_sofar for download progress meter. Add loop
4113 to accumulate the total bytes to download from the selected packages.
4114 * geturl.cc: Add state.h and diskfull.h to include list. Add new
4115 variables gw_iprogress, gw_pprogress, gw_progress_text,
4116 gw_pprogress_text, and gw_iprogress_text to allow for addition of
4117 total packages download progress meter and disk full percent
4118 progress meter. Add variables total_download_bytes and
4119 total_download_bytes_sofar for use by progress meters.
88bcaf07
CF
4120 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
4121 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
4122 allow for addition of total packages download progress meter and disk
4123 full percent progress meter.
2f9645a1
CV
4124 (init_dialog): Ditto.
4125 (progress): Ditto.
4126 (get_url_to_file): Ditto.
4127 * geturl.h: Add external definition for total_download_bytes and
4128 total_download_bytes_sofar.
88bcaf07 4129 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
2f9645a1
CV
4130 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
4131 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
4132 download meters.
88bcaf07 4133 * resource.h: Add new fields for progress meters and text and update
2f9645a1
CV
4134 _APS_NEXT_CONTROL_VALUE.
4135
b41962a3
CV
4136Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
4137
4138 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
4139 for NULL.
4140
4141Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
01954c34
CV
4142
4143 * download.cc (download_one): Add missing parenthesis.
4144
88a77116
CV
4145Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
4146
4147 * download.cc (get_file_size): New function. Eliminates the need
4148 to call `stat'.
4149 (download_one): Call `get_file_size' instead of `stat'. This
4150 workarounds a problem with mingw's `stat' call.
4151
577f35ed
EB
41522001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
4153
4154 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
4155 This is to allow cinstall to build with 2.95.2-7 and to make the
4156 use of headers consistent.
4157
38f5563e
DD
41582000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
4159
4160 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
4161
c0a7e0f2
DD
4162Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
4163
4164 * winsup/cinstall/res.rc: Added accelerators and improved focus
4165 order.
4166
72826a5b
CF
41672000-12-10 Egor Duda <deo@logos-m.ru>
4168
4169 * choose.cc (paint): Use system background color for text output.
4170
4171Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
4172
4173 * Makefile.in: Use CXX for linking and for compiling .cc files.
4174 * configure.in: Find correct c++ compiler.
4175 * configure: Regenerate.
4176
67bebcb5
DD
41772000-11-17 DJ Delorie <dj@redhat.com>
4178
4179 * splash.cc (load_dialog): Make message more obvious.
4180 * res.rc: Ditto.
4181
25fb9139
CF
4182Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
4183
4184 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
4185 necessary for newer compilers.
4186
ef2007fd
CV
4187Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
4188
4189 * desktop.cc: Include "ini.h" and "version.h".
4190 (make_passwd_group): Skip the function on 9x/ME boxes when an
4191 older version of Cygwin has been installed which doesn't
4192 support mkpasswd/mkgroup on 9x/ME.
4193 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
4194 * ini.h: ...here.
4195
277b4d56
CV
4196Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
4197
4198 * desktop.cc (make_passwd_group): Don't exit when started
4199 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
4200
f8a6415f
DD
4201Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
4202
4203 * install.cc (do_install): Add call to set_cygdrive_flags to sync
4204 the mount modes.
4205 * mount.cc (set_cygdrive_flags): New function.
4206 (get_cygdrive_flags): Ditto.
4207 (default_cygdrive): Ditto.
4208 (set_cygdrive_flags): Ditto.
4209 * mount.h: Add prototype for set_cygdrive_flags.
4210
3b9077d4
DD
42112000-10-23 DJ Delorie <dj@redhat.com>
4212
4213 * ini.h: add source actions
4214 * fromcwd.cc: check for available sources
4215 * res.rc: add checkbox bitmaps
4216 * resource.h: ditto
4217 * check-*.bmp: new
4218 * choose.cc: add source column
4219 * download.cc: download sources if called for
4220 * install.cc: [un]install sources too
4221
1b1b33ac
DD
42222000-10-22 DJ Delorie <dj@redhat.com>
4223
4224 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
4225 ignore it wrt full_list if there's already a version installed.
4226 (do_choose): Sort the list.
4227 (package_sort): New.
4228
2a1a01e0
DD
42292000-10-12 DJ Delorie <dj@redhat.com>
4230
4231 * res.rc: Add more error strings.
4232 * resource.h: Ditto.
4233 * iniparse.y (new_package): re-initialize if needed.
4234 * download.cc (do_download): Keep track of errors; notify and
4235 allow retry.
4236 * install.cc (do_install): Ditto.
4237
1a9886fe
DD
42382000-10-05 DJ Delorie <dj@redhat.com>
4239
4240 * Makefile.in: fix %.cc rule
4241
40aef45e
DD
42422000-10-04 DJ Delorie <dj@redhat.com>
4243
4244 * desktop.cc: quote HOME and USER, don't . ./.profile
4245
4246 * choose.cc (build_labels): don't include in partial list just
4247 because there's a *previous* version available.
4248
4249 * install.cc (do_install): if installing from local directory with
4250 setup.ini and the file isn't found, look in "." also. Note errors.
4251
dd3f7f9b
DD
42522000-10-02 DJ Delorie <dj@redhat.com>
4253
4254 * ini.cc (do_ini): save setup.ini locally
4255
42562000-10-02 Chris Abbey <cabbey@bresnanlink.net>
4257
4258 * desktop.cc: quote escapes in prompt
4259
fee2a8d0
DD
42602000-10-02 Jason Tishler <jt@dothill.com>
4261
4262 * root.cc (is_admin): New function.
4263 (read_mount_table): Check for administrative priviledges and set
4264 installation scope as appropriate.
4265
a03db251
DD
42662000-09-28 DJ Delorie <dj@redhat.com>
4267
4268 * nio-ftp.cc (ftp_line): handle continuations more robustly
4269
b151e01e 42702000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
0b758d4c
DD
4271
4272 * res.rc: increased the size of the site dialog (IDD_SITE) & the
4273 corresponding list box to provide for more URL's to be listed.
4274 Modified the position of the Back, Next and Cancel buttons to
4275 correspond to the new size of the dialog.
4276
d07591a3
DD
42772000-09-13 DJ Delorie <dj@redhat.com>
4278
4279 * install.cc (do_install): update disk fullness once per package
4280 to improve performance
4281
4282 * choose.cc (create_listview): call ReleaseDC
4283
89725f30
DD
4284Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
4285
4286 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
4287 returned, as it seems Samba 2.0.6+ returns this instead of
4288 ERROR_PATH_NOT_FOUND
88bcaf07 4289
6fbc690d
CF
4290Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
4291
4292 * site.cc (get_initial_list_idx): Don't default to saved URL if it
4293 refers to sources.
4294
13d27274
DD
42952000-09-07 DJ Delorie <dj@redhat.com>
4296
4297 * splash.cc: use version.h, not local decl
4298 * res.rc: add "old version" message
4299 * resource.h: ditto
4300 * version.h: new
4301 * fromcwd.cc (canonicalize_version): make global
89725f30
DD
4302 * iniparse.y: add setup-version support, fix bug in blank line
4303 handling
4304
13d27274
DD
4305 * inilex.l: add [exp] as alias for [test], add setup-version
4306 * Makefile.in (version.c): add setup-version tag
4307
4308 * desktop.cc (do_desktop): remove 1.1 version number
4309 (do_desktop_setup): ditto
4310
4311 * ini.cc (do_ini): zero out package list just in case we redo it.
4312
8cfbc487
DD
43132000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
4314
4315 * choose.cc (list_click): Check for nindexes==0; if so, return.
4316
c92e1307
DD
43172000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
4318
4319 * localdir.cc: new, local package directory selection dialog; cd
4320 into selected directory
4321 * Makefile.in (OBJS): add localdir.o
4322 * dialog.h: add prototype for do_local_dir
4323 * main.cc (WinMain): initialize local_dir to cwd; add call to
4324 do_local_dir
4325 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
4326 * source.cc (dialog_cmd): ditto
4327 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
4328 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
4329 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
4330 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
4331 * state.h: add local_dir variable
4332
43332000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
50225eae
DD
4334
4335 * desktop.cc: added logic to handle to the new dialog and to
4336 default the setting for the new checkboxes based on whether the
4337 desktop icon or start menu link already exist.
4338 (desktop_icon): correction to desktop directories for desktop icon
4339 creation. Additional logic added for Win95 which does not appear
4340 to have Common Directories so if Common selected and null uses
4341 normal directory.
4342 (start_menu): Additional logic added for Win95 which does not
4343 appear to have Common Directories so if Common selected and null
4344 uses normal directory.
4345 (do_desktop_setup): moved the saving of the icon, creation of the
4346 bat file, profile, passwd, Start Menu link and desktop shortcut to
4347 this method from do_desktop. Made the creation of the desktop
4348 icon and start menu link conditional on settings of new dialog
4349 created for desktop.
4350 * install.cc (do_install): changed next from IDD_S_DESKTOP to
4351 IDD_DESKTOP.
4352 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
4353 * res.rc: added new resource to create a desktop dialog with 2
4354 checkboxes for creating the desktop icon and start menu link.
4355 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
4356 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
4357 * state.h: added root_menu and root_desktop for use in dialog.
4358
4a83b7b0
DD
43592000-08-29 DJ Delorie <dj@redhat.com>
4360
4361 * choose.cc (scan_downloaded_files): scan for existing files, so
4362 that the user only sees new downloads.
4363
4364 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
4365 * site.cc (do_site): if we can't download the mirror list, go back
4366 to the net setup box to choose another transport.
4367 * autoload.c: add more functions
4368 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
4369 * resource.h: add WININET message
4370
4371 * net.cc (do_net): no longer default to IE5
4372 * simpsock.h (class SimpleSocket): new, simplify socket operations
4373 * simpsock.cc: ditto
4374 * nio-http.h: new, for direct http protocol
4375 * nio-http.cc: ditto
4376 * nio-ftp.h: new, for direct http protocol
4377 * nio-ftp.cc: ditto
4378 * netio.cc (set_url): move initialization here to handle redirections
4379 (open): add direct http/ftp
4380 * netio.h (NetIO::set_url): new
4381
4382 * log.cc (log_save): create directory for log if needed
4383
4384 * hash.cc, hash.h: new
4385 * Makefile: add hash.o
4386 * choose.cc: enable "uninstall" option
4387 * download.cc: invert action test to accomodate uninstalling
4388 * ini.h: add ACTION_UNINSTALL
4389 * install.cc: add uninstall functionality
4390 * res.rc: make install tag changeable
4391 * resource.h: add uninstall resources
4392
4393 * res.rc: update mirror list URL
88bcaf07 4394
50f64a4b
DD
43952000-08-24 DJ Delorie <dj@redhat.com>
4396
89b1a15b
DD
4397 * log.cc, log.h: new files
4398 * Makefile.in (OBJS): add log.o
4399 * tar.cc: use exit_setup instead of exit
4400 * dialog.cc (fatal): use exit_setup instead of ExitProcess
4401 * msg.cc (fatal): ditto
4402 * install.cc (dialog_cmd): ditto
4403 * ini.cc (do_ini): ditto
4404 * main.cc (main): add logging
4405 * source.cc (do_source): ditto
4406 * root.cc (do_source): ditto
4407 * site.cc (do_site): ditto
4408 * other.cc (do_other): ditto
4409 * net.cc (do_net): ditto
4410 * choose.cc (do_choose): ditto
4411 * download.cc (do_download): ditto
4412 * install.cc (do_install): ditto
4413 * msg.cc (fatal): ditto
4414
4415 * res.rc: mark password boxes as *being* password boxes.
4416
50f64a4b
DD
4417 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
4418 calls won't use the same buffer.
4419 * choose.cc (create_listview): don't default to full list if no changes
4420 (base): return computed value, not temporary :-(
4421 (do_choose): don't use installed.db if we're only downloading.
4422
348860fa
DD
44232000-08-23 DJ Delorie <dj@redhat.com>
4424
4425 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
4426 * nio-ie5.h (flush_io): new
4427 * netio.cc (load_dialog): note when we're initializing the dialog
4428 box, and ignore changes to the edit fields then.
4429
5f48f258
DD
44302000-08-21 DJ Delorie <dj@redhat.com>
4431
4432 * README: Update
4433
4434 * fromcwd.cc (found_file): don't remember the canonicalized version
4435
4436 * choose.cc (paint): print "nothing to do" message when list is empty.
4437 (build_labels): Use version "0.0" if no version is available.
4438 (create_listview): default to full list if nothing to install/update.
4439 (base): new, returns basename of file
4440 (read_installed_db): compare base names, not full paths
4441
713bbe5f
DD
44422000-08-11 DJ Delorie <dj@redhat.com>
4443
4444 * choose.cc: add new chooser dialog
4445 * fromcwd.cc: use IDD_CHOOSE
4446 * ini.cc: use IDD_CHOOSE
4447 * main.cc: use IDD_CHOOSE
4448 * ini.h: cosmetic changes
4449 * res.rc: add choose dialog, bitmaps
4450 * choose-spin.bmp: new
4451 * choose-rtarrow.bmp: new
4452 * resource.h: add choose dialog controls
4453
4454 * mount.cc: remove debug statement
88bcaf07 4455
2e9cbac5
DD
44562000-08-08 DJ Delorie <dj@redhat.com>
4457
4458 * Makefile.in (version.c): make version checking more robust
4459 * splash.cc (load_dialog): handle case where there's no version
4460
8507f105
DD
44612000-08-07 DJ Delorie <dj@redhat.com>
4462
4463 * (all): add cvsid tags
4464 * Makefile.in: generate version.c from ChangeLog, add splash.o
4465 * splash.o: new
4466 * res.rc: add splash screen
88bcaf07 4467
f5d0464b
DD
44682000-08-02 DJ Delorie <dj@redhat.com>
4469
4e8ff53f
DD
4470 * net.cc: remove proxy password code
4471 * res.rc: remove proxy user/pass from net, add auth dialogs
4472 * netio.cc,h: add sys/proxy auth methods
4473 * nio-ie5: use them, check for http status codes
4474 * state.h: add system authorization
4475
f5d0464b
DD
4476 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
4477 meaning an url)
4478
76cbfa85
DD
44792000-08-02 Norman Vine <nhv@yahoo,com>
4480
4481 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
4482
e92c4436
DD
44832000-08-01 DJ Delorie <dj@redhat.com>
4484
bf74c544
DD
4485 * postinstall.cc (each): don't rename files we ignore
4486 (do_postinstall): set CYGWINROOT to root_dir, chdir there
4487
e92c4436
DD
4488 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
4489
a6100861
DD
44902000-07-31 DJ Delorie <dj@redhat.com>
4491
4492 * desktop.cc: reverse PATH so /usr/bin precedes /bin
4493
b11b49f3
DD
44942000-07-18 DJ Delorie <dj@redhat.com>
4495
a99bdfd8
DD
4496 * autoload.c: new, autoload dlls that might not be available.
4497 * Makefile.in (OBJS): add autoload.o
4498
4499 * res.rc: rewrite root options (text/binary, system/user) to be
4500 more obvious.
4501
b5b282c4
DD
4502 * site.cc (get_site_list): trim displayed URL, sort by domain
4503
4504 * net.cc (do_net): make IE5 default to checked, for now
4505
b11b49f3
DD
4506 * choose.cc (do_choose): sort packages correctly
4507 * ini.cc (do_ini): handle parse errors more gracefully
4508 (yyerror): ditto
4509 (fprintf): line buffer output
b5b282c4 4510 (do_ini): if we can't load setup.ini, go back to the site list.
b11b49f3
DD
4511 * ini.h: add "unknown" trust level
4512 * inilex.l: absorb unknown trust levels and key/value pairs,
4513 add line number logic
4514 * iniparse.y: handle parse errors more gracefully.
4515 * install.cc: skip packages with no valid install entry
4516
1fd6d0a2
DD
45172000-07-17 DJ Delorie <dj@cygnus.com>
4518
4519 * coding standards fixups, many files
4520 * mkdir.cc: warn about deletions *before* deleting them
4521
ed3e8b9b
DD
45222000-07-17 Jeff Juliano <juliano@cs.unc.edu>
4523
4524 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
4525
4526 * other.cc (dialog_cmd): save download site URL
4527 * site.cc (get_root_dir): new
4528 (save_mirror_site): new
4529 (dialog_cmd): save download site URL
4530 (get_site_list): make list big enough to add prev site
4531 (get_initial_list_idx): new, read last-used URL from file and
4532 append it to site_list
4533 (do_site): call get_initial_list_idx
4534
4535 * concat.cc (concat): avoid segfault when first parm is null
88bcaf07 4536
f57c332f
DD
45372000-07-13 DJ Delorie <dj@cygnus.com>
4538
4539 * postinstall.cc: new
4540 * Makefile.in: add postinstall.o
4541 * concat.h: add backslash ()
4542 * concat.cc: ditto
4543 * desktop.cc (etc_profile): don't do postinstall
4544 (backslash): moved to concat.cc
4545 (uexists): new
4546 (make_postinstall_script): run directly
4547 (do_desktop): chain to do_postinstall
4548 * dialog.h: add exit_msg, do_postinstall
4549 * download.cc: use exit_msg
4550 * install.cc: ditto
4551 * main.cc: add postinstall, exit_msg
4552 * resource.h: add postinstall
d6cda811 4553 * README: add more to-do items
f57c332f 4554
3a8e3956
DD
45552000-07-12 DJ Delorie <dj@cygnus.com>
4556
4557 * desktop.cc: add /etc/postinstall/ support
1a18aed7 4558 * install.cc: add more "standard" directories
3a8e3956 4559
e0c3d906
DD
45602000-07-11 DJ Delorie <dj@cygnus.com>
4561
4562 * desktop.cc: create /etc/profile
ad09bcd9
DD
4563 * desktop.cc: fix include syntax
4564 * Makefile.in: add auto-dependencies
24e259bb
DD
4565 * root.cc: support system vs user
4566 * desktop.cc: ditto
4567 * mount.h: ditto
4568 * mount.cc: ditto
4569 * install.cc: ditto
4570 * res.rc: ditto
4571 * resource.h: ditto
4572 * state.h: ditto
84d58d4c 4573 * desktop.cc: make sure we use backslashes, not slashes.
bf1d5889
DD
4574 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
4575 * geturl.cc: change math for percentage to avoid overflow
4576 * install.cc: ditto
4577 * download.cc: post "download complete" message.
4578 * root.cc: pre-fill in defaults if needed, don't start
4579 browse at root_dir unless it's set.
a3f48e18 4580 * desktop.cc: quote $PATH in case it has spaces in it
88bcaf07 4581
904d24fe
DD
45822000-07-10 DJ Delorie <dj@cygnus.com>
4583
4584 * Makefile.in: add desktop.o and mklink2.o
4585 * dialog.h: add do_desktop
4586 * install.cc: create standard directories, call do_desktop
4587 * res.rc: add cygwin.ico as a file also
4588 * desktop.cc: new, do shortcuts, batch files, and icons
4589 * mklink2.c: new, for COM
1ab805b8 4590 * README: update to-do list
904d24fe 4591
04d6e06b
DD
45922000-07-10 DJ Delorie <dj@cygnus.com>
4593
4594 * ini.cc (do_ini): don't worry about timestamps if we're not
88bcaf07 4595 actually installing.
04d6e06b 4596
5601a13d
DD
45972000-07-09 DJ Delorie <dj@cygnus.com>
4598
4599 * Makefile.in: add -I$(srcdir) for ini.h
4600
23c9e63c
DD
46012000-07-06 DJ Delorie <dj@cygnus.com>
4602
4603 * Replace everything with a new GUI version
4604 * zlib/gzio.c: add gzctell() for progress displays
4605
46062000-06-22 DJ Delorie <dj@cygnus.com>
4607
4608 * setup.c (tarx): re-add call to write_pkg()
4609
aa32874b
DD
46102000-06-07 DJ Delorie <dj@cygnus.com>
4611
4612 * cygcalls.c: new, call cygwin1.dll functions directly
4613 * cygcalls.h: header for same
4614 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
4615 exes, fix cinstall.rc dependencies.
4616 * path.c: remove unneeded code
4617 * setup.c: use cygcalls instead of xcreate_process.
4618 uncompress embedded files with zlib
4619 add "-d" for "download only"
4620 add "-h" for help
4621 postpone mount changes until very end
4622 add download progress indicators
4623 pack multi-column listings more
4624 auto-delete temp files
4625 customize banner message according to options
4626 prompt user for text/binary mounts
4627 add warnings about empty setup directory, root installs, etc
4628
99d1bf2d
DD
46292000-05-24 DJ Delorie <dj@cygnus.com>
4630
4631 * tar.c: New file; built-in tar using zlib.
4632 * tar.h: New file; header for same.
4633 * ctar.c: New file; test program for same.
4634 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
4635 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
4636 * setup.c (tarx): add support for built-in tar
4637 (main): accept unix-style slashes, check root dir for drive letters,
4638 warn about installing in /, make sure cwd is empty for internet installs,
4639 defer mounts to end of install, support built-in tar.
4640
55650749
CF
4641Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
4642
4643 Fix compiler warnings throughout.
4644 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
4645 get_pkg_stuff.
4646 * setup.c: Make 'root' global.
4647 (istargz): Return pointer to "stem" of matched .tar.gz file.
4648 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
4649 bogus check_for_installed check.
4650 (recurse_dirs): Add preliminary support for .bat file execution.
4651 (create_uninstall): Eliminate unneeded parameter.
4652 (do_start_menu): Ditto.
4653 (mkmount): Ditto.
4654 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
4655 scanning for the version number. Eliminate unneeded argument to
4656 create_uninstall.
4657 (getdownloadsource): Add 'name' to list of names rather than url.
4658 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
4659 unneeded argument in mkmount and do_start_menu.
4660
f4dda8f0
DD
46612000-05-18 DJ Delorie <dj@cygnus.com>
4662
4663 * setup.c (optionprompt): allow multi-column, clean up message
4664 about more options, be more robust about user input.
4665 (getdownloadsource): make the mirror URL a macro.
4666 (main): do mounts after done prompting user.
4667
62844d84
CF
4668Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
4669
4670 * setup.c (cleanup): Inverse order of deletion stands a better chance
4671 of deleting cygpath.exe. Still seems to suffer from occasional races,
4672 though.
4673 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
4674 w2k.
4675 (output_file): Defend against an unlikely handle leak.
4676 (main): Don't set up signal handling until we have something special to
4677 do.
4678
ad6749c8
CF
4679Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
4680
4681 * path.c (kill_cygpath): Delete function.
4682 (exit_cygpath): Make more defensive so that it can be called at any
4683 time.
4684 (cygpath_pipe): Don't set up signal here. Do it in main().
4685 * setup.c (istargz): New function.
4686 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
4687 inexplicably fails on samba mounted partitions. Use istargz to match
4688 tar.gz tail.
4689 (processdirlisting) Use istargz to match tar.gz tail.
4690 (cleanup): Renamed from filedel.
4691 (cleanup_on_signal): New function. Called on CTRL-C.
4692 (main): Record handle of main thread so that it can be suspended when
4693 CTRL-C occurs. Set up cleanup_on_signal signal handler.
4694
460cf7b6
CF
4695Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
4696
4697 * setup.c (do_start_menu): Don't concatenate paths to already built
4698 paths.
4699
9e76799c
CF
4700Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
4701
4702 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
4703 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
4704 that.
4705 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
4706 root"-specific.
4707 * setup.c (filedel): Call exit_cygpath here so that we can be assured
4708 that cygpath subprocess has died. This allows us to delete cygpath.exe
4709 and cygwin1.dll.
4710 (optionprompt): Initialize response to -1 so that second screen of
4711 mirrors will appear.
4712 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
4713 * setup.h: Reflect init_pkgs prototype change.
4714
2cf65e6e
CF
4715Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
4716
4717 * pkg.c (init_pkgs): Accept an argument to control what root registry
4718 key should be used.
4719 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
4720 * setup.h: Reflect init_pkgs prototype change.
4721
4722Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
4723
4724 * error.c (winerror): Respond to gcc warning.
4725 * path.c (cygpath_pipe): Ditto.
4726 * setup.c (filedel): Call sa_cleanup on deleteme.
4727 (create_shortcut): Coerce argument to eliminate compiler warning.
4728 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
4729 (refmatches): New function. Tests if ref is contained in a list of
4730 packages to install.
4731 (filematches): New function. Tests if filename matches one of a list
4732 of packages to install.
4733 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
4734 test to accomodate _tar.gz.
4735 (prompt): Ensure that stdout is flushed prior to asking for input.
4736 (findhref): Initialize variables to quiet a compiler warning.
4737 (processdirlisting): Accept list of packages to install. Special case
4738 cygwin tar file version number.
4739 (downloaddir): Accept list of packages to install.
4740 (downloadfrom): Ditto.
4741 (create_uninstall): Eliminate unneeded variables. Quote arguments to
4742 regtool.
4743 (do_start_menu): Don't create uninstall bat file if updating or user
4744 specified a list of packages.
4745 (mkmount): Eliminate unneeded variables.
4746 (get_pkg_stuff): New function. Checks for previous unversioned
4747 installation.
4748 (main): Accept -u and -f options and package names on the command line.
4749 Use get_pkg_stuff to initialize package information. Umount /etc.
4750 Call recurse_dirs and downloadfrom with list of package to install.
4751 Ensure that all /usr/local directories are created. Output
4752 installation time to setup.log.
4753 * setup.h: Add some prototypes.
4754 * xsystem.c (xcreate_process): Eliminate unneeded variable.
4755
4cf88dd9
CF
4756Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
4757
4758 * setup.c (optionprompt): Don't overlap display of already seen options
4759 on next page.
4760 (geturl): Print name of site which we're connecting to rather than "ftp
4761 site".
4762 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
4763 test too simplistic?
4764 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
4765 problems when user chooses x:\ as their root.
4766 (main): For now, default to "non-update" mode. Allow -u option to
4767 signify an update.
4768
36591a07
CF
4769Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
4770
4771 * pkg.c: New file.
4772 * setup.c (tarx): Skip already installed or older packages. Report
4773 when a package has been updated.
4774 (processdirlisting): Skip already installed or older packages.
4775 (main): Detect -f option for forced installation. Initialize pkg stuff
4776 if appropriate.
4777 * setup.h: Add pkg definitions.
4778
c298ea4a
CF
4779Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
4780
4781 * setup.c (findhref): Return NULL on empty string. Eat any trailing
4782 ";something".
4783 (processdirlisting): Attempt to limit recursively processing the same
4784 directory.
4785
f4cafa7e
CF
4786Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
4787
4788 * setup.c (filedel): New function.
4789 (output_file): Keep track of files extracted from setup.exe for
4790 subsequent deletion.
4791 (tarx): Close process handle of child tar process or suffer handle
4792 leak.
4793 (getdownloadsource): Close mirror file so that it can be unlinked.
4794 (processdirlisting): Return total number of files extracted.
4795 (main): Initialize array of files to delete. Ensure that files are
4796 closed on exit. Make the directory that setup.exe is started from ==
4797 the directory where temporary files are placed. Issue an error if no
4798 files were found to download.
4799 * xsystem.c (xcreate_process): Close the thread handle. Close the
4800 process handle if we waited for it to exit.
4801
cd475210
CF
4802Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
4803
4804 * setup.c (main): Change version number output.
4805
7dff5e71
CF
4806Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
4807
4808 * setup.c (tarx): Use full path name to tar executable.
4809 (main): Build full pathname to tar executable. Create /usr/local/etc
4810 by default.
4811
99437fdb
CF
4812Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
4813
4814 * setup.c (findhref): Change method for scanning for href= to choose
4815 the last one on the line. This is still not foolproof and probably
4816 will need to be changed eventually. Don't abort if no "size" field is
4817 evident.
4818 (processdirlisting): Fix boolean algebra.
4819
0f562d55
CF
4820Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
4821
4822 * main.c (tarx): Add some code for future task of unmounting
4823 directories encountered in tar file.
4824
4356382d
CF
4825Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
4826
4827 * setup.c (findhref): Decode file size, when appropriate.
4828 (needfile): New function. Returns 1 when file should be
4829 downloaded.
4830 (processdirlisting): Always download if file size does not
4831 match. Prompt when download fails for some reason.
4832 (getdownloadsource): Accomodate findhref argument changes.
4833
6ab1ce6c
CF
4834Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
4835
4836 Throughout, use global session handle rather than reinitializing for
4837 each connect. Don't pass session as an argument to setup.c functions.
4838 * setup.c (geturl): Only issue "Connecting to.." message when using
4839 http or first time for ftp since subsequent connections will be fast.
4840 (processdirlisting): Allocate space for "N" when user has specified
4841 "N"ever option so that it can be subsequently freed.
4842 (main): Abort if we can't get the list of mirrors.
4843
37ee316b
CF
4844Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
4845
4846 * setup.c (main): Umount /bin and /lib.
4847
a59fb4fa
CF
4848Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
4849
4850 * setup.c (main): Create an empty /var/run/utmp.
4851
75f4b861
CF
4852Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
4853
4854 * Makefile.in: Add umount to list of files to include in setup.exe.
4855 * setup.c (xumount): New function for unmounting directories.
4856 (main): Unmount /usr.
4857 (mkmount): Unmount "unix directory" before trying to figure out where
4858 to create the directory.
4859
d4a66789
CF
4860Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
4861
4862 * setup.c (mkmount): Use xcreate_process to start mount process,
4863 avoiding the shell.
4864 (main): Don't do buffering on stdout or prompts won't be displayed
4865 correctly if running in a cygwin shell with CYGWIN=tty.
4866
a6c3982d
CF
4867Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
4868
4869 * setup.c (main): Remove the CYGWIN environment variable before
4870 starting any cygwin programs.
4871
0ffd5e3b
CF
4872Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
4873
4874 * setup.c (geturl): Use alternative method for finding filename part of
4875 a URL.
4876 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
4877 (downloaddir): Unlink file containing dir listing.
4878 (downloadfrom): Ditto.
4879
3e54bcf9
CF
4880Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
4881
4882 * setup.c (main): Disallow running setup.exe from the "root".
4883
005b73c4
CF
4884Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
4885
2cf65e6e 4886 Use "warning" function, where appropriate, to output warnings.
005b73c4
CF
4887 * setup.c (warning): New function -- outputs warning to console and log
4888 file.
4889 (tarx): Fix index used to reset file protection.
4890 (main): Open the log file earlier so that more stuff can be sent to it.
4891
36dc5fc8
CF
4892Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
4893
4894 * setup.c (processdirlisting): Make "N" option a little less aggressive.
4895
c73320de
CF
4896Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
4897
4898 * setup.c (tarx): Wait to after tar has completed to reset protections
4899 or suffer races with tar process.
4900
68cdfc92
CF
4901Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
4902
4903 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
4904 * setup.c (create_uninstall): Create the uninstall .bat file in the
4905 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
4906 list of files to be deleted. Fix directory detection for determining
4907 when to use 'rmdir'.
4908 (do_start_menu): Add /usr/local/bin to the path.
4909 (main): Add slop to files.array allocation so that we don't have to
4910 worry about reallocating the array when it grows too large when doing
4911 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
4912 files.
4913
35d18861
CF
4914Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
4915
4916 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
4917 download.
4918
20904de1
CF
4919Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
4920
4921 * path.c (kill_cygpath): New cleanup function.
4922 (exit_cygpath): New cleanup function.
4923 (cygpath_pipe): New function. Sets up cygpath in the background for
4924 translating filenames.
4925 (pathcvt): Use background cygpath for file translation.
4926 * setup.c (tarx): New function. Called to extract tar files, capture
4927 logging output, and translate it to Windows format.
4928 (recurse_dirs): Use 'tarx' function to extract files.
4929 (create_uninstall): Use file list built up by tarx rather than reading
4930 the log file.
4931 (mkmount): Add ability to mount root.
4932 (main): Track elapsed install time. Mount root.
4933 * starry.h: Add index field to strarry for tracking of tarx's usage of
4934 this structure.
4935 * xsystem.c (xcreate_process): Return proces handle when not waiting.
4936
c1246750
CF
4937Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
4938
4939 * path.c: New file.
4940 (pathfp): New function. Preliminary work for new -f cygpath
4941 functionality.
4942 * Makefile.in: Add new file.
4943 (pathcvt): Move to new file.
4944 (dtoupath): Ditto.
4945 (utodpath): Ditto.
4946 (pathcat): Ditto.
4947 * setup.c (processdirlisting): Always open file in text mode.
4948 (create_uninstall): Ditto.
4949 (getdownloadsource): Ditto.
4950 (main): Ditto.
4951
4b40edd0
CF
4952Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
4953
4954 * xsystem.c: New file.
4955 * Makefile.in: Accomodate new file.
4956 * setup.c (xsystem): Move to new file.
4957 (recurse_dirs): Accept handle to output log file. Don't use ">"
4958 redirection to trap tar output. Use supplied handle instead.
4959 (create_uninstall): Accept FILE pointer to opened log file. Don't
4960 unlink log file here.
4961 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
4962 (main): Open log file here and pass it to various functions. Unlink
4963 when done.
4964
6f8e3b45
CF
4965Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
4966
4967 Change occurrences of .usr.bin to .bin throughout.
4968 * setup.c (geturl): Increase number of retries to 20. Let user know
4969 what's going on during long connects.
4970 (processdirlisting): Accept "A"lways and "N"ever as update options.
4971 (create_uninstall): Load cygwin1.dll from the current directory rather
4972 than \bin.
4973 (main): Add some expository text.
4974
2a907b70
CF
4975Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
4976
4977 * Makefile.in: Change method for compressing cygwin1.dll to avoid
4978 creating a cygwin1.dll in the current directory. Ensure the addition
4979 of -nostdinc to MINGW_CFLAGS.
4980
c4285a3c
CF
4981Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
4982
4983 * Makefile.in: Augment clean target.
4984
ea615d51
RP
4985Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
4986
4987 * README: Added info about non-working mingw implementation
c1246750 4988 * gzip.exe.gz: Replace with a version from the same build as the other
ea615d51 4989 tools.
c1246750 4990 * tar.exe.gz: Replace with a version from the same build as the other
ea615d51 4991 tools.
c1246750 4992 * mount.exe.gz: Add to repository until, mingw can build setup.
ea615d51
RP
4993 * cygpath.exe.gz: ditto
4994 * cygwin1.dll.gz: ditto
c1246750
CF
4995 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
4996 for Win9x. Display only a screenfull of options at a time. Call all
4997 tools with an absolute path.
4998 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
4999 them.
ea615d51
RP
5000 * setup.dsw: ditto
5001 * zlib.dsw: ditto
5002
51954e74
CF
5003Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
5004
c1246750
CF
5005 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
5006 cygwin1.dll from ../cygwin subdirectory.
51954e74
CF
5007 * gzip.exe.gz: Update.
5008 * tar.exe.gz: Update.
5009
7b777418
CF
5010Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
5011
5012 * Makefile.in: Use ZLIB variable as a target.
5013
4306b490
CF
5014Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
5015
5e7eb909
CF
5016 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
5017 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
5018 sources.
4306b490
CF
5019 * configure.in: Locate correct objcopy.
5020 * configure: Regenerate.
5021
739457f4
CF
5022Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
5023
5024 * Makefile.in: New file.
5025 * configure.in: New file.
5026 * configure: New file.
5027 * zlib/Makefile.am: New file.
5028 * zlib/configure.in: New file.
5029 * zlib/aclocal.m4: New file.
5030 * zlib/acinclude.m4: New file.
5031 * zlib/configure: Regenerate from configure.in.
5032 * zlib/Makefile.in: Regenerate from Makefile.am
8507f105
DD
5033
5034%%% $Id$
5035$Revision$
This page took 0.60569 seconds and 5 git commands to generate.