1 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
3 * IniDBBuilder.cc (IniDBBuilder::buildBeginBuildDepends): Implement.
4 (IniDBBuilder::buildBeginBinary): Implement.
5 * IniDBBuilder.h (IniDBBuilder::buildBeginBuildDepends): Declare.
6 (IniDBBuilder::buildBeginBinary): Ditto.
7 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildBeginBuildDepends):
9 (IniDBBuilderPackage::buildBeginBinary): Ditto.
10 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildBeginBuildDepends):
12 (IniDBBuilderPackage::buildBeginBinary): Ditto.
13 * inilex.l: Recognise Build-Depends-Indep, [,], >, < and remove
15 * iniparse.y: Full support for parsing a debian Sources file in-line in
17 * package_version.cc (packageversion::binaries): Implement.
18 * package_version.h (packageversion::binaries): Declare list of what
19 packages are created from a given source package.
20 (_packageversion::binaries): Ditto.
22 2002-07-10 Robert Collins <rbtcollins@hotmail.com>
24 * iniparse.y: Add basis for support for parsing a debian Sources file.
27 2002-07-09 Robert Collins <rbtcollins@hotmail.com>
29 Change custom container code for packagedb::packages to STL containers
31 * IniDBBuilderPackage.cc: Ditto.
37 * package_db.cc: Ditto.
38 * package_db.h: Ditto.
39 * Makefile.am: Remove list.h references.
42 2002-07-08 Max Bowsher <maxb@ukf.net>
44 * PickView.cc (PickView::PickView): Set font of package list header to
45 the same as used in the rest of the package list.
47 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
49 * install.cc (NoReplaceOnReboot): New command line option to prevent
50 replacing in use files.
51 (install_one_source): Check the option and use it.
52 * README: Update TODO lists.
54 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
56 * PickCategoryLine.cc: Change bucket to use STL container syntax
58 (PickCategoryLine::paint): Use new Category type syntax.
59 * PickCategoryLine.h: Use STL vectors rather than custom containers
61 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageCategory):
62 Use new add_category syntax.
63 * PickView.cc (PickView::insert_pkg): Use new Category type syntax.
64 (PickView::insert_category): Ditto.
65 (PickView::init_headers): Ditto.
66 * category.cc: Trim obsolete code.
67 * category.h: Replace interconnecting class with a typedef to
68 facilitate leveraging STL maps.
69 * choose.cc (fill_missing_category): Use updated pkg.add_category
71 (default_trust): Use new Category type syntax.
72 (set_view_mode): Ditto.
73 (create_listview): Ditto.
74 * package_db.cc (categories): Ditto.
75 * package_db.h: Update headers list to include needed headers.
76 (packagedb::categories): Replace custom list with STL map.
77 * package_meta.cc: Use new Category type syntax throughout.
78 (packagemeta::add_category): Implement new syntax.
79 * package_meta.h: Remove commented out source.
80 (packagemeta::add_category): Update syntax to decouple interface from
83 2002-07-06 Christopher Faylor <cgf@redhat.com>
85 * site.cc (do_download_site_info_thread): Correct spelling error.
87 2002-07-06 Robert Collins <rbtcollins@hotmail.com>
89 * PickCategoryLine.h: Include required header list.h.
90 * PickPackageLine.cc (PickPackageLine::paint): Adjust to use STL
91 containers for listing of packages per category and vice verca.
92 * PickView.cc (PickView::insert_pkg): Ditto.
93 (PickView::insert_category): Ditto.
94 * String++.h (String::caseless): STL helper to allow trivial containers
95 of Strings with case insensitive comparisons.
96 * category.h: Adjust to use STL containers for listing of packages per
97 category and vice verca.
98 * choose.cc (fill_missing_category): Ditto.
99 (default_trust): Ditto.
100 (ChooserPage::OnNext): Ditto.
101 * package_meta.cc (CategoryPackage::~CategoryPackage): Remove.
102 (packagemeta::packagemeta): Adjust for new category list name.
103 (packagemeta::~packagemeta): Adjust to use STL containers for listing
104 of packages per category and vice verca.
105 (packagemeta::set_action): Ditto.
106 * package_meta.h (CategoryPackage): Remove.
107 (packagemeta): Adjust to use STL containers for listing of packages per
108 category and vice verca.
110 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
112 * io_stream.cc: Use STL containers rather than custom ones.
113 (io_stream::registerProvider): Ditto.
114 (findProvider): Ditto.
116 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
118 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
119 Use STL collections for download site collections.
120 (IniDBBuilderPackage::add_correct_version): Ditto.
121 (IniDBBuilderPackage::process_src): Ditto.
122 * PickPackageLine.cc (PickPackageLine::click): Use the packageversion
123 accessible() call to abstract package availability.
124 * choose.cc (scanAVersion): Use STL collections for download site
126 * download.cc (check_for_cached): Ditto.
127 (download_one): Ditto.
128 * package_meta.cc (packagemeta::set_action): Use the packageversion
129 accessible() call to abstract package availability.
130 * package_source.h: Use STL containers rather than custom containers.
131 (site): Create a == operator to allow STL container use.
132 (packagesource::sites): Use STL containers rather than custom
134 * package_version.cc (_packageversion::accessible): Use STL containers
135 for download site containers.
137 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
139 * LogFile.cc: Use STL containers rather than custom containers.
140 (filedef): Create == and < operators for STL use.
141 (files): Convert to an STL set.
142 (LogFile::setFile): Use STL operations on files.
143 (LogFile::exit): Ditto.
145 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
147 * ini.cc (do_remote_ini): Use STL collection for site collection.
148 * site.cc: Include site.h first to ensure it's parsable standalone.
150 (site_list): Convert to an STL container.
151 (all_site_list): Ditto.
152 (site_list_type::site_list_type): Implement copy constructor.
153 (site_list_type::operator=): Implement assignment operator.
154 (site_list_type::operator ==): Implement.
155 (site_list_type::operator <): Ditto.
156 (save_dialog): Use STL collection calls for site collection.
157 (save_site_url): Ditto.
158 (get_site_list): Ditto.
159 (get_saved_sites): Ditto.
160 (do_download_site_info_thread): Ditto.
161 (SitePage::OnNext): Ditto.
162 (SitePage::PopulateListBox): Ditto.
163 (SitePage::OnMessageCmd): Ditto.
164 * site.h: Use STL vectors instead of custom code.
165 (site_list_type::site_list_type): Declare.
166 (site_list_type::operator=): Ditto.
167 (site_list_type::operator ==): Ditto.
168 (site_list_type::operator !=): Ditto.
169 (site_list_type::operator <): Ditto.
170 (site_list_type::operator <=): Ditto.
171 (site_list_type::operator >): Ditto.
172 (site_list_type::operator >=): Ditto.
173 (site_list): Convert to an STL container.
174 (all_site_list): Ditto.
176 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
178 * choose.cc (default_trust): Check package accessibility before
179 triggering an install. (Suggested by Pavel).
181 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
183 * compress_gz.cc (compress_gz::construct): Always initialize key members
184 to ensure the destructor does the right thing.
186 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
188 * filemanip.cc (parse_filename): Do not try to parse empty
190 * package_db.cc (packagedb::packagedb): For each line check if sscanf()
191 extracted good package name and filename.
193 2002-07-03 Robert Collins <rbtcollins@hotmail.com>
195 * package_meta.cc (packagemeta::set_requirements): Automatically select
196 version of dependent packages that satisfies the requirements.
197 Use processOneDependency to trigger the install of those packages.
198 (checkForInstalled): Check that the package remains installed.
199 (processOneDependency): Helper function for dependent packages.
200 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackage): Add more
202 Clear out all current state on new packages.
203 (IniDBBuilderPackage::add_correct_version): Copy the dependency list
206 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
208 * Makefile.am (inilint_SOURCES): Add PackageSpecification sources.
209 nb: inilint is still incomplete, as the packageversion code is not
210 ready for database-less linking.
211 * site.cc (get_site_list): When the same site is reentered by the user
212 replace the old one. (Suggested by John Marshall).
214 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
216 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
217 Clear out package selections when generating implicit source packages.
218 * PackageSpecification.cc (PackageSpecification::satisfies): Implement.
219 (PackageSpecification::_operators::satisfies): Implement.
220 * PackageSpecification.h (PackageSpecification::_operators::satisfies):
221 Worker function for testing versions.
223 2002-07-01 Robert Collins <rbtcollins@hotmail.com>
225 * IniDBBuilder.cc (IniDBBuilder::buildPackageRequirement): Remove.
226 * IniDBBuilder.h (IniDBBuilder::buildPackageRequirement): Ditto.
227 * IniDBBuilderPackage.cc: Use the STL algorithms.
228 Change cpv to cbpv throughout. Adjust -> to ., and use the new accessor
229 functions for the same variable throughout.
230 (IniDBBuilderPackage::IniDBBuilderPackage): Initialise new members.
231 (IniDBBuilderPackage::buildPackage): Use new cygpackage syntax,
232 and set an empty source package.
233 (IniDBBuilderPackage::buildPackageInstall): Use the new source member
234 to record an install package.
235 (IniDBBuilderPackage::buildPackageSource): Move source package logic
236 out from process_src, as it now occurs at separate times.
237 (IniDBBuilderPackage::buildPackageRequirement): Remove.
238 (IniDBBuilderPackage::buildSourceName): Use renamed package
239 specifiation accessor for clarity.
240 (IniDBBuilderPackage::buildSourceNameVersion): Ditto.
241 (IniDBBuilderPackage::add_correct_version): Use STL iterators rather
243 Remove source package references.
244 (IniDBBuilderPackage::process_src): Remove source package code as it's
245 now handled separately.
246 Set Path information before merging versions, to prevent dangling
248 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildPackageRequirement):
250 (IniDBBuilderPackage::cpv): Remove.
251 (IniDBBuilderPackage::cbpv): New generic binary working variable.
252 (IniDBBuilderPackage::cspv): Ditto, but for source packages.
253 (IniDBBuilderPackage::csp): Source package variable for disjoint
255 * Makefile.am (AM_CFLAGS): Remove -Winline to allow stl set code
256 to compile. If it compiles cleanly in gcc 3.1, then reinstate.
257 * PickPackageLine.cc: Adjust packageversion accessors to the new
258 reference calls. (i.e. -> to .) throughout.
259 (PickPackageLine::paint): Use accessible() for clarity.
260 Use new split out source package logic.
261 (PickPackageLine::click): Ditto.
262 * PickView.cc (PickView::init_headers): Adjust packageversion accessors
263 to the new reference calls. (i.e. -> to .) throughout.
264 Use new split out source package logic.
265 * choose.cc: Don't depend on a specific package type.
266 Adjust packageversion accessors to the new reference calls. (i.e. -> to
268 (set_existence): Use accessible () for clarity.
269 (default_trust): Simplify a little.
270 (scanAVersion): Factored out code from scan_downloaded_files for
272 (scan_downloaded_files): Factor out inner loop for clarity.
273 (ChooserPage::OnNext): Don't dump the dependency list,
274 it's parsing is robust now!.
275 * cygpackage.cc (createInstance): Use a factory method to create new
277 (cygpackage::cygpackage): Make this private for use by the factory.
278 (cygpackage::setCanonicalVersion): Renamed from set_canonical_version.
279 Remove key usage as it's obsolete.
280 * cygpackage.h (cygpackage): Inherit from _packageversion, not
282 (cygpackage::createInstance): New factory.
283 (cygpackage::cygpackage): Make private.
284 * desktop.cc (make_passwd_group): Use new packageversion reference.
285 * download.cc (do_download_thread): Use changeRequested() for clarity.
286 Use new packageversion reference calls.
287 * iniparse.y (REQUIRES): Reuse the packageList code and dump the one-off
289 * install.cc: Adjust -> to ., and use the new accessor functions for
290 packageversion throughout.
291 * package_db.cc: Adjust -> to ., and use the new accessor functions for
292 packageversion throughout.
293 (packagedb::packagedb): Use the new cygpackage factory.
294 (packagedb::flush): Leverage String to remove buffer overflow chance in
296 (packagedb::findBinary): Find a binary meta package that has a version
297 matching a given specification.
298 (packagedb::findSource): Ditto, but for source.
299 * package_db.h (packagedb::findBinary): Declare.
300 (packagedb::findSource): Ditto.
301 * package_meta.cc: Adjust packageversion accessors to the new
302 reference calls. (i.e. -> to .) throughout.
303 Include the package_meta header first to ensure it parses standalone.
304 Use the STL algorithms.
305 (packagemeta::packagemeta): Create a copy constructor to allowing
306 cloning binary package metadata to source package metadata.
307 (packagemeta::~packagemeta): Use the STL coleltion code rather than
308 custom collection code.
309 (packagemeta::add_version): Ditto.
310 (packagemeta::set_installed): Ditto.
311 (packagemeta::SDesc): Ditto.
312 (hasSDesc): Helper function for find_if.
313 (checkForInstalled): Ditto.
314 (checkForUpgradeable): Ditto.
315 (checkForSatisfiable): Ditto.
316 (packagemeta::action_caption): Update for split out source packages.
317 (packagemeta::set_action): Ditto.
318 (packagemeta::set_requirements): Support multi-valued dependency
319 lists - a|b & c|d - with versioned package specifications.
320 (packagemeta::accessible): Helper member to improve abstraction.
321 (packagemeta::sourceAccessible): Ditto.
322 * package_meta.h: Adjust packageversion accessors to the new
323 reference calls. (i.e. "->" to "." and"*" to "" ) throughout.
324 (packagemeta::packagemeta): Declare copy constructor.
325 Remove self initialising members.
326 (packagemeta::set_action): Update parameters for new packageversion.
327 (packagemeta::trustp): Ditto.
328 (packagemeta::versions): Becomes an STL set.
329 * package_source.h (packagesource::Cached): Const correctness change.
330 * package_version.cc: Rewrite the packageversion interface to remove
331 the cygpackage nonvirtual members, and provide a copy by value,
332 pointer semantics reference counting wrapper class to ease use and
333 comparison of packageversions.
334 Change existing packageversion class to _packageversion throughout.
335 (_defaultversion): A trivial concrete class to prevent specialcasing
336 the default constructor for packageversion;
337 (packageversion::packageversion): Implement.
338 (packageversion::~packageversion): Ditto.
339 (packageversion::operator=): Ditto.
340 (packageversion::operator !): Ditto.
341 (packageversion::operator bool): Ditto.
342 (packageversion::operator ==): Ditto.
343 (packageversion::operator !=): Ditto.
344 (packageversion::operator <): Ditto.
345 (packageversion::Name): Ditto.
346 (packageversion::Canonical_version): Ditto.
347 (packageversion::setCanonicalVersion): Ditto.
348 (packageversion::getfirstfile): Ditto.
349 (packageversion::getnextfile): Ditto.
350 (packageversion::SDesc): Ditto.
351 (packageversion::set_sdesc): Ditto.
352 (packageversion::LDesc): Ditto.
353 (packageversion::set_ldesc): Ditto.
354 (packageversion::sourcePackage): Ditto.
355 (packageversion::sourcePackageSpecification): Ditto.
356 (packageversion::setSourcePackageSpecification): Ditto.
357 (packageversion::depends): Ditto.
358 (packageversion::predepends): Ditto.
359 (packageversion::recommends): Ditto.
360 (packageversion::suggests): Ditto.
361 (packageversion::replaces): Ditto.
362 (packageversion::conflicts): Ditto.
363 (packageversion::provides): Ditto.
364 (packageversion::picked): Ditto.
365 (packageversion::pick): Ditto.
366 (packageversion::changeRequested): Ditto.
367 (packageversion::uninstall): Ditto.
368 (packageversion::source): Ditto.
369 (packageversion::accessible): Ditto.
370 (_packageversion::sourcePackage): Ditto.
371 (_packageversion::accessible): Ditto.
372 (_packageversion::changeRequested): Ditto.
373 * package_version.h: Rewrite the packageversion interface to remove
374 the cygpackage nonvirtual members, and provide a copy by value,
375 pointer semantics reference counting wrapper class to ease use and
376 comparison of packageversions.
377 Change existing packageversion class to _packageversion throughout.
378 (Dependency): Remove.
379 (packageversion): New wrapper class.
380 (_packageversion): Renamed from packageversion.
381 (_packageversion::setCanonicalVersion): New method.
382 (_packageversion::sourcePackage): Ditto.
383 (_packageversion::sourcePackageSpecification): Ditto.
384 (_packageversion::setSourcePackageSpecification): Ditto.
385 (_packageversion::changeRequested): Ditto.
386 (_packageversion::bin): Rename to source.
387 (_packageversion::src): Remove.
388 (_packageversion::accessible): New method.
389 (_packageversion::references): Allow reference counting.
390 (_packageversion::sourceVersion): Cached the best-match source
393 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
395 * compress_bz.h (compress_bz::position): Track how much has been read.
396 * compress_bz.cc (compress_bz::compress_bz): And initialise it.
397 (compress_bz::read): Track amount read by the client.
398 (compress_bz::tell): And report it when asked.
400 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
402 * Makefile.am (snapshot): Automate snapshot creation some more.
404 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
406 * msg.cc (msg): Use vsnprintf to avoid buffer overflows.
408 * ini.cc (fprintf): Ditto.
409 * log.cc (log): Ditto.
410 * package_db.cc (packagedb::sourcePackages): Split out source packages
411 from binary packages.
412 * package_db.h: Ditto.
414 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
416 * PackageSpecification.h: New file. Abstracts the ability to refer
417 to another package, by name, or name and version.
418 * PackageSpecification.cc: Ditto.
419 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Simplify.
420 (IniDBBuilder::buildPackageSource): Ditto.
421 (IniDBBuilder::buildBeginDepends): New method for versioned
423 (IniDBBuilder::buildBeginPreDepends): Likewise, for dependencies to be
424 satisfied before pre-install.
425 (IniDBBuilder::buildPriority): New method, for getting the package
427 (IniDBBuilder::buildInstalledSize): How much disk space does it need?
428 (IniDBBuilder::buildMaintainer): Who maintains the package?
429 (IniDBBuilder::buildArchitecture): What platform is it for?
430 (IniDBBuilder::buildInstallSize): How big is the binary download?
431 (IniDBBuilder::buildInstallMD5): Whats the MD5 on the binary?
432 (IniDBBuilder::buildSourceMD5): Whats the MD5 on the source package?
433 (IniDBBuilder::buildBeginRecommends): What other packages are
434 recommended with this one?
435 (IniDBBuilder::buildBeginSuggests): And suggested?
436 (IniDBBuilder::buildBeginReplaces): What packages does this replace?
437 (IniDBBuilder::buildBeginConflicts): And collide with?
438 (IniDBBuilder::buildBeginProvides): What virtual packages (or obsolete
439 package names) does this provide?
440 (IniDBBuilder::buildDescription): Grab a multi line description one
442 (IniDBBuilder::buildSourceName): What source package should be used to
443 install the source for this binary package?
444 (IniDBBuilder::buildSourceNameVersion): Is a specific version needed?
445 (IniDBBuilder::buildPackageListAndNode): Add another AND clause to a
446 list of package specifications.
447 (IniDBBuilder::buildPackageListOrNode): Add another OR clause.
448 (IniDBBuilder::buildPackageListOperator): Add a versioning operator
449 to the current specification.
450 (IniDBBuilder::buildPackageListOperatorVersion): What version does the
452 * IniDBBuilder.h: Declare all the IniDBBuilder.cc changes.
453 * IniDBBuilderPackage.cc: As for IniDBBuilder.cc.
454 (IniDBBuilderPackage::IniDBBuilderPackage): Iniitialize new members.
455 (IniDBBuilderPackage::process_src): Streamline and split out
457 (IniDBBuilderPackage::setSourceSize): From process_src.
458 * IniDBBuilderPackage.h: Declare the IniDBBuilderPackage.cc changes.
459 (IniDBBuilderPackage::currentSpec): Track the in-progress specifiation.
460 (IniDBBuilderPackage::currentOrList): Track the current Or list.
461 (IniDBBuilderPackage::currentAndList): Track the current And list.
462 * IniParseFeedback.cc (IniParseFeedback::progress): Provide completion
464 (IniParseFeedback::iniName): Tell what ini filename we are currently
466 * IniParseFeedback.h: Declare IniParseFeedback.cc changes.
467 * IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor):
468 Make the feedback object non-const to allow mutating methods which are
469 needed when the object has state.
470 (IniParseFindVisitor::visitFile): Tell the caller the name of each
472 Initialise the parser with the feedback object to allow it to tell of
474 * IniParseFindVisitor.h: Declare IniParseFindVisitor.cc changes.
475 * Makefile.am (inilinst_SOURCES): Add more requisite classes.
476 (setup_SOURCES): Add the new PackageSpecification sources.
477 * ScanFindVisitor.cc (ScanFindVisitor::visitFile): Use the new
478 builder syntax to setup binary package details.
479 * choose.cc: Use the LogSingleton calls throughout.
480 * configure.in: Create the INILINT substitution correctly for recent
481 autotool configurations.
482 * cygpackage.cc (cygpackage::getfirstfile): Return an empty String
483 rather than a string built from an int. Thanks to Pavel Tsekov for
485 (cygpackage::getnextfile): Ditto.
486 * download.cc: Use LogSIngletion calls throughout.
487 (validateCachedPackage): A refactoring of the
488 check_for_cached code to eliminate duplciation.
489 (check_for_cached): Use validateCachedPackage to check packages.
490 * ini.cc (GuiParseFeedback): Provide gui feedback on ini name and
492 (do_remote_ini): Ditto.
493 * ini.h (ini_init): Pass a IniParseFeedback to the parser, to allow
495 * inilex.l: Identify new symbols - operators, and multi line plain text.
497 * inilintmain.cc (show_help): Provide basic infomation on inilint.
498 * iniparse.y: Adjust for the new builder syntax, and process debian
500 * io_stream_file.cc: Always include mkdir.h.
501 * list.h: Factor index location into a private routine.
502 (list::findindex): Implement this.
503 * mkdir.cc (mkdir_p): Make the use of WIN32 code conditional on mingw
504 builds. NB: This breaks cygwin build functionality still.
505 * package_meta.cc: Use the LogSingleton calls throughout.
506 (packagemeta::set_requirements): Adjust for object changes in
508 * package_meta.h (packagemeta::packagemeta): Initialise new members.
509 (packagemeta::architecture): What platform does this package run on?
510 This may need to move in the future to a per packagefile object.
511 (packagemeta::priority): What priority does this package have?
512 * package_source.h (packagesource::packagesource): Initialise new
514 (packagesource::installedSize): How much space does the package need?
515 (packagesource::setInstalledSize): Tell the amount.
516 (packagesource::_installedSize): And store it.
517 * package_version.cc (packageversion::sourcePackage): return the
519 (packageversion::setSourcePackage): And set it.
520 * package_version.h: Declare the package_version.cc changes.
521 (packageversion::depends): New package specification AND list.
522 (packageversion::predepends): Ditto.
523 (packageversion::recommends): Ditto.
524 (packageversion::suggests): Ditto.
525 (packageversion::replaces): Ditto.
526 (packageversion::conflicts): Ditto.
527 (packageversion::provides): Ditto.
528 (packageversion::sourcePackage): What source package is needed?
529 * threebar.cc (ThreeBarProgressPage::SetText4): Set the label beside
531 * threebar.h: Declare the threebar.cc change.
533 2002-06-27 John Marshall <johnm@falch.net>
535 * res.rc (SETUPINI_MISSING): Make trailing spaces visible.
536 * site.cc (SitePage::OnMessageCmd): Ditto
538 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
540 * nio-ie5.cc (NetIO_IE5::NetIO_IE): Allow cached data.
542 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
544 * package_meta.cc (packagemeta::set_action): When installing packages
545 with no binaries, choose the source package.
547 2002-06-10 Robert Collins <rbtcollins@hotmail.com>
549 * IniParseFindVisitor (IniParseFindVisitor::visitFile): Apply Max
550 Bowshers fix for the crash with a root level setup.ini.
551 * README: Update todos.
553 2002-05-26 Ralf Habacker <ralf.habacker@freenet.de>
555 * archive_tar.cc (archive_tar::next_file_name()): fixed broken
556 GNU long name extension support.
558 2002-05-27 Robert Collins <rbtcollins@hotmail.com>
560 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Don't
561 unescape 0 length strings.
563 2002-05-20 Robert Collins <rbtcollins@hotmail.com>
565 * package_meta.cc (packagemeta::set_action): Don't allow reinstall
566 when local with no cached file, and install the default source if the
567 default version has no binary.
569 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
571 * IniDBBuilderPackage.cc (IniDBBuilderPackage::IniDBBuilderPackage): New
573 (IniDBBuilderPackage::buildVersion): Provide a warning when a newer
574 setup version created the ini file.
575 * IniDBBuilderPackage.h (IniDBBuilderPackage::IniDBBuilderPackage): New
577 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use the new
579 * IniParseFindVisitor.h (IniParseFindVisitor::IniParseFindVisitor):
580 Require a feedback strategy.
581 * Makefile.am (setup_SOURCES): Add IniParseFeedback sources.
582 * Makefile.in: Regenerate.
584 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
586 * io_stream_file.cc (io_stream_file::remove): Use the SetFileAttributes
587 trick to delete read only files.
588 * io_stream_cygfile.cc (io_stream_cygfile::remove): Use file:// to
590 * Makefile.am (release): Tweak to be more helpful.
591 * Makefile.in: Regenerate.
593 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
595 * Makefile.am (release): Tweak to be more helpful.
596 * Makefile.in: Regenerate.
598 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
600 * Makefile.am (release): Tweak to be more helpful.
601 * Makefile.in: Regenerate.
603 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
605 * choose.cc (scan_downloaded_files): When a non-installed version
606 has neither bin nor src cached files for local installs,
607 remove the version from availability.
609 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
611 * ini.cc (do_remote_ini): Save uncompressed ini's correctly.
613 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
615 * rsync: New support library, contains librsync. This is not (yet)
617 * configure.in: --with-rsync to enable rsync support. (Not complete).
618 * Makefile.am: Enable building with rsync.
619 * Makefile.in: Regenerate.
621 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Pass the md5 as
623 (IniDBBuilder::buildPackageSource): Ditto.
624 * IniDBBuilder.h: Ditto.
625 * IniDBBuilderPackage.cc: Ditto.
626 * IniDBBuilderPackage.h: Ditto.
627 * FindVisitor.cc: New file.
628 * FindVisitor.h: New file, interface for visiting a file system
630 * IniParseFindVisitor.cc: New file.
631 * IniParseFindVisitor.h: New file, concrete FindVisitor that parses
633 * README: Update TODO's.
634 * String++.cc (String::String): New constructor for <string> inter-
636 (String::substr): New method.
638 * choose.cc (scan2): Remove.
639 (scan_downloaded_files): Simplify.
640 * dialog.h: Include parsing pre-requirements.
641 * download.cc (check_for_cached): Fullname was used incorrectly - fix.
642 * filemanip.cc (parse_filename): -src packages where incorrectly parsed.
643 * find.cc: Rewrite. Now uses a Visitor pattern and is re-entrant.
645 * fromcwd.cc: Remove unneeded includes.
646 (is_test_version): Remove.
647 (found_file): Remove.
648 (SetupFindVisitor): Trivial visitor to detect setup.ini's.
650 (do_fromcwd): Remove commented code that has be replaced elsewhere.
651 * ini.cc (local_ini): Remove.
652 (findBuilder): Remove.
653 (find_routine): Remove.
654 (do_local_ini): Use new IniParseFindVisitor.
655 * iniparse.y: Typecase MD5 arrays, as we know they are allocated as
657 * postinstall.cc: Remove non-core includes.
658 (run_script_in_postinstall): Remove.
659 (RunFindVisitor): Trivial Visitor, runs each found script.
660 (do_postinstall): Use new find syntax.
662 2002-05-14 Christopher Faylor <cgf@redhat.com>
664 * ini.cc (find_routine): Don't clear buffer it it's NULL.
666 2002-05-14 Christopher Faylor <cgf@redhat.com>
668 * filemanip.h (trail): Declare.
669 * filemanip.cc (trail): New function.
670 (find_tar_ext): Use trail() instead of strstr().
671 * fromcwd.cc (check_ini): Ditto.
672 * ini.cc (find_routine): Ditto. Don't tack local_dir to path since it
673 should now be fully qualified. Set ini_filename. Reset error_buf and
674 error_count for any subsequent ini file parsing.
675 (ini_filename): New static variable for parse error reporting.
676 (yyerror): Use full path of setup.ini in error message. Subtract one
677 from line number if at bol.
678 * find.cc (found_part): Eliminate.
679 (find_sub): Call for_each with full path found rather than just file
681 (find): Don't calculate found_part.
682 * inilex.l (ini_init): Flush input buffer and reset line number.
683 (yybol): New function. Exports YY_AT_BOL.
684 * iniparse.y: Increase stack depth to allow more tokens to be processed.
685 (yyparse): Remove newline from error condition to allow subsequent
686 per-line error processing to proceed normally.
688 2002-05-14 Christopher Faylor <cgf@redhat.com>
690 * find.cc (find_sub): Be more defensive in preserving trailing parts of
691 components when doing recursive directory searches or calling user
693 * ini.cc (find_routine): Don't assume that any path name with
694 "setup.ini" in it is actually a setup.ini file. Only honor trailing
695 components. Copy path argument to temporary storage when unescaping
696 to prevent nuking of argument.
698 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
700 * CONTRIBUTORS: New file.
702 2002-04-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
704 * choose.cc: Run indent.
705 (nextbutton): Remove static variable.
706 (default_trust): Remove use of nextbutton.
707 (set_view_mode): Ditto.
708 (create_listview): Add IDC_CHOOSE_PREV and IDC_CHOOSE_NEXT to ta[] so
709 rbset() sets the prev/next/curr radio buttons properly.
710 (dialog_cmd): Delete function.
711 (dialog_proc): Delete function. Move WM_INITDIALOG functionality to
713 (do_choose): Delete function. Move pre-DialogBox() code to
714 ChooserPage::OnInit(), post-DialogBox() code to ChooserPage::OnNext.
715 (WM_APP_START_CHOOSE): Remove define.
716 (WM_APP_CHOOSE_IS_FINISHED): Remove define.
717 (do_choose_thread): Delete function.
718 (ChooserPage::OnActivate): Delete method.
719 (ChooserPage::OnMessageApp): Delete method.
720 (ChooserPage::OnInit): New method.
721 (ChooserPage::OnNext): New method.
722 (ChooserPage::OnBack): New method.
723 (ChooserPage::OnMessageCmd): New method.
724 * choose.h: Run indent.
725 (ChooserPage::OnMessageApp): Delete declaration.
726 (ChooserPage::OnActivate): Ditto.
727 (ChooserPage::OnMessageCmd): New declaration.
728 (ChooserPage::OnInit): Ditto.
729 (ChooserPage::OnNext): Ditto.
730 (ChooserPage::OnBack): Ditto.
731 * desktop.cc (DesktopSetupPage::OnBack): Replace use of IDD_CHOOSER
733 * fromcwd.cc (do_fromcwd): Replace use of IDD_CHOOSER with IDD_CHOOSE.
734 * ini.cc (do_ini_thread): Replace use of IDD_CHOOSER with IDD_CHOOSE.
735 * res.rc (IDD_CHOOSE): Remove dialog template.
736 (IDD_CHOOSER): Alter dialog template to fit wizard size and format.
738 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
740 * LogFile.cc (endLog): Work around an apparent libg++-3 bug causing
741 corrupt log file entries.
742 * geturl.cc: Convert to the new LogSingleton logging.
744 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
746 * ini.cc (do_remote_ini): Use setup.bz2 if it exists in preference to
749 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
751 * geturl.h: Declare getUrlToStream.
752 * geturl.cc (getUrlToStream): New function.
753 (get_url_to_membuf): Refactor to use getUrlToStream.
755 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
757 * Makefile.am: Add a release target to automate some of the routine
759 * Makefile.in: Regenerate.
761 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
763 * choose.cc (scan_downloaded_files): On local installs remove all
764 mirror sites if no cached copy of a package is found.
766 2002-05-10 Robert Collins <rbtcollins@hotmail.com>
768 * Makefile.in: Regenerate.
769 * iniparse.y: Use left recursion, not right in the lines rule to
770 avoid stack overflows.
771 * README: Update TODO's.
772 * io_stream_file.cc: Native builds need to include sys/stat.h
774 2002-05-06 John Marshall <jmarshall@acm.org>
776 * site.cc (SitePage::OnMessageCmd): recalculate navigation
777 button activation when "Add" is pressed.
778 (SitePage::CheckControlsAndDisableAccordingly): tweak comment.
780 2002-05-07 Robert Collins <rbtcollins@hotmail.com>
782 * Makefile.am (inlint_SOURCES): Add conditional objects to inilint
783 depending on platform.
785 * configure.in: Set conditional MINGWTARGET if compiling against mingw
787 * Makefile.in: Regenerate.
789 * io_stream_file.cc: Only use win32 calls when building for mingw.
791 2002-05-05 Robert Collins <rbtcollins@hotmail.com>
793 * Makefile.am (noinst_PROGRAMS): Make inilint configurable.
794 * configure.in: Ditto.
795 Fix incorrect header checking syntax.
796 * aclocal.m4: Regenerate.
797 * configure: Regenerate.
798 * Makefile.in: Regenerate.
799 * io_stream.cc: Remove platform specific and provider specific code.
800 (io_stream::registerProvider): New method, registers a Url provider with
802 Make all methods consistently throw invalid_argument exceptions when
803 a provider that is requested is not present.
804 (findProvider): New private function, finds a provider.
805 * io_stream.h: Declare io_stream::registerProvider.
806 * io_stream_cygfile.cc: Create a Provider class to register with
808 * io_stream_file.cc: Ditto.
809 * archive.cc: Remove unneeded includes.
810 * archive_tar.cc: Remove unneeded includes.
811 * archive_tar.h: Add required include.
812 * archive_tar_file.cc: Remove unneded includes.
813 * choose.cc: Remove unneeded includes:
815 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
817 * io_stream.cc: Use the new log interface thruout.
819 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
821 * log.cc (log): Reimplement via LogSingleton.
823 (exit_setup): Remove.
824 * log.h (log_save): Remove.
825 (exit_setup): Remove.
826 * LogSingleton.cc: New file.
827 * LogSingleton.h: New file.
828 * LogFile.cc: New file.
829 * LogFile.h: New file.
830 * Makefile.am (inilint_SOURCES): Add the new log interface.
831 (setup_SOURCES): Add the new log interface and the concrete File
833 * Makefile.in: Regenerate.
834 * archive.cc: Use the new log interface thruout.
835 * archive_tar.cc: Ditto.
837 * dialog.cc (fatal): Use the new log interface.
838 * ini.cc (do_ini_thread): Use the log interface to exit.
839 * isntall.cc (do_install_thread): Ditto.
840 * netio.cc (auth_cmd): Ditto.
841 * msg.cc (fatal): Ditto.
842 * localdir.cc (save_local_dir): Save to different files depending on
843 the mode, and if a root dir exists.
845 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
847 * IniDBBuilder.cc: New file.
848 * IniDBBuilder.h: New file.
849 * IniDBBuilderPackage.cc: New file.
850 * IniDBBuilderPackage.h: New file.
851 * PackageTrust.h: New file.
852 * IniState.h: Remove, wasn't thought out well enough.
853 * Makefile.am (inilint_SOURCES): Add more requirements.
854 (setup_SOURCES): Add new Builder base and concrete classes.
855 * Makefile.in: Regenerate.
856 * String++.cc (String::String): Implement int contructor.
857 * String++.h (String): Declare int constructor.
858 * archive_tar.cc (archive_tar::next_file_name): Return String() when
860 * archive_tar.h (archive_tar_file): Remove get_next_filename method,
862 * ini.cc: Replace IniState wuth IniDBBuilderPacakge.
863 (find_routine): Use new IniDBBuilder to configure the parser.
864 (do_local_ini): Ditto.
865 (do_remote_ini): Ditto.
866 * ini.h: Use IniDBBuilder to initialise parsing.
867 * inilex.l (MD5): Parse the MD5 string correctly, we had the nibbles
869 (ini_init): Use an IniDBBuilder rather than static variables.
870 * iniparse.y: Hand off all the object creation to a builder, rather
871 than hardcoding the behaviour. This allows run-time configured
873 * io_stream_cygfile.h (io_stream_cygfile): Remove get_next_filename
874 method, it's not needed.
875 * io_stream_file.h (io_stream_file): Ditto.
876 * mount.cc (cygpath): Return String() for missing mounts.
877 * package_meta.cc (packagemeta::SDesc): Return String() for blank
879 * package_meta.h (trusts): Remove - replaced by PackageTrust.h.
880 (packagemeta::packagemeta): Fix incorrect syntax in String constructor
882 * cygpackage.cc (cygpackage::cygpackage): Fix incorrect syntax in
883 String constructor usage.
884 * site.h (site_list_type): Ditto.
886 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
888 * String++.h: Declare a << operator that accepts String objects.
889 * String++.cc: We need iostream for..
890 (operator <<): this. Provide a << operator that accepts String objects.
891 * ini.cc (yyerror): Remove the "C" classifier - it's not needed.
892 Change from vargs to a String parameter.
893 * inilintmail.cc: Remove the gui related headers.
894 (yyerror): Implement this for parsing.
895 * iniparse.y: Use the new yyerror syntax.
897 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
899 * Makefile.am: Add IniState.h.
900 * Makefile.in: Regenerate.
901 * IniState.h: New file.
902 * choose.cc: Don't include ini.h - it's not needed.
903 * configure: Regenerate.
904 * desktop.cc: Don't include ini.h - it's not needed.
905 * download.cc: Ditto.
907 * ini.cc: Use IniState.h to track each parsing calling.
908 (find_routine): Ditto.
909 (do_remote_ini): Ditto.
910 (do_ini_thread): Ditto.
911 * ini.h (ini_init): Adjust parameters to include state object.
912 * inilex.l: Declare parser state variable.
913 (ini_init): Adjust parameters to include state object.
914 * iniparse.y: Remove obsolete setup_timestamp and setup_version
916 (setup_header): Use new state variable to track time and version.
917 (add_correct_version): Ditto.
918 * install.cc: Don't include ini.h - it's not needed.
920 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
922 * nio-files.cc (NetIO): Use io_stream syntax for get_file_size.
923 * io_stream_file.cc: Don't include filemanip.h.
924 (io_stream_file::get_size): Implement here to remove filemanip
926 * io_stream_cygfile.cc: Don't include filemanip.h.
927 (io_stream_cygfile::get_size): Implement here to remove filemanip
929 Implement a stat based version for when win32 is not available.
930 * filemanip.h (get_file_size): Return size_t - it's more appropriate.
931 * filemanip.cc: Don't include win32.h - be platform independent.
932 Include strings.h and io_stream.h as part of that.
933 (get_file_size): Leverage io_streams and remove win32 implementation.
934 * download.cc (check_for_cached): Use io_stream syntax for
936 (download_one): Ditto.
938 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
940 * configure.in: Correct a typo in last change.
941 * configure: Regenerate.
942 * Makefile.in: Regenerate.
944 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
946 * configure.in: Check for string.h and string.
947 * configure: Regenerate.
948 * Makefile.in: Regenerate.
950 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
952 * res.rc (IDD_SPLASH): Remove white box.
954 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
956 Oops! forgot to list these in the last checkin.
957 * inilintmain.cc: New file.
958 * md5.h: New file - imported md5 source, BSD style licence.
959 * md5.cc: New file - imported md5 source, BSD style licence.
960 * Exception.cc: New file.
961 * Exception.h: New file.
962 * MD5++.cc: New file.
965 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
967 * Makefile.am (AM_CFLAGS): Remove -mwindows, it's a linker flag.
968 Remove -fno-rtti, we need it for exceptions.
969 (AM_CXXFLAGS): Ditto.
970 (WARNONLY_CFLAGS): Ditto.
971 (EXTRA_PROGRAMS): Add with initial linter sources - not functional yet.
972 (setup_LDFLAGS): Add and set to -mwindows.
973 (setup_SOURCES): Add new sources.
974 * Makefile.in: Regenerate.
975 * README: Update TODO.
976 * choose.cc (scan_downloaded_files): Use ini information if it's
978 * configure: Regenerate.
979 * download.cc (check_for_cached): Make reusable from elsewhere.
980 Throw exceptions on errors (as opposed to failures).
981 Check MD5 sum when it's known.
982 (download_one): Never force a download.
983 Handle corrupt package exceptions.
984 * ini.cc (find_routine): Reverse escape the URL to correctly identify
986 * inilex.l (MD5): Provide a parsing rule (note: lowercase is required).
987 * iniparse.y: Allow calculation of MD5 sums, and allow src only
989 (process_src): New helper function.
990 * isntall.cc (install_one_source): Check MD5 sums when possible.
991 Throw exceptions on errors.
992 (do_install_thread): Handle exceptions for installation calls.
993 * package_source.h: Store MD5 information.
994 * propsheet.cc (PropSheet::Create): Add a useful comment.
995 * res.rc (IDS_INSTALL_ERROR): Define.
996 (IDS_CORRUPT_PACKAGE): Define.
997 * resource.h (IDS_INSTALL_ERROR): Define.
998 (IDS_CORRUPT_PACKAGE): Define.
999 * rfc1738.cc (rfc1738_unescape_part): Implement.
1000 * rfc1738.h (rfc1738_unescape_part): Declare.
1002 2002-04-29 Robert Collins <rbtcollins@hotmail.com>
1004 * Makefile.am: Remove dependecy rules that automake emits.
1005 Correct badly copied dependency info for manually compiled files.
1006 (setup_SOURCES): Add all used headers.
1007 (EXTRA_DIST): Include non compilate but required sources.
1008 (setup_LDADD): Remove mingw32, it is autodetected.
1009 * Makefile.in: Regenerate.
1010 * String++.h: sys/types is a system header.
1011 * choose.cc (do_choose_thread): Make into a Win32 thread routine.
1013 (ChooserPage::OnMessageApp): Use Win32 threads. (_beginthread is not
1015 * configure: Regenerate.
1016 * configure.in: Check for mingw32/cygwin specific headers and libraries.
1017 * cygpackage.h: Include the win32.h header to get correct macro
1018 definitions in all situations.
1019 * download.cc (do_download_reflector): Make into a Win32 thread routine.
1021 (do_download): Use Win32 threads.
1023 * install.cc: Ditto.
1024 * (WinMain): Adjust to build valid command line using application
1025 under both mingw32 and cygwin.
1026 * mount.cc (set)cygdrive_flags): Create new system flags if the
1027 user requests system and the value does not exist.
1028 * nio-http.cc: Define a _strnicmp for cygwin.
1029 * package_db.cc: Include <errno.h> if it exists.
1030 * site.cc (do_download_site_info_thread): Make into a Win32 thread
1033 (do_download_site-Info): Use Win32 threads.
1034 * state.cc: Explicity declare variables to avoid header conflicts
1035 caused by '#define extern" on cygwin.
1036 * win32.h: Include <alloca.h> if it exists.
1037 (_MAX_PATH): Define as MAX_PATH when not defined by windows.h.
1038 (_access): Define as access if not defined by windows.h.
1040 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
1042 * compress_gz.cc (compress_gz::error): EOF is not an error condition.
1044 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
1046 * Makefile.am: Add libgetopt++ to the subdirs list.
1047 Search the libgetopt++ header directory.
1048 Link against libgetopt++.la.
1049 (setup_SOURCES): Remove GetOption.cc and getopt.c and Option.cc.
1050 (setup_LDADD): Explicitly include res.o.
1051 * Makefile.in: Regenerate.
1052 * aclocal.m4: Regenerate.
1053 * bootstrap.sh: Call libtoolize.
1054 * configure: Regenerate.
1055 * configure.in: Add libtool support and configure libgetopt++.
1056 * desktop.cc (NoShortcutsOption): Turn into a BoolOption.
1057 (DesktopSetupPage::OnInit): Use the simpler syntax.
1058 * desktop.h: Remove dependency on Option.h, and remove NoShortcustOption
1060 * main.cc: Include getopt++/GetOption.h.
1061 (main): Use simpler syntax.
1065 * GetOption.h: Remove.
1066 * GetOption.cc: Remove.
1068 * Option.cc: Remove.
1070 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1072 * Makefile.am: Add zlib and bz2lib to SUBDIRS.
1074 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1076 * aclocal.m4: New file, cached macros.
1077 * bootstrap.sh: New file, calls required autotools in appropriate
1079 * Makefile.am: New file, input Makefile for automake.
1080 * Makefile,in: Now a generated file - regenerate.
1081 * configure: Regenerate.
1082 * configure.in: Add automake support.
1083 * inilex.l: Change VERSION to PACKAGEVERSION to avoid a collision with
1084 automake's VERSION define.
1085 * iniparse.y: Ditto.
1087 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1089 * cdefs.h: New file, imported to allow getopt.c to build without
1091 * getopt.h: New file, imported to allow building without cygwin headers.
1093 * bz2lib: New directory, contains copy of bz2lib.
1094 * cfgaux: New directory, contains autotool helper scripts.
1095 * Makefile,in: Adjust library and target definitions for building
1096 outside the sourceware tree.
1097 * compress_bz.h: Use new bz2lib header location.
1098 * mount.cc: Import key defines and enums to be independent of cygwin
1100 * configure.in: Update to autoconf 2.53, and to be sourceware
1102 * configure: Regenerate.
1104 2002-04-12 Robert Collins <rbtcollins@hotmail.com>
1106 * mklink2.cc (make_link_2): Tweak to work with current w32api
1109 2002-04-10 Pavel Tsekov <ptsekov@gmx.net>
1111 * version.cc (canonicalize_version): Fix a call delete[]
1112 to delete the allocated address.
1114 2002-03-29 Robert Collins <rbtcollins@hotmail.com>
1116 * PickView.cc (PickView::set_headers): Set last_col correctly. Thanks
1117 to Ton van Overbeek for locating the bug area.
1119 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
1121 * PickView.cc (PickView::insert_pkg): Be more generic with
1123 (PickView::insert_category): Ditto.
1124 (PickView::~PickView): Create.
1125 * PickView.h (PickView::~PickView): Declare.
1127 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
1129 * Makefile.in (OBJS): Add new commandline objects.
1130 * desktop.cc (NoShortCutsOption): New option code.
1131 (DesktopSetupPage::OnInit): Check whether to skip shortcuts.
1132 * desktop.h (NoShortCutsOption): New concrete command line option class.
1133 * main.cc (WinMain): Process command line options.
1134 * GetOption.h: New file, singleton command line class.
1135 * GetOption.cc: New file, implementation of the above.
1136 * Option.h : New file, abstract option for GetOption.
1137 * Option.cc: New file, implement constructor and destructor.
1139 2002-03-26 Pavel Tsekov <ptsekov@gmx.net>
1141 * mkdir.cc (mkdir_p): Stop processing if the path is exhausted.
1143 2002-03-26 Ton van Overbeek <tvoverbe@cistron.nl>
1145 * PickPackageLine.cc (PickPackageline::paint): Adjust clipping rectangle
1146 to textheight, so large fonts work.
1148 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1150 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Don't translate
1153 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1155 * io_stream_cygfile.cc (cwd): New static for cwd storage.
1156 (io_stream_cygfile::normalise): New method.
1157 (io_stream_cygfile::io_stream_cygfile): Use it.
1158 (io_stream_cygfile::exists): Ditto.
1159 (io_stream_cygfile::remove): Ditto.
1160 (io_stream_cygfile::mklink): And again.
1161 (cygmkdir_p): Yes, again.
1162 (io_stream_cygfile::move): And once more.
1163 * io_stream_cygfile.h (io_stream_cygfile::normalise): Declare.
1164 (io_stream_cygfile::cwd): Ditto.
1166 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1168 * package_meta.cc (package_meta::~package_meta): Remove duplicate.
1169 (CategoryPackage::~CategoryPackage): Ditto. (Thanks to Ton van
1170 Overbeek for the report).
1171 * mklink2.cc: Moved from mklink2.c to avoid 'not a prototype error'.
1172 Make g++ compatible.
1173 * mklink2.c: Remove.
1174 * site.cc (site_list_type::init): Delete the correct memory addres.
1175 Thanks to Pavel Tsekov for tracking this down.
1177 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
1179 * win32.h: Only define alloca if it's not already.
1181 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
1183 * package_meta.h (packamgemeta::trustp): Make 'test' choice leave installed
1185 * README: Update with latest requests.
1186 * Various: MTC fixes from setup200202 branch.
1188 2002-03-19 Christopher Faylor <cgf@redhat.com>
1190 * Makefile.in (setup_version.c): Add back magic which allows detection
1191 of setup.exe version number.
1193 2002-03-17 Robert Collins <rbtcollins@hotmail.com>
1195 * * PickPackageLine.cc (PickPackageLine::paint): Fix incorrect clip region
1196 calculation on win9x systems.
1198 2002-03-16 Robert Collins <rbtcollins@hotmail.com>
1200 * install.cc (install_one_source): Write the correct length of a string to the
1201 lst file (Thanks to Pavel Tsekov for reporting the bug).
1203 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1205 * choose.cc (list_click): Always refresh the entire chooser, as our
1206 package state change mechanism is broken with the new improved list classes.
1208 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1210 * desktop.cc (make_passwd_group): Check for .lnk suffix on /etc/passwd and
1213 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1215 * PickPackageLine.cc (PickPackageLine::DrawCheck): New method factored out from
1217 (PickPackageLine::paint): Use DrawCheck to draw the src tick box, and the new
1219 (PickPackageLine::click): Handle the new bin tickbox.
1220 * PickPackageLine.h (PickPackageLine::DrawCheck): Declare this.
1221 * PickView.cc (pkg_headers): Add a Bin? column.
1222 (cat_headers): Ditto.
1223 (PickView::set_headers): Ditto.
1224 (PickView::init_headers): Ditto.
1225 * PickView.h (PickView): Ditto.
1226 * choose.cc (list_click): Use the new name for src_col to set the clip rectangle.
1228 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1230 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Fix up Robert's
1233 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1235 * desktop.cc (make_link): Add "file://" prefix to io_stream::mkpath_p()
1237 (make_passwd_group): Ditto.
1238 * localdir.cc (save_local_dir): Ditto.
1239 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Wrap long lines.
1240 Add "cygfile://" prefix to io_stream::open() calls.
1242 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1244 * log.cc (log_save): Fix creating /var/log.
1245 * packate_meta.cc (standard_dirs): Remove duplicate '/''s.
1247 2002-02-24 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1249 * res.rc (STRINGTABLE): Add IDS_CYGWIN_SETUP and
1250 IDS_CYGWIN_SETUP_WITH_PROGRESS strings.
1251 * resource.h: Add IDS_CYGWIN_SETUP and
1252 IDS_CYGWIN_SETUP_WITH_PROGRESS IDs.
1254 * splash.cc (OnInit): Qualify SetWindowText() call with global scope
1255 operator (::SetWindowText()).
1257 * threebar.cc: Run indent.
1258 (cistring.h): Add include.
1259 (SetText1, SetText2, SetText3): Qualify SetWindowText() call with
1260 global scope operator.
1261 (SetBar2): Add logic for writing percent complete into window title.
1263 * window.h: Run indent.
1264 (SetWindowText): New function.
1265 (String): Add forward declaration.
1266 * window.cc: Run indent.
1267 (String++.h): Add include.
1268 (SetWindowText): New function.
1270 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1272 * README: Update TODO list.
1273 * install.cc (install_one): Fix src package location.
1274 (do_install_thread): Fix creating directories.
1276 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1278 * choose.cc: Include cygpackage.h for scan2 use.
1279 (set_existence): Ignore setup.ini mirrors when installing from cwd.
1280 (scan2): Process any valid file.
1281 Add cache entries when a file matching a setup.ini listed version is found.
1282 * filemanip.cc (parse_filename): Remove pkgtar - not used anywhere else.
1283 * filemanip.h (filemanip::pkgtar): Remove.
1284 * package_meta.cc (CategoryPackage::~CategoryPackage): New method.
1285 (packagemeta::~packagemeta): Move from package_meta.h
1286 Remove and delete all version and category information.
1287 * package_meta.h (CategoryPackage): Create a destructor.
1288 (packagemeta::~packagemeta): Move to .cc file.
1290 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1292 * install.cc (install_one_source): Make NULL cached package names cause
1295 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1297 * desktop.cc (make_passwd_group): Don't create passwd-grp.bat
1300 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1302 * log.cc (log_save): Put "\n" at end of log lines instead of "'".
1304 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1306 * mount.cc (create_mount): Avoid a const char*->char* warning.
1307 (read_mounts): Ditto.
1309 2002-02-05 Jason Tishler <jason@tishler.net>
1311 * download.cc (do_download_thread): Fix off-by-one error.
1313 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1315 * configure.in (CXXFLAGS): Substitute at configure time, not runtime.
1316 * configure (CXXFLAGS): Regenerate.
1317 * Makefile.in (iniparse.o): Build via default rules - no errors now.
1318 * README: TODO list updates.
1320 2002-02-19 Michael A Chase <mchase@ix.netcom.com>
1322 * String++.cc (String::concat):: Remove.
1323 (String::vconcat):: Ditto.
1324 * String++.h (String::concat):: Remove.
1325 (String::vconcat):: Ditto.
1326 * archive_tar.cc: Don't include concat.h.
1327 * archive_tar_file.cc: Don't include concat.h.
1328 * compress_bz.cc (compress_bz::peek): Don't log unneeded messages.
1329 (compress_bz::seek): Ditto.
1330 (compress_bz::~compress_bz): Ditto.
1331 * compress_gz.cc (compress_gz::peek): Ditto.
1332 (compress_gz::error): Ditto.
1333 (compress_gz::~compress_gz): Ditto.
1334 * concat.cc (vconcat): Remove.
1336 * concat.h (vconcat): Remove.
1338 * desktop.cc (desktop_icon): Use new cygpath.
1339 (make_etc_profile): Ditto.
1341 (make_passwd_group): Ditto.
1343 (check_desktop): Remove concat use.
1344 (check_start_menu): Ditto.
1345 * download.cc (download_one): Use new mkpath_p correctly.
1347 * fromcwd.cc: Don't include concat.h.
1348 * geturl.cc (get_url_to_membuf): Use String log() call.
1349 (get_url_to_file): Ditto.
1350 * install.cc: Don't include concat.h.
1351 (uninstall_one): Use LOG_PLAIN.
1352 (replace_one): Ditto.
1353 (install_one_source): Ditto.
1354 (install_one): More char to String conversion.
1355 (do_install_thread): Use new cygpath.
1356 Use new create_mount.
1357 * io_stream.cc (io_stream::move): Use new log().
1358 * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new cygpath.
1359 (io_stream_cygfile::exists): Ditto.
1360 (io_stream_cygfile::remove): Ditto.
1361 (io_stream_cygfile::mklink): Ditto.
1362 (io_stream_cygfile::write): Ditto.
1363 (cygmkdir_p): Ditto.
1364 (io_stream_cygfile::move): Ditto.
1365 * io_stream_file.cc: Don't include log.h.
1366 (io_stream_file::write): Don't log unneeded messages.
1367 * localdir.cc: Don't include concat.h.
1368 (LocalDirPage::OnNext): Use LOG_PLAIN.
1369 * log.cc: Don't include log.h.
1370 (exit_setup): Use new cygpath.
1371 * log.h (log_level): Add new level LOG_PLAIN.
1372 * main.cc (WinMain): Use new log().
1373 * mount.cc (SLASH_P): New macro from concat.h.
1374 (cygpath): Make String version globally visible.
1375 Remove varargs version.
1377 * msg.cc (mbox): Use LOG_PLAIN.
1378 * net.cc (NetPage::OnNext): Ditto.
1379 * nio-ftp.cc (ftp_line): Use new log().
1380 * nio-http.cc: Don't include log.h.
1381 (retry_get): Use alternative url variable.
1382 * package_db.cc: Don't include concat.h.
1383 (packagedb::flush): Don't use concat.
1384 * package_meta.cc: Don't include concat.h.
1385 (packagemeta::uninstall): Use new cygpath.
1386 * postinstall.cc (do_postinstall): Ditto.
1387 * root.cc (RootPage::OnNext): Use LOG_PLAIN.
1388 * script.cc: Don't include concat.h.
1389 (init_run_script): Use new cygpath.
1390 (run_script): More char * to String conversion.
1391 (try_run_script): Ditto.
1392 * site.cc: Don't include concat.h.
1393 (SitePage::OnNext): Use LOG_PLAIN.
1394 (SitePage::OnMessageCmd): Use new log().
1395 * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN.
1397 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1399 * Makefile.in (OBJS): Add new object.
1400 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the name.
1401 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
1402 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
1403 (PickLine::Pickline): Accept a String for the key.
1404 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to Strings.
1405 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is automatically
1407 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
1408 (PickView::init_header): Move category length checking out of the inner loop for
1410 Convert all char use to Strings.
1411 * PickView.h: Include the String++ header.
1412 (PickView::note_width): Update the prototype.
1413 * String++.cc: New file, implements a reference counting string class.
1414 * String++.h: New file, declares a reference counting string class.
1415 * archive.cc: Include String++ instead of concat.
1416 (archive::extract_file): Convert char * usage to Strings.
1417 * archive.h: Inlude the String++ header.
1418 (archive::extract_file): Update prototype.
1419 (archive::next_file_name): Convert to a String.
1420 (archive::linktarget): Ditto.
1421 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
1422 (archive_tar::linktarget): Ditto.
1423 * arhive_tar.h: Update the copyright.
1424 Explicitly include the relevant headers.
1425 (tar_map_result_type): Convert to String usage.
1426 (archive_tar::next_file_name): Update prototype.
1427 (archive_tar::linktarget): Ditto.
1428 * category.cc (Category::Category): Update initialisers.
1429 Convert to String usage.
1430 (Categorycmp): Update to String usage.
1431 * category.h: Include the String++ header.
1432 (Category::Category): Update to String usage.
1433 (Category::name): Ditto.
1434 (Category::key): Ditto.
1435 * choose.cc: Remove concat.h, it's not needed.
1436 (scan2): Update to String usage.
1438 * cygpackage.cc: Update includes for use of String class.
1439 (cygpackage::cygpackage): Update for String usage.
1440 (cygpackage::set_canonical_version): Ditto.
1441 (cygpackage::destroy): Ditto.
1442 (cygpackage::getfirstfile): Ditto.
1443 (cygpackage::getnextfile): Ditto.
1444 (cygpackage::Name): Ditto.
1445 (cygpackage::Vendor_version): Ditto.
1446 (cygpackage::Package_version): Ditto.
1447 (cygpackage::Canonical_version): Ditto.
1448 (cygpackage::set_sdesc): Ditto.
1449 (cygpackage::set_ldesc): Ditto.
1450 * cygpackage.h: Include String++.h for parsing this file.
1451 (cygpackage::cygpackage): Update for String usage.
1452 (cygpackage::set_canonical_version): Ditto.
1453 (cygpackage::destroy): Ditto.
1454 (cygpackage::getfirstfile): Ditto.
1455 (cygpackage::getnextfile): Ditto.
1456 (cygpackage::Name): Ditto.
1457 (cygpackage::Vendor_version): Ditto.
1458 (cygpackage::Package_version): Ditto.
1459 (cygpackage::Canonical_version): Ditto.
1460 (cygpackage::set_sdesc): Ditto.
1461 (cygpackage::set_ldesc): Ditto.
1462 (cygpackage::name): Ditto.
1463 (cygpackage::vendor): Ditto.
1464 (cygpackage::packagev): Ditto.
1465 (cygpackage::canonical): Ditto.
1466 (cygpackage::fn): Ditto.
1467 (cygpackage::sdesc): Ditto.
1468 (cygpackage::ldesc): Ditto.
1469 * desktop.cc: Update includes for use of String class.
1470 (batname): Update for String usage.
1473 (start)menu): Ditto.
1474 (desktop_icon): Ditto.
1475 (make_cygwin_bat): Ditto.
1476 (make_etc_profile): Ditto.
1478 (make_passwd_group): Ditto.
1480 (check_desktop): Ditto.
1481 (check_startmenu): Ditto.
1482 * dialog.cc (eget): Update for String usage.
1483 (egetString): New function.
1484 (eset): New variant for Strings.
1485 * dialog.h: Include String++.h for parsing this file.
1486 (egetString): New function.
1487 (eset): New variant for Strings.
1488 * diskfull.cc (diskfull): Update for String usage.
1489 * diskfull.h: Include String++.h for parsing this file.
1490 (diskfull): Update for String usage.
1491 * download.cc: Update includes for use of String class.
1492 (check_for_cached): Update for String usage.
1493 (download_one): Ditto.
1494 * filemanip.cc (get_file_size): Ditto.
1496 (parse_filename): Ditto.
1498 * filemanip.h: Include String++.h for parsing this file.
1499 (fileparse): Update for String usage.
1501 (parse_filename): Ditto.
1502 Don't consider '_' to be a separator.
1504 * find.cc: Update includes for use of String class.
1505 (find_sub): Make more flexible.
1506 (find): Update for String usage.
1507 * find.h (find): Use Strings.
1508 * fromcwd.cc (found_file): Update for String usage.
1510 (init_dialog): Ditto.
1511 (get_url_to_membuf): Ditto.
1512 (get_url_to_string): Ditto.
1513 (get_url_to_file): Ditto.
1515 (get_url_to_membuf): Ditto.
1516 (get_url_to_string): Ditto.
1517 (get_url_to_file): Ditto.
1519 (add_subdirs): Ditto.
1520 * ini.cc: Update includes for String usage.
1521 (find_routine): Update for String usage.
1522 (do_remote_ini): Ditto.
1523 (do_ini_thread): Ditto.
1524 * ini.h (ini_init): Ditto.
1525 * inilex.l: Update includes for String usage.
1526 (ini_init): Update for String usage.
1527 * iniparse.y: Ditto.
1528 (add_correct_version): Ditto.
1529 * install.cc: Update includes for String usage.
1530 (install_one_source): Update for String usage.
1531 (uninstall_one): Ditto.
1532 (replace_one): Ditto.
1533 (install_one_source): Ditto.
1534 (do_install_thread): Ditto.
1535 * io_stream.cc: Update includes for String usage.
1536 (io_stream::open): Update for String usage.
1537 (io_stream::mkpath_p): Ditto.
1538 (io_stream::remove): Ditto.
1539 (io_stream::mklink): Ditto.
1540 (io_stream::move_copy): Ditto.
1541 (io_stream::move): Ditto.
1542 (io_stream::exists): Ditto.
1543 * io_stream.h: Update includes to allow correct parsing.
1544 (io_stream::open): Update for String usage.
1545 (io_stream::mkpath_p): Ditto.
1546 (io_stream::remove): Ditto.
1547 (io_stream::mklink): Ditto.
1548 (io_stream::move_copy): Ditto.
1549 (io_stream::move): Ditto.
1550 (io_stream::exists): Ditto.
1551 * io_stream_cygfile.cc: Update includes for String usage.
1552 (get_root_dir_now): Update for String usage.
1553 (io_stream_cygfile::io_stream_cygfile): Ditto.
1554 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1555 (io_stream_cygfile::exists): Ditto.
1556 (io_stream_cygfile::remove): Ditto.
1557 (io_stream_cygfile::mklink): Ditto.
1558 (cygmkdir_p): Ditto.
1559 (io_stream_cygfile::set_mtime): Ditto.
1560 (io_stream_cygfile::move): Ditto.
1561 (io_stream_cygfile::get_size): Ditto.
1562 * io_stream_cygfile.h: Update includes for String usage.
1563 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
1564 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1565 (io_stream_cygfile::exists): Ditto.
1566 (io_stream_cygfile::remove): Ditto.
1567 (io_stream_cygfile::mklink): Ditto.
1568 (cygmkdir_p): Ditto.
1569 (io_stream_cygfile::set_mtime): Ditto.
1570 (io_stream_cygfile::move): Ditto.
1571 (io_stream_cygfile::get_size): Ditto.
1572 (io_stream_cygfile::fname): Ditto.
1573 (io_stream_cygfile::lmode): Ditto.
1574 * io_stream_file.cc: Update includes for String usage.
1575 (io_stream_file::io_stream_file): Update for String usage.
1576 (io_stream_file::~io_stream_file): Ditto.
1577 (io_stream_file::exists): Ditto.
1578 (io_stream_file::remove): Ditto.
1579 (io_stream_file::mklink): Ditto.
1580 (io_stream_file::set_mtime): Ditto.
1581 (io_stream_file::move): Ditto.
1582 (io_stream_file::get_size): Ditto.
1583 * io_stream_file.h: Update includes for String usage.
1584 * io_stream_file.cc: Update includes for String usage.
1585 (io_stream_file::io_stream_file): Update for String usage.
1586 (io_stream_file::~io_stream_file): Ditto.
1587 (io_stream_file::exists): Ditto.
1588 (io_stream_file::remove): Ditto.
1589 (io_stream_file::mklink): Ditto.
1590 (io_stream_file::set_mtime): Ditto.
1591 (io_stream_file::move): Ditto.
1592 (io_stream_file::get_size): Ditto.
1593 (io_stream_file::fname): Ditto.
1594 (io_stream_file::lmode): Ditto.
1595 * localdir.cc: Update includes for String usage.
1596 (save_local_dir): Update for String usage.
1597 (check_if_enable_next): Ditto.
1598 (load_dialog): Ditto.
1600 (LocalDirPage::OnInit): Ditto.
1601 (LocalDirPage::OnNext): Ditto.
1602 * log.cc: Update includes for String usage.
1603 (struct LogEnt): Update for String usage.
1606 (exit_setup): Ditto.
1607 * log.h: Update includes for String usage.
1608 (log_level): Update for String usage.
1611 * main.cc (WinMain): Update for String usage.
1612 * mklink2.c (make_link_2): Update for String usage.
1613 * mklink2.h (make_link_2): Update for String usage.
1614 * mount.cc: Update includes for String usage.
1615 (mount_table): Update for String usage.
1617 (create_mount): Ditto.
1619 (remove_mount): Ditto.
1620 (read_mounts): Ditto.
1621 (set_root_dir): Ditto.
1622 (get_root_dir): Ditto.
1623 (path_prefix_p): Ditto.
1625 * mount.h: Update includes for String usage.
1626 (create_mount): Update for String usage.
1627 (remove_mount): Ditto.
1629 (set_root_dir): Ditto.
1630 (get_root_dir): Ditto.
1631 * msg.cc (mbox): Ditto.
1632 * net.cc (NetPage::OnNext): Ditto.
1633 * package_db.cc (packagedb::flush): Ditto.
1634 (packagedb::packages): Ditto.
1635 (packagedb::categories): Ditto.
1636 * package_db.h: Update includes for String usage.
1637 (packagedb::packages): Update for String usage.
1638 (packagedb::categories): Ditto.
1639 * package_meta.cc: Update includes for String usage.
1640 (hash::add_subdirs): Update for String usage.
1641 (packagemeta::uninstall): Ditto.
1642 (packagemeta::SDesc): Ditto.
1643 (packagemeta::action_caption): Ditto.
1644 * package_meta.h: Update includes for String usage.
1645 (packagemeta::packagemeta): Update for String usage.
1646 (packagemeta::~packagemeta): Ditto.
1647 (packagemeta::uninstall): Ditto.
1648 (packagemeta::SDesc): Ditto.
1649 (packagemeta::action_caption): Ditto.
1650 (package_source.cc site::site): Ditto.
1651 (packagesource::set_canonical): Ditto.
1652 (packagesource::set_cached): Ditto.
1653 * package_source.h: Update includes for String usage.
1654 (site::site): Update for String usage.
1655 (packagesource::set_canonical): Ditto.
1656 (packagesource::set_cached): Ditto.
1657 (packagesource::packagesource): Ditto.
1658 (packagesource::sites): Ditto.
1659 (packagesource::cached): Ditto.
1660 * package_version.h: Update includes for String usage.
1661 (Dependency): Update for String usage.
1662 (packageversion): Ditto.
1663 * postinstall.cc: Update includes for String usage.
1664 (do_postinstall): Update for String usage.
1665 * res.rc (IDD_LOCAL_DIR): Fix typo again!
1666 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
1667 * rfc1738.h: Update includes for String usage.
1668 (rfc1738_escape_part): Update for String usage.
1669 * root.cc: Update includes for String usage.
1670 (check_if_enable_next): Update for String usage.
1671 (save_dialog): Ditto.
1673 (directory_is_absolute): Ditto.
1674 (directory_is_rootdir): Ditto.
1675 (directory_has_spaces): Ditto.
1676 (RootPage::OnInit): Ditto.
1677 (RootPage::OnNext): Ditto.
1678 * script.cc: Update includes for String usage.
1679 (init_run_script): Update for String usage.
1681 (run_script): Ditto.
1682 (try_run_script): Ditto.
1683 * script.h: Update includes for String usage.
1684 (run_script): Update for String usage.
1685 (try_run_script): Ditto.
1686 * site.cc site_list): Ditto.
1687 (all_site_list): Ditto.
1688 (other_url): Eliminate.
1689 (site_list_type::init): Update for String usage.
1690 (site_list_type::site_list_type): Ditto.
1691 (get_site_list): Ditto.
1692 (get_saved_sites): Ditto.
1693 (do_download_site_info_thread): Ditto.
1694 (SitePage::OnNext): Ditto.
1695 (SitePage::OnActivate): Ditto.
1696 (SitePage::PopulateListBox): Ditto.
1697 (SitePage::OnMessageCmd): Handle empty url's.
1698 * site.h: Update includes for String usage.
1699 (site_list_type::site_list_type): Update for String usage.
1700 (site_list_type::init): Ditto.
1701 (site_list_type::~site_list_type): Ditto.
1702 (site_list_type::url): Ditto.
1703 (site_list_type::displayed_url): Ditto.
1704 (site_list_type::key): Ditto.
1705 * source.cc (SourcePage::OnDeactivate): Ditto.
1706 * state.h: Update includes for String usage.
1707 (local_dir): Update for String usage.
1708 (trust_level): Remove.
1709 * version.cc: Update includes for String usage.
1710 (canonicalize_version): Update for String usage.
1711 * version.h: Update includes for String usage.
1712 (canonicalize_version): Update for String usage.
1714 2002-02-15 Christopher Faylor <cgf@redhat.com>
1716 * filemanip.c (parse_filename): Revert previous change.
1718 2002-02-14 Christopher Faylor <cgf@redhat.com>
1720 * filemanip.c (parse_filename): Don't treat '_' as a version number
1723 2002-01-29 Christopher Faylor <cgf@redhat.com>
1725 * configure: Regenerate.
1727 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1729 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
1730 <Hoeck@extern.lrz-muenchen.de>
1732 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1734 * README: Update Todo's.
1735 * list.h: Run indent.
1736 (list): New methods checksize and insert to reduce code duplication.
1737 (list::registerbykey): Use them.
1738 (list::registerbyobject): Ditto.
1739 (list::removebyindex): Copy each object individually - safe for non
1741 (list::checksize): Implement.
1742 (list::insert): Implement.
1744 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1746 * Makefile.in: Remove the dlmalloc object by default.
1747 * install.cc (do_install_thread): Remove the mallinfo call for 'working
1748 around' the crashing issue.
1749 * package_db.h: Include <string.h> - it's needed to parse this.
1750 * package_source.cc (site::site): Move here from the header file.
1751 * package_source.h (site): Stop the constructor being inlinable.
1753 2002-01-26 Robert Collins <rbtcollins@hotmail.com>
1755 * filemanip.cc (find_tar_ext): Add a descriptive comment.
1757 2002-01-25 Michael A Chase <mchase@ix.netcom.com>
1759 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
1760 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
1761 * install.cc (install_one_source): Add space between words in log()
1764 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1766 * log.cc (exit_setup): When saving to the download dir, explicity
1769 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1771 * archive.cc (extract_file): Separate out the prefix and the URL
1773 * archive.h (archive::extract_file): Ditto.
1774 * install.cc (install_one_source): Ditto. Use the new
1775 archive::extract_file syntax.
1776 (replace_one): Use the new syntax.
1777 (io_stream.cc): Add some log info for links.
1779 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1781 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
1782 (PickCategoryLine::paint): Use the new action method.
1783 (PickCategoryLine::click): Set the action for all children.
1784 (PickCategoryLine::set_action): New method.
1785 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
1786 (PickCategoryLine::current_default): Use packagemeta _actions class.
1787 * PickLine.h (PickLine::set_action): New abstract method that requires
1788 including package_meta.h.
1789 * PickPackageLine.cc (PickPackageLine::set_action): New method.
1790 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
1791 * list.h (getbykey): A const correctness fix.
1792 * package_meta.cc: Run indent.
1793 (packagemeta::Default_action): New const.
1794 (packagemeta::Install_action): Ditto.
1795 (packagemeta::Reinstall_action): Ditto.
1796 (packagemeta::Uninstall_action): Ditto.
1797 (packagemeta::_actions::caption): New method.
1798 (packagemeta::_actions::operator++): Ditto.
1799 (packagemeta::set_action): New overload.
1800 * package_meta.h (packagemeta::_actions): New class.
1801 (packagemeta::set_action): Declare this.
1803 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1805 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
1806 * choose.cc: Don't define alloca anymore, it's done in win32.h
1808 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1810 * PickPackageLine.cc: New file.
1811 * PickPackageLine.h: New file.
1812 * PickLine.cc: New file.
1813 * PickLine.h: New file.
1814 * PickCategoryLine.cc: New file.
1815 * PickCategoryLine.h: New file.
1816 * PickView.cc: New file.
1817 * PickView.h: New file.
1818 * Makefile.in: Add new objects to setup.exe.
1819 Backout -fno-exceptions option.
1820 * choose.cc: Include PickView.h.
1821 Remove view related defines and static variables.
1822 (_pkg_headers): Moved to PickView.cc.
1823 (_cat_headers): Ditto.
1824 (view::views::Unknown): Ditto.
1825 (view::views::PackageFull):
1826 (view::views::Package):
1827 (view::views::Category):
1828 (pkgtrustp): Moved to package_meta.cc.
1829 (add_required): Moved to package_meta.cc.
1830 (pick_category_line::empty): Moved to PickCategoryLine.cc
1831 (paint): Adjust for moved static variables.
1832 (view::scroll): Moved to PickView.cc.
1833 (list_vscroll): Adjust for moved static variables.
1834 (list_hscroll): Ditto.
1835 (list_click): Ditto.
1836 (note_width): Moved to PickView.cc.
1837 (view::view): Ditto.
1838 (view::set_view_mode): Ditto.
1839 (view::mode_caption): Ditto.
1840 (view::views::caption): Ditto.
1841 (view::set_headers): Ditto.
1842 (DoInsertItem): Ditto.
1843 (view::init_headers): Ditto.
1844 (view::insert_pkg): Ditto.
1845 (view::insert_category): Ditto.
1846 (view::clear_view): Ditto.
1847 (view::views::operator++): Ditto.
1848 (view::click): Ditto.
1849 (default_trust): Adjust for moved statics.
1850 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
1851 (pick_pkg_line::click): Ditto.
1852 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
1853 (pick_category_line::paint): Ditto.
1854 (pick_category_line::click): Ditto.
1855 (set_view_mode): Adjust for moved statics.
1856 (create_listview): Ditto.
1857 * choose.h: Remove Category and packagemeta forward defines - not needed.
1858 Don't include unneeded headers list and package_meta.
1859 (_header): Move to PickView.h.
1860 (pick_line): Move to PickLine.h.
1861 (pick_pkg_line): Move to PickPackageLine.h.
1862 (pick_category_line): Move to PickCategoryLine.h.
1863 (view): Move to PickView.h.
1864 * ini.h (trusts): Move to package_meta.h.
1865 * package_meta.h (trusts): New enum.
1866 (packagemeta::set_requirements): New helper method.
1867 (packagemeta::trustp): Ditto.
1869 2002-01-21 Christopher Faylor <cgf@redhat.com>
1871 * choose.h (view): Move forward declaration of views into public area
1872 or g++ v3 will complain.
1874 2002-01-21 Christopher Faylor <cgf@redhat.com>
1876 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
1877 * win32.h (alloca): Define as __builtin_alloca.
1878 * io_stream_memory.cc: Add include file.
1880 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
1882 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as destroyed.
1883 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
1884 * compress.cc (compress::~compress): Be less verbose.
1885 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
1886 Mark the stream as destroyed.
1887 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as destroyed.
1888 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not marked
1890 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
1891 stream as destroyed.
1892 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
1893 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
1895 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
1897 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
1898 (OBJS): Link in malloc objects.
1899 * category.cc (category): Use new char, not strdup.
1900 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
1901 (do_choose): Use new char, not malloc.
1902 * concat.cc (vconcat): Ditto.
1903 * cygpackage.cc (cygpackage): Use new char, not strdup.
1904 (set_canonical_version): Ditto.
1905 (cygpackage::destroy): Use delete[], not free.
1906 * desktop.cc (uexists): Ditto.
1907 * dialog.cc (egest): Use new char, not strdup.
1908 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
1909 * hash.cc (hash::hash): Use delete instead of free.
1910 (hash::add): Use new char, not strdup.
1911 * ini.cc (do_remote_ini): Use delete[] not free.
1912 * inilex.l: Use new char, not strdup.
1914 * iniparse.y: Ditto.
1915 Use a local package_db rather than a static one.
1916 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
1917 (do_install_thread): Call mallinfo to force a consistency check. Appears
1918 to fix a 'inuse' error in -DDEBUG builds.
1919 Use delete[] for strings.
1920 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new char,
1922 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
1923 (io_stream_cygfile::remove): Use new char, not strdup.
1924 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not strdup.
1925 (io_stream_file::io_stream_file): Use delete[], not free.
1926 (io_stream_file::remove): Use new char, not strdup.
1927 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
1928 * io_stream_memory.h (memblock): Use new char, not malloc.
1929 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
1930 * main.cc (WinMain): Use new char, not strdup.
1931 * mount.cc (find2): Use new char, not malloc.
1932 (read_mounts): Ditto.
1933 (cygpath): Use new char, not strdup.
1934 * netio.cc (NetIO::~NetIO): Use delete[], not free.
1935 (NetIO::set_url): Use new char, not strdup.
1936 (NetIO::get_ftp_auth): Use delete[], not free.
1937 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
1938 Use new char instead of strdup.
1939 * nio-http.cc (base64_encode): Use new char, not malloc.
1940 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
1941 * package_source.h (~ packagesource): Use delete[] instead of delete.
1942 * port.h (strdup): Deprecate the use of strdup.
1943 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
1944 * script.cc (init_run_script): Us delete[], not free.
1945 (run_script): Ditto.
1946 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
1947 (SimpleSocket::invalidate): Use delete[], not free.
1948 * site.cc (site_list_type::init): Use new char instead of strdup.
1949 * site.h (~site_list_type): Use delete[], not free.
1951 2002-01-20 Robert Collins <rbtcollins@hotmail.com>
1953 * Makefile.in (OBJS): Add win32.o - win32 support functions.
1954 * README: Update todos.
1955 * archive.cc (extract_file): Support a suffix for appending to extracted files.
1957 * choose.cc (set_view_mode): Use the new view::views class.
1958 (view::views::Unknown): New static for defaulting view::views variables.
1959 (view::views::PackageFull): New static for the current view.
1960 (view::views::Package): Ditto.
1961 (view::views::Category): Ditto.
1962 (topbucket::paint): Remove.
1963 (topbucket::empty): Rename to pick_category_line::empty.
1964 (topbucket::~topbucket): Remove.
1965 (paint): Use the new view::views class.
1966 Don't paint 'all' as a category when showing package categoies.
1967 (pick_category_line::actiontext): New method.
1968 (pick_category_line::paint): Make showing the category optional, and show the
1970 (pick_category_line::click): Make showing the category optional, and
1971 differentiate between the name being clicked, and the action description.
1972 (view::view): Use the new view::views class.
1973 (view::set_view_mode): Ditto.
1974 (view::mode_caption): Ditto.
1975 (view::views::caption): New method.
1976 (view::set_headers): Use the new view::views class.
1977 (view::clear_view): Ditto.
1978 (viewsplusplus): Replaced by
1979 (view::views::operator++): New operator.
1980 (set_view_mode): Use the new view::views class.
1981 (create_listview): Ditto.
1982 (dialog_cmd): Ditto.
1983 * choose.h (actions): Remove.
1985 (pick_line): Add a new convenience constructor.
1986 (top_bucket): Remove.
1987 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
1988 (view::views): New class.
1989 * ini.h: Don't include choose.h
1990 (is_download_action): Remove.
1991 (is_upgrade_action): Remove.
1992 (is_uninstall_action): Remove.
1993 (is_full_action): Remove.
1994 * install.cc (num_replacements): New static.
1995 (rebootneeded): Ditto.
1996 (replace_one): Handle upgrades separate from removal or new installs.
1997 (install_one_source): Handle in use files.
1998 (install_one): Don't repeat upgrades.
1999 (do_install_thread): Initialize new statics.
2000 Order actions as uninstall, replace, install.
2001 Warn about rebooting if needed.
2002 * res.rc (IDS_REBOOT_REQUIRED): New string.
2003 * resource.h (IDS_REBOOT_REQUIRED): Give value.
2004 * win32.h: Declare class Win32, and update copyright and intent message.
2005 * win32.cc: New file.
2007 2002-01-15 Corinna Vinschen <corinna@vinschen.de>
2009 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
2010 * package_meta.cc (packagemeta::uninstall): Check for additional
2011 Windows shortcut. Unset R/O file attribute before trying to delete
2014 2002-01-09 Robert Collins <rbtcollins@hotmail.com>
2016 * choose.cc (pkgtrustp): Fall back to installed if a package is not present in
2017 the current trust level. For prev, fall back via curr.
2018 (set_existence): Allow sources with no sites, but cached files to be
2020 (pick_category_line::paint): Start drawing clickable categories.
2021 * fromcwd.cc (found_file): Reinstate local file scanning.
2023 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2025 * fromcwd.cc: Run indent.
2026 (do_fromcwd): Reverse sense of comment. Set next_dialog
2027 to IDD_CHOOSER instead of IDD_CHOOSE.
2028 * ini.cc (find_routine): Remove "/" from "/setup.ini".
2030 2001-01-07 Robert Collins <rbtcollins@hotmail.com>
2032 * category.cc (Categorycmp): Add a const safe version.
2033 * category.h (Categorycmp): Add a const safe version.
2034 (Category): Add operator ==.
2035 * choose.cc (fill_missing_category): Add every package to "All".
2036 (pick_category_line::paint): Add support for hidden labels, and a tree depth.
2037 (pick_category_line::click): Ditto.
2038 (view::view): Pass in a top level category to use.
2039 (view::insert_pkg): Special case - skip category "All".
2040 (view::insert_category): Ditto.
2041 (view::clear_view): Set the contents label state.
2042 (create_listview): Pass in a top level category to view().
2043 * choose.h (topbucket): Make bucket available to derived classes.
2044 (pick_category_line): Add support for hidden labels, and a tree depth.
2045 Remove our second copy of bucket.
2046 (view): Pass in a top level category to the constructor.
2047 Use pick_category_line to allow three level display.
2049 2001-01-06 Robert Collins <rbtcollins@hotmail.com>
2051 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
2052 * iniparse.y (add_correct_version): Copy descriptions across.
2053 * package_meta.cc (SDesc): Iterate through versions, return the first with a
2055 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
2057 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
2059 * script.cc (run_script): Change cygpath:// to cygfile://.
2060 * install.cc (do_install_thread): Fix off-by-one errors.
2062 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
2064 * package_db.cc (packagedb::flush): Fix an off-by-one error.
2066 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
2068 * Makefile.in (realclean): more clean.
2069 (OBJS): Add script.o.
2070 * postinstall.cc (run_script_in_etc_postinstall): New function.
2071 (do_postinstall): Split off new funtion init_run_script ().
2074 (run_script): Move to script.cc. Replace some deprecated remove
2077 * script.cc: New file.
2078 * Forward port cygwin-20010707.jcn3.patch.
2079 * package_meta.cc (uninstall): Run pre- and postremove scripts.
2080 * install.cc: Typo fix.
2081 (do_install): Run script initialisation.
2083 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2085 * cistring.cc: Run d2u.
2086 * cistring.h: Run d2u.
2088 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
2089 from the generated /etc/profile. Bash will source this file
2090 automatically, and having this here merely results in .bashrc being
2091 executed twice. Run d2u.
2092 * desktop.h: Run d2u.
2094 * propsheet.cc: Run d2u.
2095 (PropSheetProc): New function. Add minimize box here instead of in
2096 PropertyPage::DialogProc.
2097 (PropSheet::Create): Change to use creation callback PropSheetProc.
2098 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
2100 * propsheet.h: Run indent, d2u.
2101 * proppage.h: Run indent, d2u.
2103 * proppage.cc: Run d2u.
2104 (PropertyPage::DialogProc): Remove minimize-box-adding
2105 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
2106 Add support for calling virtual OnMessageCmd. Add setting of fonts in
2107 WM_INITDIALOG handler.
2108 (resource.h): New include for resource IDs.
2110 * res.rc: Resize and rearrange property page dialog templates
2111 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
2112 specification. Run d2u.
2113 (IDD_SITE): Add an edit control and an "Add" button in order to
2114 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
2115 (IDD_OTHER_URL): Remove dialog template.
2116 (IDD_DLSTATUS): Remove dialog template.
2119 (SitePage::OnBack): Remove NEXT() macro invocation.
2120 (SitePage::OnActivate): New member function.
2121 (load_dialog): Remove. Functionality subsumed into
2122 SitePage::OnActivate.
2123 (save_dialog): Change to support both list and user URLs. Remove
2124 OTHER_IDX and mirror_idx logic.
2125 (SitePage::PopulateListBox): New member function.
2126 (SitePage::CheckControlsAndDisableAccordingly): New member function.
2127 (SitePage::OnMessageCmd): New override.
2128 (check_if_enable_next): Remove.
2129 (dialog_cmd): Remove.
2130 (do_download_site_info_thread): Remove calls to NEXT() macro.
2131 (SitePage::Create): Call the single-param PropertyPage::Create
2133 (other_url): New static taken from other.cc.
2134 (SitePage::OnNext): Remove mirror_idx logic.
2135 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
2136 list box populating code, now handled in SitePage::PopulateListBox.
2137 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
2138 (save_site_url): Fix potential buffer overflow problem. Switched to
2139 TCHAR in grossly premature preparation for multilingual support.
2141 (SitePage::OnActivate): New member function.
2142 (SitePage::CheckControlsAndDisableAccordingly) New member.
2143 (SitePage::OnMessageCmd): New override.
2144 (do_download_site_info_thread): Add MessageBox call on failure to
2147 * splash.cc: Run d2u.
2148 (SplashPage::OnInit): Set the font for the title.
2149 * splash.h: Run d2u.
2151 * threebar.cc: Run d2u.
2152 * threebar.h: Run d2u.
2154 * window.h: Run d2u.
2155 (Window::IsButtonChecked): New member function declaration.
2156 (Window::OnMessageCmd): New member function.
2157 (Window::SetDlgItemFont): New member function declaration.
2158 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
2160 * window.cc: Run d2u.
2161 (Window::IsButtonChecked): New member function definition.
2162 (Window::SetDlgItemFont): New member function definition.
2163 (Window::Window): Add initialization for FontCounter.
2164 (Window::~Window): Delete any fonts we created.
2166 * geturl.cc: Run d2u.
2167 (progress): Remove the "3" field width from the "%3d"
2168 percent-complete format indicator. Causes line to not start at
2169 beginning of text box, and does little to help with "jumping", since
2170 the "bytes downloaded so far" field is variable-width anyway. Change
2171 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
2172 painfully slow connections, or temporary slowdowns in faster
2173 connections should such more-instantaneous functionality become
2177 (NetPage::OnMessageCmd): New member function declaration.
2178 (NetPage::CheckIfEnableNext): New member function declaration.
2180 (NetPage::OnMessageCmd): New member function definition.
2181 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
2182 (check_if_enable_next): Remove.
2183 (NetPage::CheckIfEnableNext): New member function, subsumes
2184 check_if_enable_next.
2185 (propsheet.h): Add include.
2186 (NetPage::Init): Add call to CheckIfEnableNext.
2187 (load_dialog): Remove call to check_if_enable_next.
2188 (NetPage::Create): Call single-template-ID-parameter overload of
2189 PropertyPage::Create instead of three-parameter one.
2191 * Makefile.in (OBJS): Remove other.o.
2192 * other.cc: Remove file.
2194 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
2196 * README: Update TODO's.
2197 * choose.cc (set_existence): Delete non installed packages with no
2199 (fill_missing_category): Fix an off-by-one error.
2200 (default_trust): Ditto. Also delete any unused categories.
2201 (view::init_headers): Fix an off-by-one error.
2202 (set_view_mode): Ditto.
2203 (set_view_mode): Ditto.
2204 (create_listview): Ditto.
2205 (dialog_cmd): Ditto.
2207 * io_stream.cc: Indent.
2208 * io_stream.h: Ditto.
2209 * package_db.cc: Ditto.
2210 * package_meta.h: Const correctness for SDesc ();
2211 * proppage.cc: Run d2u and indent.
2212 * propsheet.cc: Run d2u and indent.
2213 * window.cc: Run d2u and indent.
2214 * window.h: Run d2u and indent.
2216 2001-12-28 Christopher Faylor <cgf@redhat.com>
2218 * Makefile.in (iniparse.o): Accommodate newer bisons.
2220 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2222 * window.h (Window): New file, new class.
2223 * window.cc (Window): New file, new class.
2225 * threebar.h (ThreeBarProgressPage): New file, new class.
2226 * threebar.cc (ThreeBarProgressPage): New file, new class.
2228 * splash.h (SplashPage): New file, new class.
2229 * splash.cc (SplashPage): Replace file with implementation of new
2232 * source.h (SourcePage): New file, new class.
2233 * source.cc: Run indent.
2234 (SourcePage): Add class implementation to this file.
2235 (do_source): Remove, functionality subsumed by SourcePage::Create()
2236 and SourcePage::OnDeactivate().
2237 (dialog_proc): Remove, functionality subsumed by
2238 SourcePage::OnActivate().
2240 * site.h: Run indent.
2241 (SitePage): Add class declaration.
2242 * site.cc: Run indent.
2243 (SitePage): Add class implementation.
2244 (do_download_site_info_thread): New function.
2245 (context): New var. Context info for do_download_site_info_thread().
2246 (do_download_site_info): New function.
2247 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
2248 (SitePage::OnBack): SitePage class implementation..
2249 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
2250 by SitePage members.
2251 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
2253 (do_site): Remove, now handled by do_download_site_info_thread() and
2254 SitePage::OnNext functionality.
2255 (get_site_list): Remove dismiss_url_status_dialog() call.
2257 * root.h (RootPage): New file, new class.
2258 * root.cc: Run indent.
2259 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
2260 (dialog_proc): Remove.
2262 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
2263 (RootPage::OnInit): New member function. Move get_root_dir() logic to
2264 here from do_root().
2265 (RootPage::Create): New member function.
2266 (RootPage::OnNext): New member function. Move IDOK logic from
2267 dialog_cmd() to here.
2268 (RootPage::OnBack): New member function.
2270 * propsheet.h (PropSheet): New file, new class.
2271 * propsheet.cc (PropSheet): New file, new class.
2273 * proppage.h (PropertyPage): New file, new class.
2274 * proppage.cc (PropertyPage): New file, new class.
2276 * postinstall.cc (do_postinstall): Add owner parameter.
2278 * other.cc (do_other): Add owner parameter.
2280 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
2281 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
2283 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
2286 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
2287 get_auth(), get_proxy_auth().
2289 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
2290 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
2291 NetIO::get_ftp_auth)
2292 (auth_common): Add owner param. Pass owner param to DialogBox.
2293 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
2294 owner param to auth_common().
2296 * net.h (NetPage): New file, new class.
2297 * net.cc: Run indent.
2298 (net.h, threebar.h): Add includes.
2299 (Progress): Add extern.
2300 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
2301 property sheet logic. Saved temporarily for reference.
2302 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
2303 NetPage::OnNext, NetPage::OnBack):
2304 New implementation of NetPage class members.
2306 (dialog_proc): Remove.
2308 * msg.h (fatal, note, yesno): Add owner param.
2309 * msg.c (fatal, note, yesno, mbox): Add owner param.
2310 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
2311 now that we have a parent.
2313 * main.cc: Run indent.
2314 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
2315 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
2317 (root_dialog_proc): extern into this file.
2318 (Progress): Progress dialog defined here, used in several other files.
2319 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
2320 Site, Chooser, Desktop pages and MainWindow sheet. Call
2321 InitCommonControls() to make sure Windows is set up for our use of
2322 property sheets. Add pages to sheet.
2323 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
2324 now handled by the PropSheet class.
2325 (root.h): Add include.
2327 * log.cc (log_save): Pass NULL parent to fatal().
2328 (exit_setup): Pass NULL parent to note().
2330 * localdir.h (LocalDirPage): New file, new class.
2331 * localdir.cc: Run indent.
2332 (localdir.h): New include.
2333 (threebar.h): New include.
2334 (Progress): extern into this file.
2335 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
2336 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
2338 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
2339 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
2340 (do_local_dir): Remove.
2341 (dialog_proc): Remove.
2342 (cwd): Remove, not used by anything.
2344 * install.cc: Run indent.
2345 (process.h, threebar.h): New includes.
2346 (Progress): extern into this file.
2347 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
2348 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
2349 ThreeBarProgressPage.
2350 (dialog_cmd, dialog_proc, dialog): Removed, handled in
2351 ThreeBarProgressPage.
2352 (init_dialog): Remove all mention of the above ins_* handles. Now
2353 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
2354 ThreeBarProgressPage instance Progress directly.
2355 (progress): Alter bar update logic to call ThreeBarProgressPage
2356 instance Progress directly.
2357 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
2358 instance Progress directly.
2359 (install_one_source): Alter SetWindowText()s to call
2360 ThreeBarProgressPage
2361 instance Progress directly. Pass NULL parent to note().
2362 (do_install_thread): Rename from do_install(), added owner param.
2363 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
2365 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
2366 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
2368 (do_install_reflector): New function.
2369 (do_install): New function.
2371 * ini.cc (process.h, threebar.h): New includes.
2372 (Progress): externed into this file.
2373 (find_routine): Pass NULL parent to note().
2374 (do_local_ini): Add owner param.
2375 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
2376 and note(). Remove call to dismiss_url_status_dialog().
2377 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
2378 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
2379 to IDD_CHOOSER on exit.
2380 (do_ini_thread_reflector): New function.
2381 (context): New var. Context for do_ini_thread.
2382 (do_ini): New function.
2384 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
2386 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
2388 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
2390 (threebar.h): New include.
2391 (Progress): externed into this file.
2392 (dialog_cmd, dialog_proc, dialog): Removed, handled by
2393 ThreeBarProgressPage now.
2394 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
2396 and bar setting SendMessage()s to call ThreeBarProgressPage instance
2397 Progress directly. Remove "one bar only" logic, this is now handled
2398 explicitly in the ThreeBarProgressPage class.
2399 (progress): Altered bar and text update logic to call
2400 ThreeBarProgressPage instance Progress directly. Changed kbps
2401 calculation to floating point and now print out a single decimal
2403 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
2404 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
2405 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
2406 update logic to call ThreeBarProgressPage instance Progress directly.
2407 (dismiss_url_status_dialog): Remove.
2409 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
2412 * download.cc: Run indent.
2413 (process.h, threebar.h): New includes.
2414 (Progress): externed into this file.
2415 (download_one): Add owner param. Pass it to get_url_to_file().
2416 (do_download_thread): Renamed from do_download. Add owner param. When
2417 calculating total_download_bytes, take binpicked and srcpicked into
2418 account. Remove call to dismiss_url_status_dialog(), no longer needed.
2419 Pass owner handle to download_one() and yesno().
2420 (do_download_reflector, do_download): New functions.
2421 (context): New var. Context for do_download_thread().
2423 * dialog.h (D(x)): Add owner param.
2425 * desktop.h (DesktopSetupPage): New file, new class.
2426 * desktop.cc: Run indent.
2427 (desktop.h): Add include.
2428 (dialog_proc, do_desktop): Remove, now handled in
2429 DesktopSetupPage::OnInit().
2430 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
2431 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
2433 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
2434 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
2435 of DesktopSetupPage.
2437 * cistring.h: New file, new class.
2438 * cistring.cc: New file, new class.
2440 * choose.h: Run indent.
2441 (Chooser): New class declaration.
2442 * choose.cc: Run indent.
2443 (do_choose): Add owner param. Pass it to DialogBox() and
2445 (Chooser): New class implementation.
2447 * res.rc (IDS_VERSION_INFO): New string.
2448 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
2449 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
2450 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
2452 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
2453 TAB control navigation etc. Give the controls a reasonable tab order.
2454 Grouped radio buttons. Something's still not right, can't tab away
2455 from back/next/cancel group reliably.
2456 * resource.h (IDD_CHOOSER): New dialog ID.
2458 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
2459 threebar.o, and window.o.
2461 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
2463 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
2464 (pick_pkg_line::paint): Clip columns to prevent overlap.
2466 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
2468 * Makefile.in: Add libcomctl32.a for setup.exe.
2469 * archive.h (archive): Prevent non-child direct creation of the class.
2470 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
2471 * choose.cc: Include commctrl for the choose header.
2472 (NEW_COL_SIZE_SLOP): Define without magic numbers.
2473 (pkgtrustp): Convert to function.
2474 (set_action): Remove.
2475 (add_required, fill_missing_category,default_trust): Use list syntax for
2478 (choose_caption): Remove.
2479 (topbucket::paint): New method.
2480 (topbucket::empty): Ditto.
2481 (topbucket::click): Ditto.
2482 (topbucket::~topbucket): Ditto.
2483 (paint): Remove i,ii and p as they are obsolete.
2484 Remove header drawing code.
2485 Use new chooser method to paint the chooser.
2486 Use new chooser itemcount method.
2487 (scroll_common): Rename to view::scroll.
2488 Scroll the header window separately.
2489 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
2490 (listview_proc): Look for header messages.
2491 (note_width): Accept stringless calls.
2492 (pick_line::set_line): Remove.
2493 (pick_line::paint): Remove.
2494 (pick_pkg_line::paint): Paint this one line, using the header column widths.
2495 (pick_category_line::paint): Paint this category, and anything in the bucket.
2496 (pick_line::click): Remove.
2497 (pick_pkg_line::click): Handle a click.
2498 (pick_category_line::click): Handle a click.
2499 (_view): Rename all to view.
2500 (view::view): Initialise the control contents.
2501 (view::set_headers): Work with the header control.
2502 (view::init_headers): Use list syntax for package list.
2503 Rearrange the width logic a little.
2504 (view::insert_pkg): Update to use the hierarchy.
2505 (view::insert_category): Ditto.
2506 (view::insert_at, view::insert_under): Remove.
2507 (view::clear_view): Update to use the hierarchy.
2508 (view::click): Update to use the hierarchy.
2509 (set_view_mode): Use list syntax for package list.
2510 Update for new chooser methods.
2511 (DoInsertItem): New helper function. (Needs a home somewhere).
2512 (create_listview): Remove choose control code and use the constructor instead.
2513 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
2514 * choose.h: Include newly required headers list and package_meta.
2515 (_voew): Rename to view.
2516 (pick_line): Convert to an ABC.
2517 (pick_pkg_line): New class.
2518 (pick_catgory_line): New class.
2519 (topbucket): New class.
2520 (view::scroll): New method created from listview_scroll function.
2521 * desktop.cc (make_passwd_group): Use list syntax for package list.
2522 * download.cc (do_download): Use list syntax for package list.
2523 * fromcwd.cc (found_file): Use list syntax for package list.
2524 * iniparse.y (pacakges): Use list syntax for package list.
2525 * install.cc (uninstall_one): Use list syntax for package list.
2526 (do_install): Use list syntax for package list.
2527 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
2528 Prevent inaccurate synthetic copy and assignment.
2529 * list.h: Include required header stdlib.
2530 Work on const correctness.
2531 * package_db.cc (packagedb::getpackagebyname): Remove.
2532 (packagedb::packagedb): Remove custom list code, and make db a local.
2533 (packagedb::getfirstpackage): Remove.
2534 (packagedb::getnextpackage): Remove.
2535 (packagedb::addpackage): Remove.
2536 (flush): Remove custom list code.
2537 (packagedb::registerpackage): Remove.
2538 (packagedb::packages): New static member.
2539 (packagedb::task): New static member.
2540 * package_db.h (PackageDBActions): New enum.
2541 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
2542 addpackage, registerpackage, packages, packagecount, curr_package, db.
2544 * pacakge_meta.cc: Include package_db.h.
2545 (packagemeta::action_caption): New method.
2546 (packagemeta::set_action): New method.
2547 * package_meta.h (CategoryPackage): Initialise key.
2548 (packagemeta): Initialise key.
2549 Add set_action and action_caption methods.
2550 Prevent inaccurate synthetic copy and assignment.
2551 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
2552 * source.cc: Include package_db for db manipulation.
2553 (save_dialog): Set the db task.
2554 * win32.h: Tell the w32 include headers what IE version to expect/require.
2556 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
2558 * README: Wishlist updates.
2560 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
2562 * package_db.cc (getnextpackage): Don't overrun the array.
2564 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
2566 * Makefile.in (OBJS): Add setup_version.o.
2567 (version.c): Rename to setup_version.
2568 * choose.cc (set_action): Prevent NULL pointer dereference.
2569 (package_sort): Remove.
2570 * fromcwd.cc (canonicalize_version): Moved to version.cc.
2571 (check_ini): New function for use with find to see if there is a cached setup.ini.
2572 (do_fromcwd): Check for a cached setup.ini from any mirror site.
2573 * ini.cc (find_routine): New function, for finding cached setup.ini's.
2574 (do_local_ini): New function, drives parsing of local ini's.
2575 (do_remote_ini): New function, drives parsing and caching of remote ini's.
2576 (do_ini): Move guts to do_remote_ini and do_local_ini.
2577 * list.h (removebyindex): New method.
2578 * other.cc (save_dialog): Use new site_list and all_site_list to add the
2579 new site to the site picklist.
2580 (dialog_cmd): Only save the dialog when exiting the dialog.
2581 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
2582 * site.cc (site_list_type): Move to site.h
2583 (site_list): New global, sites chosen by the user.
2584 (all_site_list): New global, all potential sites.
2585 (site_list_type::init): New method, parses a mirror.lst URL string into a
2586 site_list_type object.
2587 (site_list_type::site_list_type): New method.
2588 (check_if_enable_next): Examine the control, not a local variable.
2589 (load_dialog): Select all the user chosen sites by default.
2590 (save_dialog): Adjust for multiple selection semantics.
2591 (save_site_url): Save all user chosen sites.
2592 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
2594 Remove obsolete other_url reference.
2595 (dialog_proc): Use all_site_list instead of site_list.
2596 (site_sort): Remove.
2597 (get_site_list): Remove malloc use - use list template instead.
2598 Move site_list_type initialisation to site_list_type::init().
2599 (get_initial_list_idx): Renamed to ...
2600 (get_saved_sites): this. Also read in multiple sites to the site_list.
2601 (do_site): Use all_site_list not site_list.
2602 Log all chosen sites.
2603 * site.h: New file, defines site related class, functions and variables.
2604 * state.h: Add comment about use of state.h
2605 (mirror_site): Remove.
2606 (other_url): Remove.
2607 (MIRROR_SITE): Remove.
2608 * version.cc: New file, for version-handling and related functions.
2610 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
2612 * Makefile.in: Add filemanip.o to setup.
2613 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
2614 * archive_tar.h (archive_tar_file): Implement get_size virtual.
2615 (archive_tar): Ditto.
2616 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
2618 (_view::init_headers): Ditto.
2619 (_view::insert_pkg): Ditto.
2620 (set_view_mode): Ditto.
2623 (base): Moved to filemanip.cc.
2624 (find_tar_ext): Ditto.
2625 (parse_filename): Ditto.
2626 (_Info::_Info): Remove.
2627 * compress_bz.h (compress_bz): Implement get_size virtual.
2628 * compress_gz.h (compress_gz): Implement get_size virtual.
2629 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
2630 * download.cc (get_file_size): Move to filemanip.cc.
2631 (check_for_cached): Use [] operator instead of getnth - its more readable.
2632 (download_one): Ditto.
2633 * filemanip.cc: New file.
2634 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
2635 (get_url_to_membuf): New function - contains get_url_to_string worker code.
2636 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
2637 * geturl.h: Declare new prototype.
2638 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
2639 Tidy up the error code a little.
2640 * ini.h: Remove __cplusplus protection for ini_init.
2642 * inilex.l: Remove old globals.
2643 (ini_init): Use an io_stream for getting the characters.
2644 (ini_getchar): Ditto.
2645 * iniparse.y: Declare yylex as a C++ function.
2646 (add_correct_version): Use [] operator instead of getnth - its more readable.
2647 * io_stream.cc (io_stream::move_copy): Use the copy method.
2648 (io_stream::copy): New method to simply copy from one stream to another.
2649 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
2650 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
2651 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
2652 * io_stream_file.cc (io_stream_file::get_size): Implement this.
2653 * io_stream_file.h (io_stream_file::get_size): Declare this.
2654 * io_stream_memory.h: Include errno as it's neded to parse the header.
2655 (io_stream_memory::get_size): Implement this.
2656 (io_stream_memory::st_size): Delete this.
2657 * list.h: Change getnth into the [] operator.
2658 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
2659 (NetIO::set_url): Ditto.
2660 (NetIO::open): Ditto.
2661 * netio.h: As for netio.cc.
2662 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
2664 * nio-file.h: Ditto.
2665 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
2666 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
2667 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
2668 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
2669 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
2670 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
2671 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
2672 * package_source.cc (packagesource::set_canonical): Ditto.
2673 (packagesource::set_cached): Ditto.
2674 * package_source.h (site::~site): Ditto.
2675 * site.cc: Change site_list_type to a class, and search and replace sort_key to
2678 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
2680 * package_source.cc (packagesource::set_canonical): Filename was out by one.
2682 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
2684 * Makefile.in (OBJS): Remove category_list - it's not needed.
2685 * README: More wishlist updates.
2686 * category.cc (Category::Category): Initialise new members.
2687 (Categorycmp): New function.
2688 * category.h (Category): New member key for template use.
2689 * category_list.cc: Remove.
2690 * category_list.h: Remove.
2691 (Categorycmp): New function prototype.
2692 * choose.cc: Remove category_list - not needed.
2693 (set_action): Only show the 'source' option when the source is actually
2695 (add_required): Fix recursion limiter to 5.
2696 (fill_missing_category): Use list access.
2697 (default_trust): Ditto.
2698 (pick_line::paint): Ditto.
2699 (_view::init_headers): Ditto.
2700 (_view::insert_pkg): Ditto.
2701 (_view::insert_category): Ditto.
2702 (_view::click): Ditto.
2703 (set_view_mode): Ditto.
2705 * cygpackage.h: Remove category_list - not needed.
2706 * geturl.cc (get_url_to_string): Fix null byte insertion.
2707 * inipatse.y: Remove category_list - not needed.
2708 (categories): Use list access.
2709 * package_db.cc: Ditto.
2710 * package_db.h: Remove category_list - not needed.
2711 (packagedb): Use the list template for categories.
2712 * package_meta.cc (add_category): Ditto.
2713 * package_meta.h (CategoryPackage): Link to the category as well.
2714 (packagemeta): Use a list of CategoryPackages instead of Categories
2715 for more memory efficient cross-referencing.
2717 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
2719 * package_db.cc (packagedb::flush): Write a canonical version for all packages
2720 irrespective of the media they were installed from.
2722 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
2724 * Makefile.in (OBJS): Add package_source and rfc1738.
2725 * README: Wishlist update.
2726 * category_list.cc (register_category): Use references.
2727 * category_list.h (CategoryList): Ditto.
2728 * choose.cc (isinstalled): Remove.
2729 (pkgtrustp): New macro.
2730 (set_action): Use packagemeta.
2731 (add_required): Ditto.
2732 (choose_caption): Example package to choose caption, rather than state flags.
2733 (check_existence): Remove.
2734 (set_existence): Remove old code.
2735 (fill_missing_category): Use packagemeta.
2736 (keep_or_skip): Remove.
2737 (default_trust): Use packagemeta and set trust values directly.
2738 (pick_line::set_line): Use packagemeta.
2739 (_view::insert_pkg): Ditto.
2740 (_view::insert_category): Ditto.
2741 (_view::click): Ditto.
2742 (set_view_mode): Ditto. Also remove "exclude" code.
2743 (create_listview): Use packagemeta.
2744 (dialog_cmd): Ditto.
2745 (getpkgbyname): Remove
2746 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
2747 (read_installed_db): Remove.
2748 (package_sort): Use packagemeta.
2749 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
2750 * choose.h: Use packagemeta.
2751 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
2752 (cygpackage::cygpackage): Ditto.
2753 (cygpackage::set_canonical_version): Copy the passed string.
2754 (cygpackage::~cygpackage): Move cleanup code to destroy().
2755 (cygpackage::destroy): New function.
2756 (cygpackage::getfirstfile): Use a separate buffer.
2757 (cygpackage::getnextfile): Ditto.
2758 (cygpackage::Canonical_version): New function.
2759 (cygpackage::set_sdesc): Ditto.
2760 (cygpackage::set_ldesc): Ditto.
2761 * cygpackage.h (cygpackage::Canonical_version): New method.
2762 (cygpackage::set_sdesc): New method.
2763 (cygpackage::set_ldesc): New method.
2764 (cygpackage::SDesc): New method.
2765 (cygpackage::LDesc): New method.
2766 (cygpackage::set_canonical_version): New method.
2767 * desktop.cc: Include packagedb headers.
2768 (make_password_group): Use packagemeta.
2769 * download.cc: Include packagedb headers.
2770 (check_for_cached): New method to find any cached file and fill out the database
2772 (download_one): Take a packagesource, support multiple mirrors.
2773 (do_download): Use packagemeta.
2774 * from cwd.cc: Include packagedb headers.
2775 (found_file): Use packagemeta.
2776 * ini.cc (do_ini): Beginning of multiple-mirror support.
2777 * ini.h (CategoryPackage): Remove.
2778 (Dependency): Remove.
2780 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
2781 * inilex.l: Support multiple mirrors.
2782 * iniparse.y: Include packagedb headers.
2783 (parser): Use packagemeta.
2784 (new_package): Remove.
2785 (add_correct_version): New function.
2786 (new_requirement): Remove.
2787 (add_category): Remove.
2788 * install.cc (uninstall_one): Use packagemeta.
2789 (install_one_source): New function.
2790 (install_one): Use packagemeta.
2791 (do_install): Use packagemeta.
2792 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
2793 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
2794 after setting the mtime, it makes no sense, and results in 0 length files.
2795 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
2796 * list.h: New file, template class for a form of list.
2797 * package_db.cc (packagedb::registerpackage): New function.
2798 * package_db.h (packagedb::npackages ()): New method.
2799 * package_meta.cc (packagemeta::add_version): Use list template.
2800 (packagemeta::set_installed): Ditto.
2801 (packagemeta::add_category): New method.
2802 * package_meta.h: Include necessary headers to parse the class.
2803 (CategoryPackage): New class.
2804 (packagemeta): Initialise all members.
2805 (packagemeta::SDesc): New method.
2806 (packagemeta::Categories): New method.
2807 (packagemeta::add_category): Ditto.
2808 (packagemeta::versions): Change to be a list instance.
2809 * package_source.cc (packagesource::set_canonical): New method.
2810 (packagesource::set_cached): New method.
2811 * package_source.h: Include necessary headers to parse the class.
2813 (packagesource::packagesource): Initialize all members.
2814 (packagesource): Make this class non-abstract.
2815 * package_version.cc (packageversion::packageversion): New method.
2816 * package_version.h (Dependency): New class.
2817 (packageversion::Canonical_vesion): New method.
2818 (packageversion::SDesc): New method.
2819 (packageversion::LDesc): New method.
2820 (packageversion::new_requirement): Ditto.
2821 (packageversion::srcpicked, binpicked): What to install.
2822 (packageversion::src, bin): Installation source data.
2823 * rfc1738.cc: New file. Escapes special characters in URL's.
2826 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2828 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
2829 SimpleSocket::gets() returns a zero-length string, so that we
2830 don't end up eating the entire stream thinking it's all header info.
2832 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
2834 * install.cc (badrename): Remove.
2835 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
2836 * io_stream.cc (io_stream::move_copy): New method.
2837 (io_stream::move): New method.
2838 * io_stream.h (io_stream): New methods move and move_copy.
2839 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
2840 * io_stream_cygfile.h (io_stream_cygfile): New method move.
2841 * io_stream_file.cc (io_stream_file::move): New method.
2842 * io_stream_file.h (io_stream_file): New method move.
2843 * package_db.cc (packagedb::flush): New method.
2844 * package_db.h (packagedb): New method flush.
2846 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
2848 * Makefile.in (OBJS): Add package_version.
2849 * ategory.cc (Category::Category): Update constructors.
2850 * category_list.cc (CategoryList::register_category): Insert correctly.
2851 * choose.cc: Include package_version.h, not package.h.
2852 * cygpackage.cc: Ditto.
2853 (cygpackage::uninstall): New method.
2854 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
2855 New method uninstall.
2856 * hash.cc (add, has, enumerate): Change prototype to be accurate.
2857 * hash.h (hash): Change prototypes to be accurate.
2858 * ini.h (_Info): New parameterless constructor.
2859 (CategoryPackage): New constructor.
2861 * install.cc: Don't include unneeded headers.
2862 Include package database headers.
2863 (hash::add_subdirs): Remove.
2864 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
2865 Don't uninstall source packages.
2866 (do_install): Just can uninstall_one once as we ignore source packages now.
2867 Don't copy the installed.old database accross, instead iterate through the
2868 packagedb packages list and write the isntalled packages out.
2869 * package_db.cc: Include package_version.h, not package.h.
2870 (packagedb::packagedb): Never let db be undefined.
2871 Record the installation filename, so we can reconstruct installed.db.
2872 (packagedb::addpackage): Insert packages in alpha sorted order.
2873 (packagedb::categories): Initialise correctly.
2874 * package_meta.cc: Include win32 and mount headers as a workaround to
2875 current io_stream limitations. Include a TODO about that.
2876 (standard_dirs): New, from install.cc.
2877 (hash::add_subdirs): New, from install.cc.
2878 (packagemeta::set_installed): Rename genericpackage to packageversion.
2879 (packagemeta::uninstall): New method.
2880 * package_meta.h: Rename genericpackage to packageversion.
2881 (packagemeta): Update constructor.
2882 (add_version, set_installed): Rename genericpackage to packageversion.
2883 (uninstall): New method.
2884 (installed_from): New member.
2885 * package_source.cc: New file.
2886 * package_source.h: New file.
2887 * package_version.cc: New file.
2888 * package_version.h: New file.
2889 * package.cc: Removed.
2890 * package.h: Removed.
2892 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2894 * Makefile.in (OBJS): Add category.o and category_list.o.
2895 * category.h: New file.
2896 * category.cc: New file.
2897 * category_list.h: New file.
2898 * category_list.cc: New file.
2899 * choose.cc: Include category headers.
2900 (fill_missing_category): Use package_db to access global categories.
2901 (_view::insert_pkg): Ditto.
2902 (_view::insert_category): Ditto.
2903 (set_view_mode): Ditto.
2904 (getcategorybyname): Remove.
2905 * cygpackage.h: Include category_list.h to parse this correctly.
2906 (cygpackage): New virtual &Categories.
2907 * ini.h (_CategoryPackage): More C to C++ conversion.
2909 (getcategorybyname): Remove.
2910 (register_category): Remove.
2911 * iniparse.y: Include package db and category headers.
2912 (categories): Use package_db to access global categories.
2914 (ncategories): Remove.
2915 (register_category): Remove.
2916 * package.h: New virtual &Categories.
2917 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
2918 (packagedb::categories): Declare.
2919 * package_db.h (packagedb): New member categories for global categories list.
2921 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2923 * choose.h: Don't include ini.h
2924 * ini.h: Allow pure c++ in the header file.
2926 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2928 * install.cc (do_install): Write a version 2 installed.db file.
2929 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
2931 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2933 * Makefile.in (OBJS): Add package abstraction objects.
2934 * choose.cc: Include package abstraction headers.
2935 (read_installed_db): Use packagedb class and ignore installed sources.
2936 * cygpackage.cc: New file.
2937 * cygpackage.h: New file.
2938 * filemanip.h (get_file_size): Use unixy types.
2939 * package.h: New file.
2940 * package.cc: New file.
2941 * package_db.cc: New file.
2942 * package_db.h: New file.
2943 * package_meta.cc: New file.
2944 * package_meta.h: New file.
2946 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2948 * REAME: Updates to wishlist.
2950 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
2952 * README: Updated and added my list of wishlist and todo items.
2954 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
2956 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
2957 * archive_tar.cc (archive_tar::write): New prototype.
2958 (archive_tar::seek): New method.
2959 * archive.h (archive_tar_file): Update write() and add seek().
2960 (archive_tar): Ditto.
2961 * archive_tar_file.cc (archive_tar_file::write): New prototype.
2962 (archive_tar_file::seek): New method.
2963 * compress_bz.cc (compress_bz::write): New prototype.
2964 (compress_bz::seek): New function.
2965 * compress_bz.h (compress_bz): Update write() and add seek().
2966 * compress_gz.cc (compress_gz::write): New prototype.
2967 (compress_gz::seek): New function.
2968 * compress_gz.h (compress_gz): Update write() and add seek().
2969 * geturl.cc: Include io_stream headers.
2971 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
2972 * io_stream.h (io_stream_seek_t): New enum.
2973 (io_stream): Update write() and add seek().
2974 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
2975 (io_stream_cygfile::seek): New function.
2976 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
2977 * io_stream_file.cc (io_stream_file::write): New prototype.
2978 (io_stream_file::seek): New function.
2979 * io_stream_file.h (io_stream_file): Update write() and add seek().
2981 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
2983 * localdir.cc: Add headers unistd.h and port.h.
2984 (save_local_dir): Expand search logic to include local directory for
2985 location of file last-cache.
2986 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
2987 (do_local_dir): Expand search logic to include local directory for file
2989 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
2990 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
2992 (do_source): Default to Install from Internet on first entry or
2993 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
2995 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
2997 * choose.cc (find_tar_ext): Only match at the end of the string.
2998 (getpkgbyname): Prevent NULL pointer dereference.
3000 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
3002 * Makefile.in (CFLAGS): Add warnings and -Werr.
3003 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
3004 (OBJS): Add io_stream class' objects.
3005 (autoload.o): Use WARNONLY_FLAGS.
3007 (iniparse.o): Ditto.
3008 * archive.cc: New file.
3009 * archive.h: New file.
3010 * archive_tar.cc: New file.
3011 * archive_tar.h: New file.
3012 * archive_tar_file.cc: New file.
3013 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
3014 * choose.cc: Use io_stream.h, not mount.h.
3016 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
3017 (read_installed_db): Use io_streams.
3018 * choose.h: Run indent.
3019 * compress.cc: New file.
3020 * compress.h: New file.
3021 * compress_bz.cc: New file.
3022 * compress_bz.h: New file.
3023 * compress_gz.cc: New file.
3024 * compress_gz.h: New file.
3025 * concat.cc: Run indent.
3026 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3027 * concat.h: Run indent.
3028 * desktop.cc: Run indent.
3029 Include mklink2.h rather than redefining by hand.
3030 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3031 (etc_profile): Fix compiler warning (deprecated conversion).
3032 (make_link): Fix compiler warning (deprecated conversion).
3033 Tidy up use of args variable - consolidate into argbuf.
3034 (start_menu): Fix compiler warning (deprecated conversion).
3035 (desktop_icon): Fix compiler warning (deprecated conversion).
3036 (make_etc_profile): Fix compiler warning (deprecated conversion).
3037 (uexists): Fix compiler warning (deprecated conversion).
3038 (check_desktop): Fix compiler warning (deprecated conversion).
3039 (check_startmenu): Fix compiler warning (deprecated conversion).
3040 * dialog.cc: Run indent.
3041 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3042 (fatal): Fix compiler warning (deprecated conversion).
3043 * dialog.h: Run indent.
3044 * diskfull.cc: Run indent.
3045 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3046 * download.cc: Run indent.
3047 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3048 (download_one): Fix compiler warning (signed vs unsigned comparison).
3049 * filemanip.h: Run indent.
3050 * find.cc: Run indent.
3051 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3052 (find): Fix compiler warning (deprecated conversion).
3053 * find.h: Run indent.
3054 * fromcwd.cc: Run indent.
3055 * geturl.cc: Run indent.
3056 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3057 (dialog_cmd): Return a value.
3058 (dialog_proc): Remove unused variables.
3060 (get_url_to_file): Fix compiler warning (deprecated conversion).
3061 * geturl.h: Run indent.
3062 * hash.cc: Run indent.
3063 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3064 * hash.h: Run indent.
3065 * ini.cc: Run indent.
3067 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3068 (do_ini): Use io_streams for local io.
3069 * ini.h: Run indent.
3070 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
3071 Fix compiler warning (brackets for truth assignment).
3072 * install.cc: Run indent.
3073 Fix compiler warning (/* in comment).
3075 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3076 (dialog_cmd): Return a value.
3077 (dialog_proc): Return a value.
3078 (start_tics): Deleted - was unused.
3079 (badrename): Fix compiler warnings (unused, deprecated conversion).
3080 (standard_dirs): Fix compiler warning (deprecated conversion).
3082 (uninstall_one): Convert to io_streams.
3083 (install_one): Convert to io_streams.
3084 (do_install): Convert to io_streans.
3085 Fix compiler warning (deprecated conversion).
3086 * io_stream.cc: New file.
3087 * io_stream.h: New file.
3088 * io_stream_cygfile.cc: New file.
3089 * io_stream_cygfile.h: New file.
3090 * io_stream_file.cc: New file.
3091 * io_stream_file.h: New file.
3092 * localdir.cc: Run indent.
3094 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3095 (get_root_dir_now): Remove.
3096 (save_local_dir): Convert to io_streams.
3097 (dialog_cmd): Return a value.
3098 (do_local_dir): Convert to io_streams.
3099 (log.cc): Run indent.
3100 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3101 (log): Fix compiler warning (deprecated conversion).
3102 (log_save): Fix compiler warning (deprecated conversion).
3103 * log.h: Run indent.
3104 (log): Fix compiler warning (deprecated conversion).
3105 (log_save): Fix compiler warning (deprecated conversion).
3106 * main.cc: Run indent.
3107 Don't include "netio.h".
3108 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3109 (netio_test): Remove.
3110 (sid_auth): Fix compiler warning (partially bracketed initialiser).
3111 (WinMain): Return a value.
3112 * mkdir.cc: Run indent.
3113 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3114 * mklink2.c: Run indent.
3115 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3116 (mkcygsymlink): New function.
3117 * mklink2.h: New file.
3118 * mount.cc: Run indent.
3119 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3120 (create_mount): Remove unused variables.
3121 (cygpath): Fix compiler warning (signed vs unsigned comparison).
3122 * mount.h: Run indent.
3123 * msg.cc: Run indent.
3124 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3125 (msg): Fix compiler warning (deprecated conversion).
3126 (mbox): Fix compiler warning (deprecated conversion).
3127 * msg.h: Run indent.
3128 (msg): Fix compiler warning (deprecated conversion).
3129 * net.cc: Run indent.
3130 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3131 (dialog_cmd): Return a value.
3132 * netio.cc: Run indent.
3133 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3134 (auth_cmd): Return a value.
3135 * netio.h: Run indent.
3136 * nio-file.cc: Run indent.
3137 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3138 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
3139 * nio-file.h: Run indent.
3140 * nio-ftp.cc: Run indent.
3141 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3142 * nio-ftp.h: Run indent.
3143 * nio-http.cc: Run indent.
3144 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3145 * nio-http.h: Run indent.
3146 * nio-ie5.cc: Run indent.
3147 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3148 * nio-ie5.h: Run indent.
3149 * other.cc: Run indent.
3150 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3151 (dialog_cmd): Return a value.
3152 * port.h: Run indent.
3153 * postinstall.cc: Run indent.
3154 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3155 (cmd): Fix compiler warning (deprecated conversion).
3156 (eun): Fix compiler warning (deprecated conversion).
3157 * root.cc: Run indent.
3158 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3159 * simpsock.cc: Run indent.
3160 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3161 * simpsock.h: Run indent.
3162 * site.cc: Run indent.
3164 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3165 (get_root_dir_now): Remove.
3166 (save_site_url): Convert to io_streams.
3167 (dialog_cmd): Return 0.
3168 (get_initial_list_idx): Convert to io_streans.
3169 * source.cc: Run indent.
3170 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3171 (check_if_enable_next): Remove.
3172 (load_dialog): Remove unused variables.
3173 (save_dialog): Ditto.
3174 (dialog_cmd): Return a value.
3175 * splash.cc: Return a value.
3176 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3177 (dialog_cmd): Return a value.
3178 * state.cc: Run indent.
3179 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3180 * state.h: Run indent.
3184 2001-11-12 Christopher Faylor <cgf@redhat.com>
3186 * desktop.cc (start_menu): Change start menu name to "Cygwin".
3187 (check_startmenu): Ditto.
3189 2001-11-11 Christopher Faylor <cgf@redhat.com>
3191 * choose.cc (parse_filename): Finish reorganization by correctly
3192 decrementing p in memmove.
3194 2001-11-11 Christopher Faylor <cgf@redhat.com>
3196 * choose.cc (parse_filename): Reorganize code to work around gcc
3197 optimization problem.
3199 2001-11-09 Gareth Pearce <tilps@hotmail.com>
3201 * choose.cc (set_action): Allow skip as an option for installed
3202 packages that have version number not listed in setup.ini.
3204 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3206 * choose.cc (set_cation): Backout last change.
3207 (choose_caption): Ditto.
3209 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3211 * ini.h (actions): Remove - transferred to choose.h.
3213 * choose.h: Protect class's from "C" compilers.
3214 (actions): New enum, from ini.h. This may not be the 'right' place
3215 but that place doesn't exist yet.
3216 (_views): New enum, from ini.h.
3217 * choose.cc (set_action): Handle installed packages with a version not in
3219 (choose_caption): Ditto.
3220 * iniparse.y: Rearrange header order to handle new ini.h.
3222 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3224 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
3225 (registry_category): Fix compiler warning (deprecated conversion).
3226 * iniparse.y (registry_category): Ditto.
3227 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
3228 (add_requried): Remove unused variable.
3229 (choose_caption): Handle all enumeration values via a default.
3230 (paint): Fix compiler warnings (unused, deprecated conversion).
3231 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
3232 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
3233 (note_width): Fix compiler warnings (deprecated conversion).
3234 (keep_or_skip): Fix compiler warnings (unused).
3235 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
3236 (set_view_mode): Fix compiler warnings (unused).
3237 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
3239 (dialog_proc): Fix compiler warnings (unused).
3240 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
3241 * choose.h (_header): Fix compiler warnings (deprecated conversion).
3244 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
3246 * simpsock.h (SimpleSocket::invalidate): Declare new method.
3247 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
3248 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
3249 memory for buf in the constructor.
3250 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
3251 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
3252 (SimpleSocket::write): Check object consistency - return -1 on error.
3253 invalidate() the object on socket write error.
3254 (SimpleSocket::fill): Check object consistency - return -1 on error.
3255 invalidate() the object if socket read error is encountered and there
3256 is no more data available in the internal read buffer.
3257 Allocate memory for the internal read buffer.
3258 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
3259 during fill() and no more data is available in the internal read buffer.
3260 (SimpleSocket::read): Check object consistency - return -1 on error.
3261 invalidate() the object if socket read error is encountered.
3262 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
3263 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
3264 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
3265 (NetIO_FTP::read): Use NetIO_FTP::ok().
3266 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
3267 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
3269 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
3271 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3272 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
3273 (SimpleSocket::printf): Ditto.
3274 (SimpleSocket::write): Ditto.
3275 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
3277 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3278 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
3279 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3281 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
3283 * geturl.cc (get_url_to_string): clean up memory leak
3284 (get_url_to_file): ditto
3286 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3288 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
3289 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
3291 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
3293 * fromcwd.cc (found_file): Free() memory containing the version and
3294 filepath information for a given package, before replacing the pointers which
3295 reference this memory.
3297 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3299 * fromcwd: Fix compiler warnings for cvsid.
3300 (canonicalize_version): Fix compilter warnings.
3301 (do_fromcwd): Ditto.
3302 * version.h: Fix compiler warnings for canonicalize_version.
3304 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
3306 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
3308 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3310 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
3312 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3314 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
3316 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3318 * choose.cc (default_trust): Change the "Required" forced install category to
3321 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3323 * choose.cc: Ran indent.
3324 (set_action): When the requested trust level is missing and the level was not
3325 user requested, set the action to ACTION_SAME_CURR.
3327 2001-11-01 Christopher Faylor <cgf@redhat.com>
3329 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
3331 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3333 * choose.cc (_view::init_headers): Resync with the paint logic.
3335 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3337 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
3340 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3342 * choose.cc (default_trust): Autoset currently installed packages per the user's
3343 selection of prev/curr/exp.
3345 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3347 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
3349 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
3351 * geturl.cc (is_showing): Remove.
3352 (is_local_install): New static variable. Controls whether the
3353 progress dialog and the supporting thread will be created.
3354 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
3355 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
3356 This prevents the progress dialog to gain control over the
3357 application and fixes the "setup.exe going to background" problem.
3358 (progress): Use is_local_install.
3359 (get_url_to_string): Set is_local_install.
3360 (dismiss_url_status_dialog): Use is_local_install.
3361 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
3362 (init_dialog): Remove usage of SetForegroundWindow.
3363 This prevents the progress dialog to gain control over the
3364 application and fixes the "setup.exe going to background" problem.
3366 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3368 * choose.cc (list_click): Change r to row for clarity.
3369 When we shrink the list below 1 page, scroll to the top of the list.
3370 (_view::click): Return the actual change for contractions.
3371 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
3373 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3375 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3376 * localdir.cc: Ran indent.
3377 (get_root_dir_now): New function.
3378 (save_local_dir): New function.
3379 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
3380 (do_local_dir): If there is a saved local dir, read it in.
3381 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3382 * root.cc (dialog_cmd): Ditto.
3383 * source.cc (dialog_cmd): Ditto.
3385 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3387 * choose.cc(list_vscroll): Return 0 as required by win32.
3388 (list_hscroll): Ditto.
3389 (list_click): Ditto.
3391 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3395 * main.cc(WinMain): Use __argv to retrieve command line parameters.
3396 * Makefile,in: Remove argv.o.
3398 2001-11-01 Matt Hargett <matt@use.net>
3400 * geturl.cc (progress): Change int to unsigned int to eliminate
3402 * (get_url_to_string): Check for NULL pointer.
3403 * mount.cc (find2): Use free instead of delete for malloc'd
3405 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
3407 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3409 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
3410 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
3411 (read_installed_db): Bugfix for testing whether a package has a source tarball.
3412 Reported by Matt (matt@usa.net).
3413 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
3414 confusion and lint errors. Reported by Matt (matt@usa.net).
3416 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3418 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
3421 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
3422 Add mingw_getopt.o build rule.
3423 * main.cc(WinMain): Initialise argv and argc for use by getopt.
3425 2001-10-27 Christopher Faylor <cgf@redhat.com>
3427 * res.rc: Rearrange info on top line slightly.
3429 2001-10-27 Christopher Faylor <cgf@redhat.com>
3431 * desktop.cc (make_passwd_group): Move file creation earlier in the
3432 process to ensure that passwd-grp.bat reflects desired operation.
3434 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
3436 * postinstall.cc (each): Remove "*.done" file else rename will fail.
3438 2001-10-16 Christopher Faylor <cgf@redhat.com>
3440 * res.rc: Oops. Take 640x480 screen size into account.
3442 2001-10-16 Christopher Faylor <cgf@redhat.com>
3444 * res.rc: Enlarge chooser screen.
3446 2001-10-12 Christopher Faylor <cgf@redhat.com>
3448 * Makefile.in: Accomodate changes to w32api_include macro.
3450 2001-10-12 Christopher Faylor <cgf@redhat.com>
3452 * Makefile.in: Use correct flags for windres.
3454 2001-10-12 Christopher Faylor <cgf@redhat.com>
3456 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
3458 2001-10-12 Christopher Faylor <cgf@redhat.com>
3460 * choose.cc (pick_line::paint): Reorganize after botched patch.
3462 2001-10-12 Christopher Faylor <cgf@redhat.com>
3464 * choose.cc (pick_line::paint): Add missing declaration.
3466 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
3468 * choose.cc (pick_line::paint): Add package name to sdesc for display.
3470 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
3472 * choose.cc (_view::insert_pkg): Correctly exit loop.
3473 * iniparse.y (register_category): Always insert new categories.
3475 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
3477 * inilex.l (yylex): For comments, eat all characters up to, but not
3480 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
3482 * fromcwd.cc (found_file): Use correct package name when adding an
3483 unknown package rather than random stack garbage.
3485 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
3487 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
3489 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
3491 * desktop.cc (etc_profile): Leave environment variables untouched.
3493 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
3495 * autoload.c: Add dynamic load statements for NT/W2K
3496 advapi32 functions not available in 9x/ME.
3497 * main.cc (set_default_dacl): New function.
3498 (WinMain): Call `set_default_dacl' if running on NT/W2K.
3500 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
3502 * ini.h (_CategoryPackage): Change pkg field to pkgname for
3504 * choose.cc: Use pkgname field when referencing _CategoryPackage
3506 (fill_missing_category): Don't add excluded packages.
3507 (default_trust): Ditto.
3508 (_view::insert_pkg): Ditto.
3509 * iniparse.y (register_category): Use consistent variable name.
3511 2001-07-09 Egor Duda <deo@logos-m.ru>
3513 * choose.cc: Use system foreground color for text output.
3515 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
3517 * choose.cc (set_action): Use default trust for determining reinstall
3519 (default_trust): Set default trust.
3520 (pick_line::paint): Allow source selection when reinstalling or
3523 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
3525 * choose.cc (isinstalled): Modify to properly accomodate special case
3527 (set_action): Check downloaded components, not installed components if
3529 (set_existence): Always include full list of files when "download
3532 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
3534 * choose.cc (pick_line::paint): Properly display "na" field when no
3537 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
3539 * choose.cc (scan2): Ensure that older versions do not show up in
3542 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
3544 * choose.cc (set_action): Allow "Skip" action if trust != installed.
3545 * res.rc: Fix copyright.
3547 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
3549 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
3551 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
3553 * choose.cc: Restore some more changes from 2001-06-25, throughout.
3554 (paint): Wrap some excessively long lines.
3555 (pick_line::paint): Ditto. Move the arrow in the "Current" column
3556 right to where it belongs. Move the source checkbox slightly to the
3558 (do_choose): List categories and required packages in setup.log.full.
3560 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
3562 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
3564 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
3566 * ini.h (struct _Info): Add "derived" element.
3567 * choose.cc (scan2): Try to place unknown tar files into proper slot
3568 when package exists in setup.ini but tar file does not.
3570 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
3572 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
3573 (do_choose): Log the first category name.
3575 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
3577 *ini.h: Reapply 2001-06-25 changes.
3578 * choose.cc (add_required): Ditto. Default to "Keep" state if
3579 UNINSTALL and product is installed. Default to curr state if SKIP,
3581 (keep_or_skip): New function. Returns skip or keep state depending on
3582 installed state of package.
3583 (default_trust): Use keep_or_skip to set state.
3584 (_view::insert_pkg): Use calloc to allocate lines.
3585 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
3587 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
3589 * choose.cc: Remove globals full_list, headers, package_indexes and
3591 Add globals cat_headers, pkg_headers and chooser.
3592 (add_required): New function.
3593 (paint): Use the chooser for header details.
3594 Call into the chooser to paint each line.
3595 (list_click): Use new global variables.
3596 Call into the chooser to handle the click.
3597 Repaint the entire view if packages have been added or removed.
3598 (note_width): Get passed a headers struct rather than using a global
3600 (fill_missing_category): New function.
3601 (default_trust): Skip non-"Required" or "Misc" packages.
3602 (pick_line::set_line (Package *)): New function.
3603 (pick_line::set_line (Category *)): New function.
3604 (pick_line::paint): New function.
3605 (pick_line::click): New function.
3606 (_view::_view): New function.
3607 (_view::set_view_mode): New function.
3608 (_view::mode_caption): New function.
3609 (_view::set_headers): New function.
3610 (_view::init_header): New function.
3611 (_view::insert_pkg): New function.
3612 (_view::insert_category): New function.
3613 (_view::insert_at): New function.
3614 (_view::insert_under): New function.
3615 (_view::clear_view): New function.
3616 (viewsplusplus): New function.
3617 (_view::client): New function.
3618 (set_view_mode): Use new chooser functionality.
3619 (set_full_list): Use new global variables.
3620 (create_listview): Instantiate chooser.
3621 Remove all hardcoded headers[] code.
3622 (dialog_cmd): On trust changes, check dependencies.
3623 (getcategorybyname): New function.
3624 (getpackagecategorybyname): New function.
3625 (scan2): Use case-insensitive package comparison.
3626 (do_choose): Use fill_missing_category ().
3627 Show some category data.
3628 * ini.h: Protect against multiple inclusion.
3630 (_CategoryPackage): New struct.
3631 (_Category): New struct.
3632 (_Package): Change category to Category * from char *.
3633 (extern Category category): New global variable.
3634 (extern in ncategories): Ditto.
3635 (getcategorybyname): New prototype.
3636 (catpackagecategorybyname): New prototype.
3637 (register_category): New prototype.
3638 (add_category): New prototype.
3639 * iniparse.y: Parse multiple categories per package.
3640 (category): New global variable.
3641 (ncategories): New global variable.
3642 (new_package): Compare package against NULL, not 0.
3643 (new_requirement): Source formatting fix.
3644 (register_category): New function.
3645 (add_category): New function.
3646 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3647 IDC_CHOOSE_VIEWCAPTION: New control.
3648 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3649 IDC_CHOOSE_VIEWCAPTION: New control.
3650 Increment _APS_NEXT_CONTROL_VALUE.
3652 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
3654 * choose.cc (paint): Wrap excessively long lines.
3655 (list_click): Ditto.
3656 (create_listview): Ditto.
3657 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
3658 setup.log.full. Allow "Yes" for source exists in setup.log.full when
3659 installing from local directories.
3661 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
3663 * choose.cc (set_action): Only clear srcpicked when moving to next
3664 state. Allow source installation if it exists in the current "trust"
3665 state. Don't move to skip state when package is installed.
3666 (list_click): Don't allow source clicking when no source is available.
3667 (set_full_list): Display package when not is_full_action.
3668 * ini.h (is_full_action): Define.
3670 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
3672 * install.cc (check_for_old_cygwin): New function. First stab at
3673 checking for old cygwin versions.
3674 (do_install): Call check_for_old_cygwin if there were no errors during
3677 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
3679 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
3680 than zeroed "source" element.
3682 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
3684 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
3685 the highest available "hole" in the trust array.
3687 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
3689 * choose.cc (set_existence): Use pointer method for indexing in trust
3691 (create_listview): Ditto.
3692 (scan2): Ditto. Also, use consistent variable name for indexing into
3694 * ini.h (Package): Reorganize info array for easier scanning.
3696 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
3698 * choose.cc (isinstalled): Eliminate special download only test.
3699 (set_action): Don't move to next state if in ACTION_SAME range and not
3701 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
3703 (do_choose): Sort packages after all packages have been read.
3704 Accomodate the fact that first element in trust array is empty so that
3705 log files don't report the wrong trust value.
3706 * iniparse.y (new_package): Malloc space for package name or suffer
3709 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
3711 * ini.h (Dependency): New structure. Declare new function.
3712 * inilex.l (yylex): Detect new setup.ini options - category and requires.
3713 * iniparse.y: Declare new setup.ini token values.
3714 (yyparse): Parse new token values.
3715 (new_requirement): New function.
3717 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
3719 * choose.cc (read_installed_db): Eliminate obsolete code.
3721 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
3723 * choose.cc (set_action): Set trust on "redo".
3724 (_Info::_Info): New constructor.
3725 (read_installed_db): Use new constructor. Use trusts type for
3727 * ini.h (struct _Info): Label struct, add constructor.
3728 (Package): Make installed_ix a type 'trusts.'
3729 * install.cc (uninstall_one): Unset any installed info for current
3731 (install_one): Allocate new Info struct for installed reflecting new
3733 (do_install): Don't output line to installed.db if package is being
3736 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
3738 * choose.cc (getpkgbyname): Use consistent method for scanning package
3741 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
3743 * choose.cc: Add some comments.
3744 (getpkgbyname): Use strcasecmp for comparisons.
3746 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
3748 * install.cc (do_install): Avoid checking for download action if
3749 package wasn't currently retrieved.
3751 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
3753 * choose.cc: Eliminate extra array throughout. Use element in package
3754 structure instead. Use pointers rather than array indexes where
3756 (set_action): New function to set next action based on current.
3757 (choose_caption): New function. Returns display caption.
3758 (check_existence): Change arguments. Use pointer to 'info' structure.
3759 (set_existence): Use pointer rather than array index.
3760 (default_trust): Use trusts enum for second argument.
3761 (set_full_list): Honor exclude element in package structure.
3762 (build_labels): Eliminate.
3763 (base): Make global. Use const char * argument.
3764 (get_package_version): Eliminate.
3765 (getpkgbyname): New function.
3766 (read_installed_db): Use parse_filename to get version info.
3767 * desktop.cc (make_passwd_group): Use getpkgbyname function.
3768 * download.cc (get_file_size): const argument.
3769 (do_download): Use is_download_action to determine when something
3770 should be downloaded.
3771 * filemanip.h: Add some functions.
3772 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
3773 * ini.h: Use enums for actions and trusts.
3774 (is_download_action): New macro.
3775 (is_upgrade_action): Ditto.
3776 (is_uninstall_action): Ditto.
3777 (struct Package): Add new fields.
3778 * inilex.l (yylex): Detect new setup.ini options.
3779 * iniparse.y: Declare new tokens.
3780 (yyparse): Detect exclude keyword. Fill out version field even if
3782 (new_package): Use greater granularity when allocating package array to
3783 avoid repeated calls to realloc.
3784 * install.cc (exists): const argument.
3785 (uninstall_one): Take pkg argument.
3786 (install_one): Ditto. Eliminate unneeded arguments which can be
3787 derived from package info.
3788 (do_install): Iterate over package array using a pointer. Use
3789 is_download_action to control when package should be downloaded.
3790 * tar.cc (tar_open): const argument.
3791 * tar.h: Refloect const argument.
3793 2001-05-31 Michael Chase mchase@ix.netcom.com
3795 * main.cc (WinMain): Add setup version to starting setup.log entry
3797 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
3799 * inilex.l: Add + to list of valid string characters.
3801 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
3803 * Makefile.in: Remove more stuff in the clean target.
3805 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
3807 * Makefile.in: Correctly generate iniparse.h.
3809 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
3811 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
3812 * geturl.h: Change declaration of `get_url_to_file' accordingly.
3813 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
3814 Set member `ftp_auth'.
3815 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
3816 to constructors of derived classes.
3817 (NetIO::get_ftp_auth): New method.
3818 * netio.h: Change class definition accordingly.
3819 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
3820 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
3821 Add code for ftp authentication retry.
3822 * nio-ftp.h: Change class definition accordingly.
3823 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
3824 Add code for ftp authentication retry in case of proxy connection.
3825 * nio-http.h: Change class definition accordingly.
3826 * res.rc: Add FTP authentication dialog.
3827 * resource.h: Add new constants used in res.rc.
3828 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
3830 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
3832 * res.rc (IDD_SPLASH): Add a copyright year.
3834 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
3836 * Makefile.in: Make iniparse.y produce a c++ file.
3837 * choose.cc (set_existence): Revert 2001-05-27 change.
3838 * ini.cc: Remove "C" from declaration of yyparse.
3839 * iniparse.y (yyparse): Fill out version field by default when a binary
3840 install is detected and no version has been set yet.
3841 * install.cc (do_install): Mount things earlier so that we can use
3842 proper mount table settings. Don't remove mounts since they are now
3844 * mount.cc (create_mount): Reread the mount table after establishing a
3846 (read_mounts): Explicitly clear root_here to allow multiple uses of
3847 this function. Ensure that there is no garbage in the table when we've
3848 exhausted all of the mounts in the registry.
3849 (cygpath): Accomodate ./ in path.
3851 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
3853 Use parse_filename method to parse filenames throughout. Use
3854 get_root_dir to retrieve the current root directory throughout. Set
3855 const in argument list, where appropriate, throughout.
3856 * choose.cc (set_existence): Detect case of uninstalled package with no
3858 (parse_filename): New function.
3859 * filemanip.h (fileparse): New structure.
3860 * mount.cc (read_mounts): Remember where we found the root mount.
3861 (set_root_dir): New function.
3862 (get_root_dir): Ditto.
3863 * mount.h: Declare new functions.
3864 * site.cc (get_root_dir_now): Renamed from get_root_dir.
3865 (save_site_url): Use new function name.
3866 (get_initial_list_idx): Ditto.
3868 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
3870 * choose.cc: Use a constant throughout to deal with chooser icon
3872 * res.rc (IDD_CHOOSE): Increase size of chooser box.
3874 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
3876 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
3877 use when Redownload or Sources Only selected.
3879 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
3881 Reformat file after botched patch formatting.
3882 * choose.cc (which_trust): Eliminate variable.
3883 (default_trust): Don't set which_trust.
3884 (do_choose): Use selected trust when reinstalling or installing source.
3886 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
3888 Change concat to cygpath throughout.
3889 Change map_filename to cygpath throughout.
3890 * concat.cc (vconcat): New function.
3891 (concat): Use vconcat.
3892 * concat.h: Reflect above.
3893 * install.cc (map_filename): Eliminate.
3894 (install_one): Free dest_file.
3895 * mount.cc (find2): Expect input key to be pointing to mount record.
3896 (in_table): New function.
3897 (is_admin): Move from root.cc.
3898 (read_mounts): New function.
3899 (path_prefix_p): New function.
3900 (cygpath): New function.
3901 * mount.h: Define new functions and structure.
3902 * root.cc (in_table): Move to mount.cc.
3903 (do_root): Call read_mounts to initialize root stuff and mount table.
3904 * site.cc (get_root_dir): Ditto.
3906 2001-05-09 Matt Hargett <matt@use.net>
3908 * Makefile.in: Remove *.rc from clean.
3910 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
3912 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
3913 TRUST_PREV which produced "0" versions.
3915 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
3917 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
3918 _APS_NEXT_CONTROL_VALUE to account for addition of
3919 IDC_CHOOSE_INST_TEXT.
3920 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
3921 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
3922 hot keys to select Prev, Curr, Exp.
3923 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
3924 define for LOOP_PACKAGES to include new actions ACTION_REDO and
3926 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
3927 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
3928 source Checkbox to use.
3929 (build_labels): Add logic to allow for selection of Source only
3930 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
3931 current version binary.
3932 (dialog_proc): Add conditional display for file selection prompt based
3933 on download vs install using IDC_CHOOSE_INST_TEXT.
3934 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
3935 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
3936 handle the instance where Source Download/Install was selected. Modify
3937 log file to store appropriate information regarding Action selected and
3938 the new actions that were added (I.E.: ACTION_REDO and
3940 * download.cc: Add include for <unistd.h> and "port.h".
3941 (download_one): Modify parameter list to include the selected action
3942 for the file to be downloaded. Modify size check against expected size
3943 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
3944 .tmp file to also remove the destination file if exists due to ability
3945 to redownload source and binary now.
3946 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
3947 calculation of Download Bytes. Modify to also use ACTION_REDO and
3948 ACTION_SRC_ONLY in determining files selected for download.
3949 * install.cc (uninstall_one): Add check to treat a Reinstall like an
3950 upgrade so current version will be uninstalled prior to reinstall.
3951 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
3952 uninstalling and installing binary and source packages.
3953 * desktop.cc (make_passwd_group): Modify logic to account for a Source
3954 only cygwin install when checking for cygwin to determine need for
3955 mkpasswd and mkgroup.
3957 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
3959 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
3960 Removed WS_DISABLED from "OK" buttons to accomodate default focus
3961 changes in net.cc and source.cc.
3962 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
3963 a default is selected.
3964 * winsup/cinstall/source.cc (dialog_proc): Ditto.
3965 (check_if_enable_next): Removed. No longer needed since a radio button
3966 will always be selected.
3967 (load_dialog): Removed call to check_if_enable_next.
3968 (dialog_cmd): Ditto. Also added default to switch.
3970 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
3972 * res.rc: Resize affected text.
3974 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
3976 * net.cc (do_net): Default to direct download.
3977 * res.rc: Move default selections to the top.
3979 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
3981 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
3982 Must now include <windows.h> and not the pieces.
3983 * choose.cc (create_listview): Clean up type mismatch problems.
3984 * dialog.h (NEXT(id)): Ditto.
3985 * geturl.cc (dialog): Ditto.
3986 * install.cc (dialog): Ditto.
3987 * splash.cc (load_dialog): Ditto.
3989 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
3991 * tar.cc (class gzbz): Define dummy virtual functions.
3993 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
3995 * Makefile.in: Add bz2 include/library support.
3996 * filemanip.h: New file.
3997 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
3999 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
4000 (read_installed_db): Ditto.
4002 * fromcwd.cc (found_file): Ditto.
4003 (do_fromcwd): Ditto.
4004 * tar.cc (class gzbz): New super class for uncompression support.
4005 (gz): New class for gzip support.
4006 (bz): New class for bzip2 support.
4007 (tar_open): Use gzbz class to control file opening.
4008 (tar_ftell): Ditto for returning position in file.
4009 (skip_file): Ditto for reading file.
4010 (tar_next_file): Ditto.
4011 (tar_read_file): Ditto.
4012 (tar_close): Ditto for close.
4014 * zlib/configure.in: Force NM substitution.
4016 * source.cc (do_source): Default to "Install from Internet".
4018 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
4020 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
4022 * choose.cc (list_click): Correct inability to select source code for
4024 (scan2): Modify to skip source tarballs when scanning disk for
4025 installable packages.
4027 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
4029 * install.cc: install sources into /usr/src instead
4030 of /, also include the sizes of source tarballs
4032 * download.cc: include sizes of source tarballs in
4033 total_download_bytes.
4035 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
4037 * download.cc (get_file_size): Remove `static'.
4039 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
4041 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
4043 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
4045 * choose.cc (paint): Modify message for nothing to download vs
4046 nothing to install/update based on installation method.
4047 (list_click): Modify to skip versions in selection process if
4048 installing from local directory and installation file does not exist.
4049 Also leaves Source Action set to N/A if the source file does not exist
4050 and installing from local directory.
4051 (check_existence): New method to check current existence of installation
4052 files based on selected installation method.
4053 (set_existence): New method to set the current existence of installation
4054 files based on selected installation method.
4055 (best_trust): Modify decision process for best trust to base decision on
4056 current trust selected (IE: Prev, Curr, or Test), existence of file and
4057 installation method selected.
4058 (default_trust): Add logic to capture the current trust level and the
4059 trust selected for the given package.
4060 (set_full_list): Expand decision criteria for displaying a package in
4061 the selection list to include file existence/non-existence and selected
4062 installation method.
4063 (build_labels): Modify criteria for label addition to include
4064 installation method and file existence/non-existence.
4065 (create_listview): Modify to establish package trust level for each
4066 package before setting up the display list. Also modification to set
4067 current trust button as the default.
4068 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
4069 a reset of the selection list in addition to setting the default trust.
4070 (get_package_version): New method to provide reusable code for
4071 determining the package version from the file name for a specified
4073 (scan2): Modify to use new method get_package_version and
4074 also enhance handling of the build for the structures package and
4076 (read_installed_db): Modify to use the new method
4077 get_package_version and also enhance handling of the build for the
4078 structures package and extra.
4079 (do_choose): Add additional initialization of package and extra
4080 structures. Modify to use read_installed_db all the time despite
4081 install method. Modify output to setup.log.full log file to increase
4082 readability by adding additional spacing, expanded code and available
4084 * ini.h: Add new fields install_exists, source_exists and
4085 partial_list_display to the structure definition for package.
4086 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
4087 pushbuttons by replacing with Radio Buttons thus allowing the
4088 operator to better determine which is selected.
4090 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
4092 * download.cc (do_download): Add new variables total_download_bytes and
4093 total_download_bytes_sofar for download progress meter. Add loop
4094 to accumulate the total bytes to download from the selected packages.
4095 * geturl.cc: Add state.h and diskfull.h to include list. Add new
4096 variables gw_iprogress, gw_pprogress, gw_progress_text,
4097 gw_pprogress_text, and gw_iprogress_text to allow for addition of
4098 total packages download progress meter and disk full percent
4099 progress meter. Add variables total_download_bytes and
4100 total_download_bytes_sofar for use by progress meters.
4101 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
4102 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
4103 allow for addition of total packages download progress meter and disk
4104 full percent progress meter.
4105 (init_dialog): Ditto.
4107 (get_url_to_file): Ditto.
4108 * geturl.h: Add external definition for total_download_bytes and
4109 total_download_bytes_sofar.
4110 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
4111 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
4112 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
4114 * resource.h: Add new fields for progress meters and text and update
4115 _APS_NEXT_CONTROL_VALUE.
4117 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
4119 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
4122 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
4124 * download.cc (download_one): Add missing parenthesis.
4126 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
4128 * download.cc (get_file_size): New function. Eliminates the need
4130 (download_one): Call `get_file_size' instead of `stat'. This
4131 workarounds a problem with mingw's `stat' call.
4133 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
4135 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
4136 This is to allow cinstall to build with 2.95.2-7 and to make the
4137 use of headers consistent.
4139 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
4141 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
4143 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
4145 * winsup/cinstall/res.rc: Added accelerators and improved focus
4148 2000-12-10 Egor Duda <deo@logos-m.ru>
4150 * choose.cc (paint): Use system background color for text output.
4152 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
4154 * Makefile.in: Use CXX for linking and for compiling .cc files.
4155 * configure.in: Find correct c++ compiler.
4156 * configure: Regenerate.
4158 2000-11-17 DJ Delorie <dj@redhat.com>
4160 * splash.cc (load_dialog): Make message more obvious.
4163 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
4165 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
4166 necessary for newer compilers.
4168 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
4170 * desktop.cc: Include "ini.h" and "version.h".
4171 (make_passwd_group): Skip the function on 9x/ME boxes when an
4172 older version of Cygwin has been installed which doesn't
4173 support mkpasswd/mkgroup on 9x/ME.
4174 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
4177 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
4179 * desktop.cc (make_passwd_group): Don't exit when started
4180 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
4182 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
4184 * install.cc (do_install): Add call to set_cygdrive_flags to sync
4186 * mount.cc (set_cygdrive_flags): New function.
4187 (get_cygdrive_flags): Ditto.
4188 (default_cygdrive): Ditto.
4189 (set_cygdrive_flags): Ditto.
4190 * mount.h: Add prototype for set_cygdrive_flags.
4192 2000-10-23 DJ Delorie <dj@redhat.com>
4194 * ini.h: add source actions
4195 * fromcwd.cc: check for available sources
4196 * res.rc: add checkbox bitmaps
4199 * choose.cc: add source column
4200 * download.cc: download sources if called for
4201 * install.cc: [un]install sources too
4203 2000-10-22 DJ Delorie <dj@redhat.com>
4205 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
4206 ignore it wrt full_list if there's already a version installed.
4207 (do_choose): Sort the list.
4208 (package_sort): New.
4210 2000-10-12 DJ Delorie <dj@redhat.com>
4212 * res.rc: Add more error strings.
4213 * resource.h: Ditto.
4214 * iniparse.y (new_package): re-initialize if needed.
4215 * download.cc (do_download): Keep track of errors; notify and
4217 * install.cc (do_install): Ditto.
4219 2000-10-05 DJ Delorie <dj@redhat.com>
4221 * Makefile.in: fix %.cc rule
4223 2000-10-04 DJ Delorie <dj@redhat.com>
4225 * desktop.cc: quote HOME and USER, don't . ./.profile
4227 * choose.cc (build_labels): don't include in partial list just
4228 because there's a *previous* version available.
4230 * install.cc (do_install): if installing from local directory with
4231 setup.ini and the file isn't found, look in "." also. Note errors.
4233 2000-10-02 DJ Delorie <dj@redhat.com>
4235 * ini.cc (do_ini): save setup.ini locally
4237 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
4239 * desktop.cc: quote escapes in prompt
4241 2000-10-02 Jason Tishler <jt@dothill.com>
4243 * root.cc (is_admin): New function.
4244 (read_mount_table): Check for administrative priviledges and set
4245 installation scope as appropriate.
4247 2000-09-28 DJ Delorie <dj@redhat.com>
4249 * nio-ftp.cc (ftp_line): handle continuations more robustly
4251 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
4253 * res.rc: increased the size of the site dialog (IDD_SITE) & the
4254 corresponding list box to provide for more URL's to be listed.
4255 Modified the position of the Back, Next and Cancel buttons to
4256 correspond to the new size of the dialog.
4258 2000-09-13 DJ Delorie <dj@redhat.com>
4260 * install.cc (do_install): update disk fullness once per package
4261 to improve performance
4263 * choose.cc (create_listview): call ReleaseDC
4265 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
4267 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
4268 returned, as it seems Samba 2.0.6+ returns this instead of
4269 ERROR_PATH_NOT_FOUND
4271 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
4273 * site.cc (get_initial_list_idx): Don't default to saved URL if it
4276 2000-09-07 DJ Delorie <dj@redhat.com>
4278 * splash.cc: use version.h, not local decl
4279 * res.rc: add "old version" message
4282 * fromcwd.cc (canonicalize_version): make global
4283 * iniparse.y: add setup-version support, fix bug in blank line
4286 * inilex.l: add [exp] as alias for [test], add setup-version
4287 * Makefile.in (version.c): add setup-version tag
4289 * desktop.cc (do_desktop): remove 1.1 version number
4290 (do_desktop_setup): ditto
4292 * ini.cc (do_ini): zero out package list just in case we redo it.
4294 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
4296 * choose.cc (list_click): Check for nindexes==0; if so, return.
4298 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
4300 * localdir.cc: new, local package directory selection dialog; cd
4301 into selected directory
4302 * Makefile.in (OBJS): add localdir.o
4303 * dialog.h: add prototype for do_local_dir
4304 * main.cc (WinMain): initialize local_dir to cwd; add call to
4306 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
4307 * source.cc (dialog_cmd): ditto
4308 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
4309 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
4310 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
4311 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
4312 * state.h: add local_dir variable
4314 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
4316 * desktop.cc: added logic to handle to the new dialog and to
4317 default the setting for the new checkboxes based on whether the
4318 desktop icon or start menu link already exist.
4319 (desktop_icon): correction to desktop directories for desktop icon
4320 creation. Additional logic added for Win95 which does not appear
4321 to have Common Directories so if Common selected and null uses
4323 (start_menu): Additional logic added for Win95 which does not
4324 appear to have Common Directories so if Common selected and null
4325 uses normal directory.
4326 (do_desktop_setup): moved the saving of the icon, creation of the
4327 bat file, profile, passwd, Start Menu link and desktop shortcut to
4328 this method from do_desktop. Made the creation of the desktop
4329 icon and start menu link conditional on settings of new dialog
4330 created for desktop.
4331 * install.cc (do_install): changed next from IDD_S_DESKTOP to
4333 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
4334 * res.rc: added new resource to create a desktop dialog with 2
4335 checkboxes for creating the desktop icon and start menu link.
4336 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
4337 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
4338 * state.h: added root_menu and root_desktop for use in dialog.
4340 2000-08-29 DJ Delorie <dj@redhat.com>
4342 * choose.cc (scan_downloaded_files): scan for existing files, so
4343 that the user only sees new downloads.
4345 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
4346 * site.cc (do_site): if we can't download the mirror list, go back
4347 to the net setup box to choose another transport.
4348 * autoload.c: add more functions
4349 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
4350 * resource.h: add WININET message
4352 * net.cc (do_net): no longer default to IE5
4353 * simpsock.h (class SimpleSocket): new, simplify socket operations
4354 * simpsock.cc: ditto
4355 * nio-http.h: new, for direct http protocol
4356 * nio-http.cc: ditto
4357 * nio-ftp.h: new, for direct http protocol
4359 * netio.cc (set_url): move initialization here to handle redirections
4360 (open): add direct http/ftp
4361 * netio.h (NetIO::set_url): new
4363 * log.cc (log_save): create directory for log if needed
4365 * hash.cc, hash.h: new
4366 * Makefile: add hash.o
4367 * choose.cc: enable "uninstall" option
4368 * download.cc: invert action test to accomodate uninstalling
4369 * ini.h: add ACTION_UNINSTALL
4370 * install.cc: add uninstall functionality
4371 * res.rc: make install tag changeable
4372 * resource.h: add uninstall resources
4374 * res.rc: update mirror list URL
4376 2000-08-24 DJ Delorie <dj@redhat.com>
4378 * log.cc, log.h: new files
4379 * Makefile.in (OBJS): add log.o
4380 * tar.cc: use exit_setup instead of exit
4381 * dialog.cc (fatal): use exit_setup instead of ExitProcess
4382 * msg.cc (fatal): ditto
4383 * install.cc (dialog_cmd): ditto
4384 * ini.cc (do_ini): ditto
4385 * main.cc (main): add logging
4386 * source.cc (do_source): ditto
4387 * root.cc (do_source): ditto
4388 * site.cc (do_site): ditto
4389 * other.cc (do_other): ditto
4390 * net.cc (do_net): ditto
4391 * choose.cc (do_choose): ditto
4392 * download.cc (do_download): ditto
4393 * install.cc (do_install): ditto
4394 * msg.cc (fatal): ditto
4396 * res.rc: mark password boxes as *being* password boxes.
4398 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
4399 calls won't use the same buffer.
4400 * choose.cc (create_listview): don't default to full list if no changes
4401 (base): return computed value, not temporary :-(
4402 (do_choose): don't use installed.db if we're only downloading.
4404 2000-08-23 DJ Delorie <dj@redhat.com>
4406 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
4407 * nio-ie5.h (flush_io): new
4408 * netio.cc (load_dialog): note when we're initializing the dialog
4409 box, and ignore changes to the edit fields then.
4411 2000-08-21 DJ Delorie <dj@redhat.com>
4415 * fromcwd.cc (found_file): don't remember the canonicalized version
4417 * choose.cc (paint): print "nothing to do" message when list is empty.
4418 (build_labels): Use version "0.0" if no version is available.
4419 (create_listview): default to full list if nothing to install/update.
4420 (base): new, returns basename of file
4421 (read_installed_db): compare base names, not full paths
4423 2000-08-11 DJ Delorie <dj@redhat.com>
4425 * choose.cc: add new chooser dialog
4426 * fromcwd.cc: use IDD_CHOOSE
4427 * ini.cc: use IDD_CHOOSE
4428 * main.cc: use IDD_CHOOSE
4429 * ini.h: cosmetic changes
4430 * res.rc: add choose dialog, bitmaps
4431 * choose-spin.bmp: new
4432 * choose-rtarrow.bmp: new
4433 * resource.h: add choose dialog controls
4435 * mount.cc: remove debug statement
4437 2000-08-08 DJ Delorie <dj@redhat.com>
4439 * Makefile.in (version.c): make version checking more robust
4440 * splash.cc (load_dialog): handle case where there's no version
4442 2000-08-07 DJ Delorie <dj@redhat.com>
4444 * (all): add cvsid tags
4445 * Makefile.in: generate version.c from ChangeLog, add splash.o
4447 * res.rc: add splash screen
4449 2000-08-02 DJ Delorie <dj@redhat.com>
4451 * net.cc: remove proxy password code
4452 * res.rc: remove proxy user/pass from net, add auth dialogs
4453 * netio.cc,h: add sys/proxy auth methods
4454 * nio-ie5: use them, check for http status codes
4455 * state.h: add system authorization
4457 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
4460 2000-08-02 Norman Vine <nhv@yahoo,com>
4462 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
4464 2000-08-01 DJ Delorie <dj@redhat.com>
4466 * postinstall.cc (each): don't rename files we ignore
4467 (do_postinstall): set CYGWINROOT to root_dir, chdir there
4469 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
4471 2000-07-31 DJ Delorie <dj@redhat.com>
4473 * desktop.cc: reverse PATH so /usr/bin precedes /bin
4475 2000-07-18 DJ Delorie <dj@redhat.com>
4477 * autoload.c: new, autoload dlls that might not be available.
4478 * Makefile.in (OBJS): add autoload.o
4480 * res.rc: rewrite root options (text/binary, system/user) to be
4483 * site.cc (get_site_list): trim displayed URL, sort by domain
4485 * net.cc (do_net): make IE5 default to checked, for now
4487 * choose.cc (do_choose): sort packages correctly
4488 * ini.cc (do_ini): handle parse errors more gracefully
4490 (fprintf): line buffer output
4491 (do_ini): if we can't load setup.ini, go back to the site list.
4492 * ini.h: add "unknown" trust level
4493 * inilex.l: absorb unknown trust levels and key/value pairs,
4494 add line number logic
4495 * iniparse.y: handle parse errors more gracefully.
4496 * install.cc: skip packages with no valid install entry
4498 2000-07-17 DJ Delorie <dj@cygnus.com>
4500 * coding standards fixups, many files
4501 * mkdir.cc: warn about deletions *before* deleting them
4503 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
4505 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
4507 * other.cc (dialog_cmd): save download site URL
4508 * site.cc (get_root_dir): new
4509 (save_mirror_site): new
4510 (dialog_cmd): save download site URL
4511 (get_site_list): make list big enough to add prev site
4512 (get_initial_list_idx): new, read last-used URL from file and
4513 append it to site_list
4514 (do_site): call get_initial_list_idx
4516 * concat.cc (concat): avoid segfault when first parm is null
4518 2000-07-13 DJ Delorie <dj@cygnus.com>
4520 * postinstall.cc: new
4521 * Makefile.in: add postinstall.o
4522 * concat.h: add backslash ()
4524 * desktop.cc (etc_profile): don't do postinstall
4525 (backslash): moved to concat.cc
4527 (make_postinstall_script): run directly
4528 (do_desktop): chain to do_postinstall
4529 * dialog.h: add exit_msg, do_postinstall
4530 * download.cc: use exit_msg
4532 * main.cc: add postinstall, exit_msg
4533 * resource.h: add postinstall
4534 * README: add more to-do items
4536 2000-07-12 DJ Delorie <dj@cygnus.com>
4538 * desktop.cc: add /etc/postinstall/ support
4539 * install.cc: add more "standard" directories
4541 2000-07-11 DJ Delorie <dj@cygnus.com>
4543 * desktop.cc: create /etc/profile
4544 * desktop.cc: fix include syntax
4545 * Makefile.in: add auto-dependencies
4546 * root.cc: support system vs user
4554 * desktop.cc: make sure we use backslashes, not slashes.
4555 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
4556 * geturl.cc: change math for percentage to avoid overflow
4558 * download.cc: post "download complete" message.
4559 * root.cc: pre-fill in defaults if needed, don't start
4560 browse at root_dir unless it's set.
4561 * desktop.cc: quote $PATH in case it has spaces in it
4563 2000-07-10 DJ Delorie <dj@cygnus.com>
4565 * Makefile.in: add desktop.o and mklink2.o
4566 * dialog.h: add do_desktop
4567 * install.cc: create standard directories, call do_desktop
4568 * res.rc: add cygwin.ico as a file also
4569 * desktop.cc: new, do shortcuts, batch files, and icons
4570 * mklink2.c: new, for COM
4571 * README: update to-do list
4573 2000-07-10 DJ Delorie <dj@cygnus.com>
4575 * ini.cc (do_ini): don't worry about timestamps if we're not
4576 actually installing.
4578 2000-07-09 DJ Delorie <dj@cygnus.com>
4580 * Makefile.in: add -I$(srcdir) for ini.h
4582 2000-07-06 DJ Delorie <dj@cygnus.com>
4584 * Replace everything with a new GUI version
4585 * zlib/gzio.c: add gzctell() for progress displays
4587 2000-06-22 DJ Delorie <dj@cygnus.com>
4589 * setup.c (tarx): re-add call to write_pkg()
4591 2000-06-07 DJ Delorie <dj@cygnus.com>
4593 * cygcalls.c: new, call cygwin1.dll functions directly
4594 * cygcalls.h: header for same
4595 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
4596 exes, fix cinstall.rc dependencies.
4597 * path.c: remove unneeded code
4598 * setup.c: use cygcalls instead of xcreate_process.
4599 uncompress embedded files with zlib
4600 add "-d" for "download only"
4602 postpone mount changes until very end
4603 add download progress indicators
4604 pack multi-column listings more
4605 auto-delete temp files
4606 customize banner message according to options
4607 prompt user for text/binary mounts
4608 add warnings about empty setup directory, root installs, etc
4610 2000-05-24 DJ Delorie <dj@cygnus.com>
4612 * tar.c: New file; built-in tar using zlib.
4613 * tar.h: New file; header for same.
4614 * ctar.c: New file; test program for same.
4615 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
4616 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
4617 * setup.c (tarx): add support for built-in tar
4618 (main): accept unix-style slashes, check root dir for drive letters,
4619 warn about installing in /, make sure cwd is empty for internet installs,
4620 defer mounts to end of install, support built-in tar.
4622 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
4624 Fix compiler warnings throughout.
4625 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
4627 * setup.c: Make 'root' global.
4628 (istargz): Return pointer to "stem" of matched .tar.gz file.
4629 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
4630 bogus check_for_installed check.
4631 (recurse_dirs): Add preliminary support for .bat file execution.
4632 (create_uninstall): Eliminate unneeded parameter.
4633 (do_start_menu): Ditto.
4635 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
4636 scanning for the version number. Eliminate unneeded argument to
4638 (getdownloadsource): Add 'name' to list of names rather than url.
4639 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
4640 unneeded argument in mkmount and do_start_menu.
4642 2000-05-18 DJ Delorie <dj@cygnus.com>
4644 * setup.c (optionprompt): allow multi-column, clean up message
4645 about more options, be more robust about user input.
4646 (getdownloadsource): make the mirror URL a macro.
4647 (main): do mounts after done prompting user.
4649 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
4651 * setup.c (cleanup): Inverse order of deletion stands a better chance
4652 of deleting cygpath.exe. Still seems to suffer from occasional races,
4654 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
4656 (output_file): Defend against an unlikely handle leak.
4657 (main): Don't set up signal handling until we have something special to
4660 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
4662 * path.c (kill_cygpath): Delete function.
4663 (exit_cygpath): Make more defensive so that it can be called at any
4665 (cygpath_pipe): Don't set up signal here. Do it in main().
4666 * setup.c (istargz): New function.
4667 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
4668 inexplicably fails on samba mounted partitions. Use istargz to match
4670 (processdirlisting) Use istargz to match tar.gz tail.
4671 (cleanup): Renamed from filedel.
4672 (cleanup_on_signal): New function. Called on CTRL-C.
4673 (main): Record handle of main thread so that it can be suspended when
4674 CTRL-C occurs. Set up cleanup_on_signal signal handler.
4676 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
4678 * setup.c (do_start_menu): Don't concatenate paths to already built
4681 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
4683 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
4684 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
4686 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
4688 * setup.c (filedel): Call exit_cygpath here so that we can be assured
4689 that cygpath subprocess has died. This allows us to delete cygpath.exe
4691 (optionprompt): Initialize response to -1 so that second screen of
4692 mirrors will appear.
4693 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
4694 * setup.h: Reflect init_pkgs prototype change.
4696 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
4698 * pkg.c (init_pkgs): Accept an argument to control what root registry
4700 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
4701 * setup.h: Reflect init_pkgs prototype change.
4703 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
4705 * error.c (winerror): Respond to gcc warning.
4706 * path.c (cygpath_pipe): Ditto.
4707 * setup.c (filedel): Call sa_cleanup on deleteme.
4708 (create_shortcut): Coerce argument to eliminate compiler warning.
4709 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
4710 (refmatches): New function. Tests if ref is contained in a list of
4711 packages to install.
4712 (filematches): New function. Tests if filename matches one of a list
4713 of packages to install.
4714 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
4715 test to accomodate _tar.gz.
4716 (prompt): Ensure that stdout is flushed prior to asking for input.
4717 (findhref): Initialize variables to quiet a compiler warning.
4718 (processdirlisting): Accept list of packages to install. Special case
4719 cygwin tar file version number.
4720 (downloaddir): Accept list of packages to install.
4721 (downloadfrom): Ditto.
4722 (create_uninstall): Eliminate unneeded variables. Quote arguments to
4724 (do_start_menu): Don't create uninstall bat file if updating or user
4725 specified a list of packages.
4726 (mkmount): Eliminate unneeded variables.
4727 (get_pkg_stuff): New function. Checks for previous unversioned
4729 (main): Accept -u and -f options and package names on the command line.
4730 Use get_pkg_stuff to initialize package information. Umount /etc.
4731 Call recurse_dirs and downloadfrom with list of package to install.
4732 Ensure that all /usr/local directories are created. Output
4733 installation time to setup.log.
4734 * setup.h: Add some prototypes.
4735 * xsystem.c (xcreate_process): Eliminate unneeded variable.
4737 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
4739 * setup.c (optionprompt): Don't overlap display of already seen options
4741 (geturl): Print name of site which we're connecting to rather than "ftp
4743 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
4744 test too simplistic?
4745 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
4746 problems when user chooses x:\ as their root.
4747 (main): For now, default to "non-update" mode. Allow -u option to
4750 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
4753 * setup.c (tarx): Skip already installed or older packages. Report
4754 when a package has been updated.
4755 (processdirlisting): Skip already installed or older packages.
4756 (main): Detect -f option for forced installation. Initialize pkg stuff
4758 * setup.h: Add pkg definitions.
4760 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
4762 * setup.c (findhref): Return NULL on empty string. Eat any trailing
4764 (processdirlisting): Attempt to limit recursively processing the same
4767 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
4769 * setup.c (filedel): New function.
4770 (output_file): Keep track of files extracted from setup.exe for
4771 subsequent deletion.
4772 (tarx): Close process handle of child tar process or suffer handle
4774 (getdownloadsource): Close mirror file so that it can be unlinked.
4775 (processdirlisting): Return total number of files extracted.
4776 (main): Initialize array of files to delete. Ensure that files are
4777 closed on exit. Make the directory that setup.exe is started from ==
4778 the directory where temporary files are placed. Issue an error if no
4779 files were found to download.
4780 * xsystem.c (xcreate_process): Close the thread handle. Close the
4781 process handle if we waited for it to exit.
4783 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
4785 * setup.c (main): Change version number output.
4787 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
4789 * setup.c (tarx): Use full path name to tar executable.
4790 (main): Build full pathname to tar executable. Create /usr/local/etc
4793 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
4795 * setup.c (findhref): Change method for scanning for href= to choose
4796 the last one on the line. This is still not foolproof and probably
4797 will need to be changed eventually. Don't abort if no "size" field is
4799 (processdirlisting): Fix boolean algebra.
4801 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
4803 * main.c (tarx): Add some code for future task of unmounting
4804 directories encountered in tar file.
4806 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
4808 * setup.c (findhref): Decode file size, when appropriate.
4809 (needfile): New function. Returns 1 when file should be
4811 (processdirlisting): Always download if file size does not
4812 match. Prompt when download fails for some reason.
4813 (getdownloadsource): Accomodate findhref argument changes.
4815 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
4817 Throughout, use global session handle rather than reinitializing for
4818 each connect. Don't pass session as an argument to setup.c functions.
4819 * setup.c (geturl): Only issue "Connecting to.." message when using
4820 http or first time for ftp since subsequent connections will be fast.
4821 (processdirlisting): Allocate space for "N" when user has specified
4822 "N"ever option so that it can be subsequently freed.
4823 (main): Abort if we can't get the list of mirrors.
4825 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
4827 * setup.c (main): Umount /bin and /lib.
4829 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
4831 * setup.c (main): Create an empty /var/run/utmp.
4833 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
4835 * Makefile.in: Add umount to list of files to include in setup.exe.
4836 * setup.c (xumount): New function for unmounting directories.
4837 (main): Unmount /usr.
4838 (mkmount): Unmount "unix directory" before trying to figure out where
4839 to create the directory.
4841 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
4843 * setup.c (mkmount): Use xcreate_process to start mount process,
4845 (main): Don't do buffering on stdout or prompts won't be displayed
4846 correctly if running in a cygwin shell with CYGWIN=tty.
4848 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
4850 * setup.c (main): Remove the CYGWIN environment variable before
4851 starting any cygwin programs.
4853 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
4855 * setup.c (geturl): Use alternative method for finding filename part of
4857 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
4858 (downloaddir): Unlink file containing dir listing.
4859 (downloadfrom): Ditto.
4861 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
4863 * setup.c (main): Disallow running setup.exe from the "root".
4865 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
4867 Use "warning" function, where appropriate, to output warnings.
4868 * setup.c (warning): New function -- outputs warning to console and log
4870 (tarx): Fix index used to reset file protection.
4871 (main): Open the log file earlier so that more stuff can be sent to it.
4873 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
4875 * setup.c (processdirlisting): Make "N" option a little less aggressive.
4877 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
4879 * setup.c (tarx): Wait to after tar has completed to reset protections
4880 or suffer races with tar process.
4882 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
4884 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
4885 * setup.c (create_uninstall): Create the uninstall .bat file in the
4886 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
4887 list of files to be deleted. Fix directory detection for determining
4888 when to use 'rmdir'.
4889 (do_start_menu): Add /usr/local/bin to the path.
4890 (main): Add slop to files.array allocation so that we don't have to
4891 worry about reallocating the array when it grows too large when doing
4892 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
4895 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
4897 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
4900 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
4902 * path.c (kill_cygpath): New cleanup function.
4903 (exit_cygpath): New cleanup function.
4904 (cygpath_pipe): New function. Sets up cygpath in the background for
4905 translating filenames.
4906 (pathcvt): Use background cygpath for file translation.
4907 * setup.c (tarx): New function. Called to extract tar files, capture
4908 logging output, and translate it to Windows format.
4909 (recurse_dirs): Use 'tarx' function to extract files.
4910 (create_uninstall): Use file list built up by tarx rather than reading
4912 (mkmount): Add ability to mount root.
4913 (main): Track elapsed install time. Mount root.
4914 * starry.h: Add index field to strarry for tracking of tarx's usage of
4916 * xsystem.c (xcreate_process): Return proces handle when not waiting.
4918 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
4921 (pathfp): New function. Preliminary work for new -f cygpath
4923 * Makefile.in: Add new file.
4924 (pathcvt): Move to new file.
4928 * setup.c (processdirlisting): Always open file in text mode.
4929 (create_uninstall): Ditto.
4930 (getdownloadsource): Ditto.
4933 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
4935 * xsystem.c: New file.
4936 * Makefile.in: Accomodate new file.
4937 * setup.c (xsystem): Move to new file.
4938 (recurse_dirs): Accept handle to output log file. Don't use ">"
4939 redirection to trap tar output. Use supplied handle instead.
4940 (create_uninstall): Accept FILE pointer to opened log file. Don't
4941 unlink log file here.
4942 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
4943 (main): Open log file here and pass it to various functions. Unlink
4946 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
4948 Change occurrences of .usr.bin to .bin throughout.
4949 * setup.c (geturl): Increase number of retries to 20. Let user know
4950 what's going on during long connects.
4951 (processdirlisting): Accept "A"lways and "N"ever as update options.
4952 (create_uninstall): Load cygwin1.dll from the current directory rather
4954 (main): Add some expository text.
4956 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
4958 * Makefile.in: Change method for compressing cygwin1.dll to avoid
4959 creating a cygwin1.dll in the current directory. Ensure the addition
4960 of -nostdinc to MINGW_CFLAGS.
4962 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
4964 * Makefile.in: Augment clean target.
4966 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
4968 * README: Added info about non-working mingw implementation
4969 * gzip.exe.gz: Replace with a version from the same build as the other
4971 * tar.exe.gz: Replace with a version from the same build as the other
4973 * mount.exe.gz: Add to repository until, mingw can build setup.
4974 * cygpath.exe.gz: ditto
4975 * cygwin1.dll.gz: ditto
4976 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
4977 for Win9x. Display only a screenfull of options at a time. Call all
4978 tools with an absolute path.
4979 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
4984 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
4986 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
4987 cygwin1.dll from ../cygwin subdirectory.
4988 * gzip.exe.gz: Update.
4989 * tar.exe.gz: Update.
4991 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
4993 * Makefile.in: Use ZLIB variable as a target.
4995 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
4997 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
4998 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
5000 * configure.in: Locate correct objcopy.
5001 * configure: Regenerate.
5003 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
5005 * Makefile.in: New file.
5006 * configure.in: New file.
5007 * configure: New file.
5008 * zlib/Makefile.am: New file.
5009 * zlib/configure.in: New file.
5010 * zlib/aclocal.m4: New file.
5011 * zlib/acinclude.m4: New file.
5012 * zlib/configure: Regenerate from configure.in.
5013 * zlib/Makefile.in: Regenerate from Makefile.am