1 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
3 * PickCategoryLine.cc: Change bucket to use STL container syntax
5 (PickCategoryLine::paint): Use new Category type syntax.
6 * PickCategoryLine.h: Use STL vectors rather than custom containers
8 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageCategory):
9 Use new add_category syntax.
10 * PickView.cc (PickView::insert_pkg): Use new Category type syntax.
11 (PickView::insert_category): Ditto.
12 (PickView::init_headers): Ditto.
13 * category.cc: Trim obsolete code.
14 * category.h: Replace interconnecting class with a typedef to
15 facilitate leveraging STL maps.
16 * choose.cc (fill_missing_category): Use updated pkg.add_category
18 (default_trust): Use new Category type syntax.
19 (set_view_mode): Ditto.
20 (create_listview): Ditto.
21 * package_db.cc (categories): Ditto.
22 * package_db.h: Update headers list to include needed headers.
23 (packagedb::categories): Replace custom list with STL map.
24 * package_meta.cc: Use new Category type syntax throughout.
25 (packagemeta::add_category): Implement new syntax.
26 * package_meta.h: Remove commented out source.
27 (packagemeta::add_category): Update syntax to decouple interface from
30 2002-07-06 Christopher Faylor <cgf@redhat.com>
32 * site.cc (do_download_site_info_thread): Correct spelling error.
34 2002-07-06 Robert Collins <rbtcollins@hotmail.com>
36 * PickCategoryLine.h: Include required header list.h.
37 * PickPackageLine.cc (PickPackageLine::paint): Adjust to use STL
38 containers for listing of packages per category and vice verca.
39 * PickView.cc (PickView::insert_pkg): Ditto.
40 (PickView::insert_category): Ditto.
41 * String++.h (String::caseless): STL helper to allow trivial containers
42 of Strings with case insensitive comparisons.
43 * category.h: Adjust to use STL containers for listing of packages per
44 category and vice verca.
45 * choose.cc (fill_missing_category): Ditto.
46 (default_trust): Ditto.
47 (ChooserPage::OnNext): Ditto.
48 * package_meta.cc (CategoryPackage::~CategoryPackage): Remove.
49 (packagemeta::packagemeta): Adjust for new category list name.
50 (packagemeta::~packagemeta): Adjust to use STL containers for listing
51 of packages per category and vice verca.
52 (packagemeta::set_action): Ditto.
53 * package_meta.h (CategoryPackage): Remove.
54 (packagemeta): Adjust to use STL containers for listing of packages per
55 category and vice verca.
57 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
59 * io_stream.cc: Use STL containers rather than custom ones.
60 (io_stream::registerProvider): Ditto.
61 (findProvider): Ditto.
63 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
65 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
66 Use STL collections for download site collections.
67 (IniDBBuilderPackage::add_correct_version): Ditto.
68 (IniDBBuilderPackage::process_src): Ditto.
69 * PickPackageLine.cc (PickPackageLine::click): Use the packageversion
70 accessible() call to abstract package availability.
71 * choose.cc (scanAVersion): Use STL collections for download site
73 * download.cc (check_for_cached): Ditto.
74 (download_one): Ditto.
75 * package_meta.cc (packagemeta::set_action): Use the packageversion
76 accessible() call to abstract package availability.
77 * package_source.h: Use STL containers rather than custom containers.
78 (site): Create a == operator to allow STL container use.
79 (packagesource::sites): Use STL containers rather than custom
81 * package_version.cc (_packageversion::accessible): Use STL containers
82 for download site containers.
84 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
86 * LogFile.cc: Use STL containers rather than custom containers.
87 (filedef): Create == and < operators for STL use.
88 (files): Convert to an STL set.
89 (LogFile::setFile): Use STL operations on files.
90 (LogFile::exit): Ditto.
92 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
94 * ini.cc (do_remote_ini): Use STL collection for site collection.
95 * site.cc: Include site.h first to ensure it's parsable standalone.
97 (site_list): Convert to an STL container.
98 (all_site_list): Ditto.
99 (site_list_type::site_list_type): Implement copy constructor.
100 (site_list_type::operator=): Implement assignment operator.
101 (site_list_type::operator ==): Implement.
102 (site_list_type::operator <): Ditto.
103 (save_dialog): Use STL collection calls for site collection.
104 (save_site_url): Ditto.
105 (get_site_list): Ditto.
106 (get_saved_sites): Ditto.
107 (do_download_site_info_thread): Ditto.
108 (SitePage::OnNext): Ditto.
109 (SitePage::PopulateListBox): Ditto.
110 (SitePage::OnMessageCmd): Ditto.
111 * site.h: Use STL vectors instead of custom code.
112 (site_list_type::site_list_type): Declare.
113 (site_list_type::operator=): Ditto.
114 (site_list_type::operator ==): Ditto.
115 (site_list_type::operator !=): Ditto.
116 (site_list_type::operator <): Ditto.
117 (site_list_type::operator <=): Ditto.
118 (site_list_type::operator >): Ditto.
119 (site_list_type::operator >=): Ditto.
120 (site_list): Convert to an STL container.
121 (all_site_list): Ditto.
123 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
125 * choose.cc (default_trust): Check package accessibility before
126 triggering an install. (Suggested by Pavel).
128 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
130 * compress_gz.cc (compress_gz::construct): Always initialize key members
131 to ensure the destructor does the right thing.
133 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
135 * filemanip.cc (parse_filename): Do not try to parse empty
137 * package_db.cc (packagedb::packagedb): For each line check if sscanf()
138 extracted good package name and filename.
140 2002-07-03 Robert Collins <rbtcollins@hotmail.com>
142 * package_meta.cc (packagemeta::set_requirements): Automatically select
143 version of dependent packages that satisfies the requirements.
144 Use processOneDependency to trigger the install of those packages.
145 (checkForInstalled): Check that the package remains installed.
146 (processOneDependency): Helper function for dependent packages.
147 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackage): Add more
149 Clear out all current state on new packages.
150 (IniDBBuilderPackage::add_correct_version): Copy the dependency list
153 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
155 * Makefile.am (inilint_SOURCES): Add PackageSpecification sources.
156 nb: inilint is still incomplete, as the packageversion code is not
157 ready for database-less linking.
158 * site.cc (get_site_list): When the same site is reentered by the user
159 replace the old one. (Suggested by John Marshall).
161 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
163 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
164 Clear out package selections when generating implicit source packages.
165 * PackageSpecification.cc (PackageSpecification::satisfies): Implement.
166 (PackageSpecification::_operators::satisfies): Implement.
167 * PackageSpecification.h (PackageSpecification::_operators::satisfies):
168 Worker function for testing versions.
170 2002-07-01 Robert Collins <rbtcollins@hotmail.com>
172 * IniDBBuilder.cc (IniDBBuilder::buildPackageRequirement): Remove.
173 * IniDBBuilder.h (IniDBBuilder::buildPackageRequirement): Ditto.
174 * IniDBBuilderPackage.cc: Use the STL algorithms.
175 Change cpv to cbpv throughout. Adjust -> to ., and use the new accessor
176 functions for the same variable throughout.
177 (IniDBBuilderPackage::IniDBBuilderPackage): Initialise new members.
178 (IniDBBuilderPackage::buildPackage): Use new cygpackage syntax,
179 and set an empty source package.
180 (IniDBBuilderPackage::buildPackageInstall): Use the new source member
181 to record an install package.
182 (IniDBBuilderPackage::buildPackageSource): Move source package logic
183 out from process_src, as it now occurs at separate times.
184 (IniDBBuilderPackage::buildPackageRequirement): Remove.
185 (IniDBBuilderPackage::buildSourceName): Use renamed package
186 specifiation accessor for clarity.
187 (IniDBBuilderPackage::buildSourceNameVersion): Ditto.
188 (IniDBBuilderPackage::add_correct_version): Use STL iterators rather
190 Remove source package references.
191 (IniDBBuilderPackage::process_src): Remove source package code as it's
192 now handled separately.
193 Set Path information before merging versions, to prevent dangling
195 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildPackageRequirement):
197 (IniDBBuilderPackage::cpv): Remove.
198 (IniDBBuilderPackage::cbpv): New generic binary working variable.
199 (IniDBBuilderPackage::cspv): Ditto, but for source packages.
200 (IniDBBuilderPackage::csp): Source package variable for disjoint
202 * Makefile.am (AM_CFLAGS): Remove -Winline to allow stl set code
203 to compile. If it compiles cleanly in gcc 3.1, then reinstate.
204 * PickPackageLine.cc: Adjust packageversion accessors to the new
205 reference calls. (i.e. -> to .) throughout.
206 (PickPackageLine::paint): Use accessible() for clarity.
207 Use new split out source package logic.
208 (PickPackageLine::click): Ditto.
209 * PickView.cc (PickView::init_headers): Adjust packageversion accessors
210 to the new reference calls. (i.e. -> to .) throughout.
211 Use new split out source package logic.
212 * choose.cc: Don't depend on a specific package type.
213 Adjust packageversion accessors to the new reference calls. (i.e. -> to
215 (set_existence): Use accessible () for clarity.
216 (default_trust): Simplify a little.
217 (scanAVersion): Factored out code from scan_downloaded_files for
219 (scan_downloaded_files): Factor out inner loop for clarity.
220 (ChooserPage::OnNext): Don't dump the dependency list,
221 it's parsing is robust now!.
222 * cygpackage.cc (createInstance): Use a factory method to create new
224 (cygpackage::cygpackage): Make this private for use by the factory.
225 (cygpackage::setCanonicalVersion): Renamed from set_canonical_version.
226 Remove key usage as it's obsolete.
227 * cygpackage.h (cygpackage): Inherit from _packageversion, not
229 (cygpackage::createInstance): New factory.
230 (cygpackage::cygpackage): Make private.
231 * desktop.cc (make_passwd_group): Use new packageversion reference.
232 * download.cc (do_download_thread): Use changeRequested() for clarity.
233 Use new packageversion reference calls.
234 * iniparse.y (REQUIRES): Reuse the packageList code and dump the one-off
236 * install.cc: Adjust -> to ., and use the new accessor functions for
237 packageversion throughout.
238 * package_db.cc: Adjust -> to ., and use the new accessor functions for
239 packageversion throughout.
240 (packagedb::packagedb): Use the new cygpackage factory.
241 (packagedb::flush): Leverage String to remove buffer overflow chance in
243 (packagedb::findBinary): Find a binary meta package that has a version
244 matching a given specification.
245 (packagedb::findSource): Ditto, but for source.
246 * package_db.h (packagedb::findBinary): Declare.
247 (packagedb::findSource): Ditto.
248 * package_meta.cc: Adjust packageversion accessors to the new
249 reference calls. (i.e. -> to .) throughout.
250 Include the package_meta header first to ensure it parses standalone.
251 Use the STL algorithms.
252 (packagemeta::packagemeta): Create a copy constructor to allowing
253 cloning binary package metadata to source package metadata.
254 (packagemeta::~packagemeta): Use the STL coleltion code rather than
255 custom collection code.
256 (packagemeta::add_version): Ditto.
257 (packagemeta::set_installed): Ditto.
258 (packagemeta::SDesc): Ditto.
259 (hasSDesc): Helper function for find_if.
260 (checkForInstalled): Ditto.
261 (checkForUpgradeable): Ditto.
262 (checkForSatisfiable): Ditto.
263 (packagemeta::action_caption): Update for split out source packages.
264 (packagemeta::set_action): Ditto.
265 (packagemeta::set_requirements): Support multi-valued dependency
266 lists - a|b & c|d - with versioned package specifications.
267 (packagemeta::accessible): Helper member to improve abstraction.
268 (packagemeta::sourceAccessible): Ditto.
269 * package_meta.h: Adjust packageversion accessors to the new
270 reference calls. (i.e. "->" to "." and"*" to "" ) throughout.
271 (packagemeta::packagemeta): Declare copy constructor.
272 Remove self initialising members.
273 (packagemeta::set_action): Update parameters for new packageversion.
274 (packagemeta::trustp): Ditto.
275 (packagemeta::versions): Becomes an STL set.
276 * package_source.h (packagesource::Cached): Const correctness change.
277 * package_version.cc: Rewrite the packageversion interface to remove
278 the cygpackage nonvirtual members, and provide a copy by value,
279 pointer semantics reference counting wrapper class to ease use and
280 comparison of packageversions.
281 Change existing packageversion class to _packageversion throughout.
282 (_defaultversion): A trivial concrete class to prevent specialcasing
283 the default constructor for packageversion;
284 (packageversion::packageversion): Implement.
285 (packageversion::~packageversion): Ditto.
286 (packageversion::operator=): Ditto.
287 (packageversion::operator !): Ditto.
288 (packageversion::operator bool): Ditto.
289 (packageversion::operator ==): Ditto.
290 (packageversion::operator !=): Ditto.
291 (packageversion::operator <): Ditto.
292 (packageversion::Name): Ditto.
293 (packageversion::Canonical_version): Ditto.
294 (packageversion::setCanonicalVersion): Ditto.
295 (packageversion::getfirstfile): Ditto.
296 (packageversion::getnextfile): Ditto.
297 (packageversion::SDesc): Ditto.
298 (packageversion::set_sdesc): Ditto.
299 (packageversion::LDesc): Ditto.
300 (packageversion::set_ldesc): Ditto.
301 (packageversion::sourcePackage): Ditto.
302 (packageversion::sourcePackageSpecification): Ditto.
303 (packageversion::setSourcePackageSpecification): Ditto.
304 (packageversion::depends): Ditto.
305 (packageversion::predepends): Ditto.
306 (packageversion::recommends): Ditto.
307 (packageversion::suggests): Ditto.
308 (packageversion::replaces): Ditto.
309 (packageversion::conflicts): Ditto.
310 (packageversion::provides): Ditto.
311 (packageversion::picked): Ditto.
312 (packageversion::pick): Ditto.
313 (packageversion::changeRequested): Ditto.
314 (packageversion::uninstall): Ditto.
315 (packageversion::source): Ditto.
316 (packageversion::accessible): Ditto.
317 (_packageversion::sourcePackage): Ditto.
318 (_packageversion::accessible): Ditto.
319 (_packageversion::changeRequested): Ditto.
320 * package_version.h: Rewrite the packageversion interface to remove
321 the cygpackage nonvirtual members, and provide a copy by value,
322 pointer semantics reference counting wrapper class to ease use and
323 comparison of packageversions.
324 Change existing packageversion class to _packageversion throughout.
325 (Dependency): Remove.
326 (packageversion): New wrapper class.
327 (_packageversion): Renamed from packageversion.
328 (_packageversion::setCanonicalVersion): New method.
329 (_packageversion::sourcePackage): Ditto.
330 (_packageversion::sourcePackageSpecification): Ditto.
331 (_packageversion::setSourcePackageSpecification): Ditto.
332 (_packageversion::changeRequested): Ditto.
333 (_packageversion::bin): Rename to source.
334 (_packageversion::src): Remove.
335 (_packageversion::accessible): New method.
336 (_packageversion::references): Allow reference counting.
337 (_packageversion::sourceVersion): Cached the best-match source
340 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
342 * compress_bz.h (compress_bz::position): Track how much has been read.
343 * compress_bz.cc (compress_bz::compress_bz): And initialise it.
344 (compress_bz::read): Track amount read by the client.
345 (compress_bz::tell): And report it when asked.
347 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
349 * Makefile.am (snapshot): Automate snapshot creation some more.
351 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
353 * msg.cc (msg): Use vsnprintf to avoid buffer overflows.
355 * ini.cc (fprintf): Ditto.
356 * log.cc (log): Ditto.
357 * package_db.cc (packagedb::sourcePackages): Split out source packages
358 from binary packages.
359 * package_db.h: Ditto.
361 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
363 * PackageSpecification.h: New file. Abstracts the ability to refer
364 to another package, by name, or name and version.
365 * PackageSpecification.cc: Ditto.
366 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Simplify.
367 (IniDBBuilder::buildPackageSource): Ditto.
368 (IniDBBuilder::buildBeginDepends): New method for versioned
370 (IniDBBuilder::buildBeginPreDepends): Likewise, for dependencies to be
371 satisfied before pre-install.
372 (IniDBBuilder::buildPriority): New method, for getting the package
374 (IniDBBuilder::buildInstalledSize): How much disk space does it need?
375 (IniDBBuilder::buildMaintainer): Who maintains the package?
376 (IniDBBuilder::buildArchitecture): What platform is it for?
377 (IniDBBuilder::buildInstallSize): How big is the binary download?
378 (IniDBBuilder::buildInstallMD5): Whats the MD5 on the binary?
379 (IniDBBuilder::buildSourceMD5): Whats the MD5 on the source package?
380 (IniDBBuilder::buildBeginRecommends): What other packages are
381 recommended with this one?
382 (IniDBBuilder::buildBeginSuggests): And suggested?
383 (IniDBBuilder::buildBeginReplaces): What packages does this replace?
384 (IniDBBuilder::buildBeginConflicts): And collide with?
385 (IniDBBuilder::buildBeginProvides): What virtual packages (or obsolete
386 package names) does this provide?
387 (IniDBBuilder::buildDescription): Grab a multi line description one
389 (IniDBBuilder::buildSourceName): What source package should be used to
390 install the source for this binary package?
391 (IniDBBuilder::buildSourceNameVersion): Is a specific version needed?
392 (IniDBBuilder::buildPackageListAndNode): Add another AND clause to a
393 list of package specifications.
394 (IniDBBuilder::buildPackageListOrNode): Add another OR clause.
395 (IniDBBuilder::buildPackageListOperator): Add a versioning operator
396 to the current specification.
397 (IniDBBuilder::buildPackageListOperatorVersion): What version does the
399 * IniDBBuilder.h: Declare all the IniDBBuilder.cc changes.
400 * IniDBBuilderPackage.cc: As for IniDBBuilder.cc.
401 (IniDBBuilderPackage::IniDBBuilderPackage): Iniitialize new members.
402 (IniDBBuilderPackage::process_src): Streamline and split out
404 (IniDBBuilderPackage::setSourceSize): From process_src.
405 * IniDBBuilderPackage.h: Declare the IniDBBuilderPackage.cc changes.
406 (IniDBBuilderPackage::currentSpec): Track the in-progress specifiation.
407 (IniDBBuilderPackage::currentOrList): Track the current Or list.
408 (IniDBBuilderPackage::currentAndList): Track the current And list.
409 * IniParseFeedback.cc (IniParseFeedback::progress): Provide completion
411 (IniParseFeedback::iniName): Tell what ini filename we are currently
413 * IniParseFeedback.h: Declare IniParseFeedback.cc changes.
414 * IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor):
415 Make the feedback object non-const to allow mutating methods which are
416 needed when the object has state.
417 (IniParseFindVisitor::visitFile): Tell the caller the name of each
419 Initialise the parser with the feedback object to allow it to tell of
421 * IniParseFindVisitor.h: Declare IniParseFindVisitor.cc changes.
422 * Makefile.am (inilinst_SOURCES): Add more requisite classes.
423 (setup_SOURCES): Add the new PackageSpecification sources.
424 * ScanFindVisitor.cc (ScanFindVisitor::visitFile): Use the new
425 builder syntax to setup binary package details.
426 * choose.cc: Use the LogSingleton calls throughout.
427 * configure.in: Create the INILINT substitution correctly for recent
428 autotool configurations.
429 * cygpackage.cc (cygpackage::getfirstfile): Return an empty String
430 rather than a string built from an int. Thanks to Pavel Tsekov for
432 (cygpackage::getnextfile): Ditto.
433 * download.cc: Use LogSIngletion calls throughout.
434 (validateCachedPackage): A refactoring of the
435 check_for_cached code to eliminate duplciation.
436 (check_for_cached): Use validateCachedPackage to check packages.
437 * ini.cc (GuiParseFeedback): Provide gui feedback on ini name and
439 (do_remote_ini): Ditto.
440 * ini.h (ini_init): Pass a IniParseFeedback to the parser, to allow
442 * inilex.l: Identify new symbols - operators, and multi line plain text.
444 * inilintmain.cc (show_help): Provide basic infomation on inilint.
445 * iniparse.y: Adjust for the new builder syntax, and process debian
447 * io_stream_file.cc: Always include mkdir.h.
448 * list.h: Factor index location into a private routine.
449 (list::findindex): Implement this.
450 * mkdir.cc (mkdir_p): Make the use of WIN32 code conditional on mingw
451 builds. NB: This breaks cygwin build functionality still.
452 * package_meta.cc: Use the LogSingleton calls throughout.
453 (packagemeta::set_requirements): Adjust for object changes in
455 * package_meta.h (packagemeta::packagemeta): Initialise new members.
456 (packagemeta::architecture): What platform does this package run on?
457 This may need to move in the future to a per packagefile object.
458 (packagemeta::priority): What priority does this package have?
459 * package_source.h (packagesource::packagesource): Initialise new
461 (packagesource::installedSize): How much space does the package need?
462 (packagesource::setInstalledSize): Tell the amount.
463 (packagesource::_installedSize): And store it.
464 * package_version.cc (packageversion::sourcePackage): return the
466 (packageversion::setSourcePackage): And set it.
467 * package_version.h: Declare the package_version.cc changes.
468 (packageversion::depends): New package specification AND list.
469 (packageversion::predepends): Ditto.
470 (packageversion::recommends): Ditto.
471 (packageversion::suggests): Ditto.
472 (packageversion::replaces): Ditto.
473 (packageversion::conflicts): Ditto.
474 (packageversion::provides): Ditto.
475 (packageversion::sourcePackage): What source package is needed?
476 * threebar.cc (ThreeBarProgressPage::SetText4): Set the label beside
478 * threebar.h: Declare the threebar.cc change.
480 2002-06-27 John Marshall <johnm@falch.net>
482 * res.rc (SETUPINI_MISSING): Make trailing spaces visible.
483 * site.cc (SitePage::OnMessageCmd): Ditto
485 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
487 * nio-ie5.cc (NetIO_IE5::NetIO_IE): Allow cached data.
489 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
491 * package_meta.cc (packagemeta::set_action): When installing packages
492 with no binaries, choose the source package.
494 2002-06-10 Robert Collins <rbtcollins@hotmail.com>
496 * IniParseFindVisitor (IniParseFindVisitor::visitFile): Apply Max
497 Bowshers fix for the crash with a root level setup.ini.
498 * README: Update todos.
500 2002-05-26 Ralf Habacker <ralf.habacker@freenet.de>
502 * archive_tar.cc (archive_tar::next_file_name()): fixed broken
503 GNU long name extension support.
505 2002-05-27 Robert Collins <rbtcollins@hotmail.com>
507 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Don't
508 unescape 0 length strings.
510 2002-05-20 Robert Collins <rbtcollins@hotmail.com>
512 * package_meta.cc (packagemeta::set_action): Don't allow reinstall
513 when local with no cached file, and install the default source if the
514 default version has no binary.
516 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
518 * IniDBBuilderPackage.cc (IniDBBuilderPackage::IniDBBuilderPackage): New
520 (IniDBBuilderPackage::buildVersion): Provide a warning when a newer
521 setup version created the ini file.
522 * IniDBBuilderPackage.h (IniDBBuilderPackage::IniDBBuilderPackage): New
524 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use the new
526 * IniParseFindVisitor.h (IniParseFindVisitor::IniParseFindVisitor):
527 Require a feedback strategy.
528 * Makefile.am (setup_SOURCES): Add IniParseFeedback sources.
529 * Makefile.in: Regenerate.
531 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
533 * io_stream_file.cc (io_stream_file::remove): Use the SetFileAttributes
534 trick to delete read only files.
535 * io_stream_cygfile.cc (io_stream_cygfile::remove): Use file:// to
537 * Makefile.am (release): Tweak to be more helpful.
538 * Makefile.in: Regenerate.
540 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
542 * Makefile.am (release): Tweak to be more helpful.
543 * Makefile.in: Regenerate.
545 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
547 * Makefile.am (release): Tweak to be more helpful.
548 * Makefile.in: Regenerate.
550 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
552 * choose.cc (scan_downloaded_files): When a non-installed version
553 has neither bin nor src cached files for local installs,
554 remove the version from availability.
556 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
558 * ini.cc (do_remote_ini): Save uncompressed ini's correctly.
560 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
562 * rsync: New support library, contains librsync. This is not (yet)
564 * configure.in: --with-rsync to enable rsync support. (Not complete).
565 * Makefile.am: Enable building with rsync.
566 * Makefile.in: Regenerate.
568 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Pass the md5 as
570 (IniDBBuilder::buildPackageSource): Ditto.
571 * IniDBBuilder.h: Ditto.
572 * IniDBBuilderPackage.cc: Ditto.
573 * IniDBBuilderPackage.h: Ditto.
574 * FindVisitor.cc: New file.
575 * FindVisitor.h: New file, interface for visiting a file system
577 * IniParseFindVisitor.cc: New file.
578 * IniParseFindVisitor.h: New file, concrete FindVisitor that parses
580 * README: Update TODO's.
581 * String++.cc (String::String): New constructor for <string> inter-
583 (String::substr): New method.
585 * choose.cc (scan2): Remove.
586 (scan_downloaded_files): Simplify.
587 * dialog.h: Include parsing pre-requirements.
588 * download.cc (check_for_cached): Fullname was used incorrectly - fix.
589 * filemanip.cc (parse_filename): -src packages where incorrectly parsed.
590 * find.cc: Rewrite. Now uses a Visitor pattern and is re-entrant.
592 * fromcwd.cc: Remove unneeded includes.
593 (is_test_version): Remove.
594 (found_file): Remove.
595 (SetupFindVisitor): Trivial visitor to detect setup.ini's.
597 (do_fromcwd): Remove commented code that has be replaced elsewhere.
598 * ini.cc (local_ini): Remove.
599 (findBuilder): Remove.
600 (find_routine): Remove.
601 (do_local_ini): Use new IniParseFindVisitor.
602 * iniparse.y: Typecase MD5 arrays, as we know they are allocated as
604 * postinstall.cc: Remove non-core includes.
605 (run_script_in_postinstall): Remove.
606 (RunFindVisitor): Trivial Visitor, runs each found script.
607 (do_postinstall): Use new find syntax.
609 2002-05-14 Christopher Faylor <cgf@redhat.com>
611 * ini.cc (find_routine): Don't clear buffer it it's NULL.
613 2002-05-14 Christopher Faylor <cgf@redhat.com>
615 * filemanip.h (trail): Declare.
616 * filemanip.cc (trail): New function.
617 (find_tar_ext): Use trail() instead of strstr().
618 * fromcwd.cc (check_ini): Ditto.
619 * ini.cc (find_routine): Ditto. Don't tack local_dir to path since it
620 should now be fully qualified. Set ini_filename. Reset error_buf and
621 error_count for any subsequent ini file parsing.
622 (ini_filename): New static variable for parse error reporting.
623 (yyerror): Use full path of setup.ini in error message. Subtract one
624 from line number if at bol.
625 * find.cc (found_part): Eliminate.
626 (find_sub): Call for_each with full path found rather than just file
628 (find): Don't calculate found_part.
629 * inilex.l (ini_init): Flush input buffer and reset line number.
630 (yybol): New function. Exports YY_AT_BOL.
631 * iniparse.y: Increase stack depth to allow more tokens to be processed.
632 (yyparse): Remove newline from error condition to allow subsequent
633 per-line error processing to proceed normally.
635 2002-05-14 Christopher Faylor <cgf@redhat.com>
637 * find.cc (find_sub): Be more defensive in preserving trailing parts of
638 components when doing recursive directory searches or calling user
640 * ini.cc (find_routine): Don't assume that any path name with
641 "setup.ini" in it is actually a setup.ini file. Only honor trailing
642 components. Copy path argument to temporary storage when unescaping
643 to prevent nuking of argument.
645 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
647 * CONTRIBUTORS: New file.
649 2002-04-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
651 * choose.cc: Run indent.
652 (nextbutton): Remove static variable.
653 (default_trust): Remove use of nextbutton.
654 (set_view_mode): Ditto.
655 (create_listview): Add IDC_CHOOSE_PREV and IDC_CHOOSE_NEXT to ta[] so
656 rbset() sets the prev/next/curr radio buttons properly.
657 (dialog_cmd): Delete function.
658 (dialog_proc): Delete function. Move WM_INITDIALOG functionality to
660 (do_choose): Delete function. Move pre-DialogBox() code to
661 ChooserPage::OnInit(), post-DialogBox() code to ChooserPage::OnNext.
662 (WM_APP_START_CHOOSE): Remove define.
663 (WM_APP_CHOOSE_IS_FINISHED): Remove define.
664 (do_choose_thread): Delete function.
665 (ChooserPage::OnActivate): Delete method.
666 (ChooserPage::OnMessageApp): Delete method.
667 (ChooserPage::OnInit): New method.
668 (ChooserPage::OnNext): New method.
669 (ChooserPage::OnBack): New method.
670 (ChooserPage::OnMessageCmd): New method.
671 * choose.h: Run indent.
672 (ChooserPage::OnMessageApp): Delete declaration.
673 (ChooserPage::OnActivate): Ditto.
674 (ChooserPage::OnMessageCmd): New declaration.
675 (ChooserPage::OnInit): Ditto.
676 (ChooserPage::OnNext): Ditto.
677 (ChooserPage::OnBack): Ditto.
678 * desktop.cc (DesktopSetupPage::OnBack): Replace use of IDD_CHOOSER
680 * fromcwd.cc (do_fromcwd): Replace use of IDD_CHOOSER with IDD_CHOOSE.
681 * ini.cc (do_ini_thread): Replace use of IDD_CHOOSER with IDD_CHOOSE.
682 * res.rc (IDD_CHOOSE): Remove dialog template.
683 (IDD_CHOOSER): Alter dialog template to fit wizard size and format.
685 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
687 * LogFile.cc (endLog): Work around an apparent libg++-3 bug causing
688 corrupt log file entries.
689 * geturl.cc: Convert to the new LogSingleton logging.
691 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
693 * ini.cc (do_remote_ini): Use setup.bz2 if it exists in preference to
696 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
698 * geturl.h: Declare getUrlToStream.
699 * geturl.cc (getUrlToStream): New function.
700 (get_url_to_membuf): Refactor to use getUrlToStream.
702 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
704 * Makefile.am: Add a release target to automate some of the routine
706 * Makefile.in: Regenerate.
708 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
710 * choose.cc (scan_downloaded_files): On local installs remove all
711 mirror sites if no cached copy of a package is found.
713 2002-05-10 Robert Collins <rbtcollins@hotmail.com>
715 * Makefile.in: Regenerate.
716 * iniparse.y: Use left recursion, not right in the lines rule to
717 avoid stack overflows.
718 * README: Update TODO's.
719 * io_stream_file.cc: Native builds need to include sys/stat.h
721 2002-05-06 John Marshall <jmarshall@acm.org>
723 * site.cc (SitePage::OnMessageCmd): recalculate navigation
724 button activation when "Add" is pressed.
725 (SitePage::CheckControlsAndDisableAccordingly): tweak comment.
727 2002-05-07 Robert Collins <rbtcollins@hotmail.com>
729 * Makefile.am (inlint_SOURCES): Add conditional objects to inilint
730 depending on platform.
732 * configure.in: Set conditional MINGWTARGET if compiling against mingw
734 * Makefile.in: Regenerate.
736 * io_stream_file.cc: Only use win32 calls when building for mingw.
738 2002-05-05 Robert Collins <rbtcollins@hotmail.com>
740 * Makefile.am (noinst_PROGRAMS): Make inilint configurable.
741 * configure.in: Ditto.
742 Fix incorrect header checking syntax.
743 * aclocal.m4: Regenerate.
744 * configure: Regenerate.
745 * Makefile.in: Regenerate.
746 * io_stream.cc: Remove platform specific and provider specific code.
747 (io_stream::registerProvider): New method, registers a Url provider with
749 Make all methods consistently throw invalid_argument exceptions when
750 a provider that is requested is not present.
751 (findProvider): New private function, finds a provider.
752 * io_stream.h: Declare io_stream::registerProvider.
753 * io_stream_cygfile.cc: Create a Provider class to register with
755 * io_stream_file.cc: Ditto.
756 * archive.cc: Remove unneeded includes.
757 * archive_tar.cc: Remove unneeded includes.
758 * archive_tar.h: Add required include.
759 * archive_tar_file.cc: Remove unneded includes.
760 * choose.cc: Remove unneeded includes:
762 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
764 * io_stream.cc: Use the new log interface thruout.
766 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
768 * log.cc (log): Reimplement via LogSingleton.
770 (exit_setup): Remove.
771 * log.h (log_save): Remove.
772 (exit_setup): Remove.
773 * LogSingleton.cc: New file.
774 * LogSingleton.h: New file.
775 * LogFile.cc: New file.
776 * LogFile.h: New file.
777 * Makefile.am (inilint_SOURCES): Add the new log interface.
778 (setup_SOURCES): Add the new log interface and the concrete File
780 * Makefile.in: Regenerate.
781 * archive.cc: Use the new log interface thruout.
782 * archive_tar.cc: Ditto.
784 * dialog.cc (fatal): Use the new log interface.
785 * ini.cc (do_ini_thread): Use the log interface to exit.
786 * isntall.cc (do_install_thread): Ditto.
787 * netio.cc (auth_cmd): Ditto.
788 * msg.cc (fatal): Ditto.
789 * localdir.cc (save_local_dir): Save to different files depending on
790 the mode, and if a root dir exists.
792 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
794 * IniDBBuilder.cc: New file.
795 * IniDBBuilder.h: New file.
796 * IniDBBuilderPackage.cc: New file.
797 * IniDBBuilderPackage.h: New file.
798 * PackageTrust.h: New file.
799 * IniState.h: Remove, wasn't thought out well enough.
800 * Makefile.am (inilint_SOURCES): Add more requirements.
801 (setup_SOURCES): Add new Builder base and concrete classes.
802 * Makefile.in: Regenerate.
803 * String++.cc (String::String): Implement int contructor.
804 * String++.h (String): Declare int constructor.
805 * archive_tar.cc (archive_tar::next_file_name): Return String() when
807 * archive_tar.h (archive_tar_file): Remove get_next_filename method,
809 * ini.cc: Replace IniState wuth IniDBBuilderPacakge.
810 (find_routine): Use new IniDBBuilder to configure the parser.
811 (do_local_ini): Ditto.
812 (do_remote_ini): Ditto.
813 * ini.h: Use IniDBBuilder to initialise parsing.
814 * inilex.l (MD5): Parse the MD5 string correctly, we had the nibbles
816 (ini_init): Use an IniDBBuilder rather than static variables.
817 * iniparse.y: Hand off all the object creation to a builder, rather
818 than hardcoding the behaviour. This allows run-time configured
820 * io_stream_cygfile.h (io_stream_cygfile): Remove get_next_filename
821 method, it's not needed.
822 * io_stream_file.h (io_stream_file): Ditto.
823 * mount.cc (cygpath): Return String() for missing mounts.
824 * package_meta.cc (packagemeta::SDesc): Return String() for blank
826 * package_meta.h (trusts): Remove - replaced by PackageTrust.h.
827 (packagemeta::packagemeta): Fix incorrect syntax in String constructor
829 * cygpackage.cc (cygpackage::cygpackage): Fix incorrect syntax in
830 String constructor usage.
831 * site.h (site_list_type): Ditto.
833 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
835 * String++.h: Declare a << operator that accepts String objects.
836 * String++.cc: We need iostream for..
837 (operator <<): this. Provide a << operator that accepts String objects.
838 * ini.cc (yyerror): Remove the "C" classifier - it's not needed.
839 Change from vargs to a String parameter.
840 * inilintmail.cc: Remove the gui related headers.
841 (yyerror): Implement this for parsing.
842 * iniparse.y: Use the new yyerror syntax.
844 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
846 * Makefile.am: Add IniState.h.
847 * Makefile.in: Regenerate.
848 * IniState.h: New file.
849 * choose.cc: Don't include ini.h - it's not needed.
850 * configure: Regenerate.
851 * desktop.cc: Don't include ini.h - it's not needed.
852 * download.cc: Ditto.
854 * ini.cc: Use IniState.h to track each parsing calling.
855 (find_routine): Ditto.
856 (do_remote_ini): Ditto.
857 (do_ini_thread): Ditto.
858 * ini.h (ini_init): Adjust parameters to include state object.
859 * inilex.l: Declare parser state variable.
860 (ini_init): Adjust parameters to include state object.
861 * iniparse.y: Remove obsolete setup_timestamp and setup_version
863 (setup_header): Use new state variable to track time and version.
864 (add_correct_version): Ditto.
865 * install.cc: Don't include ini.h - it's not needed.
867 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
869 * nio-files.cc (NetIO): Use io_stream syntax for get_file_size.
870 * io_stream_file.cc: Don't include filemanip.h.
871 (io_stream_file::get_size): Implement here to remove filemanip
873 * io_stream_cygfile.cc: Don't include filemanip.h.
874 (io_stream_cygfile::get_size): Implement here to remove filemanip
876 Implement a stat based version for when win32 is not available.
877 * filemanip.h (get_file_size): Return size_t - it's more appropriate.
878 * filemanip.cc: Don't include win32.h - be platform independent.
879 Include strings.h and io_stream.h as part of that.
880 (get_file_size): Leverage io_streams and remove win32 implementation.
881 * download.cc (check_for_cached): Use io_stream syntax for
883 (download_one): Ditto.
885 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
887 * configure.in: Correct a typo in last change.
888 * configure: Regenerate.
889 * Makefile.in: Regenerate.
891 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
893 * configure.in: Check for string.h and string.
894 * configure: Regenerate.
895 * Makefile.in: Regenerate.
897 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
899 * res.rc (IDD_SPLASH): Remove white box.
901 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
903 Oops! forgot to list these in the last checkin.
904 * inilintmain.cc: New file.
905 * md5.h: New file - imported md5 source, BSD style licence.
906 * md5.cc: New file - imported md5 source, BSD style licence.
907 * Exception.cc: New file.
908 * Exception.h: New file.
909 * MD5++.cc: New file.
912 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
914 * Makefile.am (AM_CFLAGS): Remove -mwindows, it's a linker flag.
915 Remove -fno-rtti, we need it for exceptions.
916 (AM_CXXFLAGS): Ditto.
917 (WARNONLY_CFLAGS): Ditto.
918 (EXTRA_PROGRAMS): Add with initial linter sources - not functional yet.
919 (setup_LDFLAGS): Add and set to -mwindows.
920 (setup_SOURCES): Add new sources.
921 * Makefile.in: Regenerate.
922 * README: Update TODO.
923 * choose.cc (scan_downloaded_files): Use ini information if it's
925 * configure: Regenerate.
926 * download.cc (check_for_cached): Make reusable from elsewhere.
927 Throw exceptions on errors (as opposed to failures).
928 Check MD5 sum when it's known.
929 (download_one): Never force a download.
930 Handle corrupt package exceptions.
931 * ini.cc (find_routine): Reverse escape the URL to correctly identify
933 * inilex.l (MD5): Provide a parsing rule (note: lowercase is required).
934 * iniparse.y: Allow calculation of MD5 sums, and allow src only
936 (process_src): New helper function.
937 * isntall.cc (install_one_source): Check MD5 sums when possible.
938 Throw exceptions on errors.
939 (do_install_thread): Handle exceptions for installation calls.
940 * package_source.h: Store MD5 information.
941 * propsheet.cc (PropSheet::Create): Add a useful comment.
942 * res.rc (IDS_INSTALL_ERROR): Define.
943 (IDS_CORRUPT_PACKAGE): Define.
944 * resource.h (IDS_INSTALL_ERROR): Define.
945 (IDS_CORRUPT_PACKAGE): Define.
946 * rfc1738.cc (rfc1738_unescape_part): Implement.
947 * rfc1738.h (rfc1738_unescape_part): Declare.
949 2002-04-29 Robert Collins <rbtcollins@hotmail.com>
951 * Makefile.am: Remove dependecy rules that automake emits.
952 Correct badly copied dependency info for manually compiled files.
953 (setup_SOURCES): Add all used headers.
954 (EXTRA_DIST): Include non compilate but required sources.
955 (setup_LDADD): Remove mingw32, it is autodetected.
956 * Makefile.in: Regenerate.
957 * String++.h: sys/types is a system header.
958 * choose.cc (do_choose_thread): Make into a Win32 thread routine.
960 (ChooserPage::OnMessageApp): Use Win32 threads. (_beginthread is not
962 * configure: Regenerate.
963 * configure.in: Check for mingw32/cygwin specific headers and libraries.
964 * cygpackage.h: Include the win32.h header to get correct macro
965 definitions in all situations.
966 * download.cc (do_download_reflector): Make into a Win32 thread routine.
968 (do_download): Use Win32 threads.
971 * (WinMain): Adjust to build valid command line using application
972 under both mingw32 and cygwin.
973 * mount.cc (set)cygdrive_flags): Create new system flags if the
974 user requests system and the value does not exist.
975 * nio-http.cc: Define a _strnicmp for cygwin.
976 * package_db.cc: Include <errno.h> if it exists.
977 * site.cc (do_download_site_info_thread): Make into a Win32 thread
980 (do_download_site-Info): Use Win32 threads.
981 * state.cc: Explicity declare variables to avoid header conflicts
982 caused by '#define extern" on cygwin.
983 * win32.h: Include <alloca.h> if it exists.
984 (_MAX_PATH): Define as MAX_PATH when not defined by windows.h.
985 (_access): Define as access if not defined by windows.h.
987 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
989 * compress_gz.cc (compress_gz::error): EOF is not an error condition.
991 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
993 * Makefile.am: Add libgetopt++ to the subdirs list.
994 Search the libgetopt++ header directory.
995 Link against libgetopt++.la.
996 (setup_SOURCES): Remove GetOption.cc and getopt.c and Option.cc.
997 (setup_LDADD): Explicitly include res.o.
998 * Makefile.in: Regenerate.
999 * aclocal.m4: Regenerate.
1000 * bootstrap.sh: Call libtoolize.
1001 * configure: Regenerate.
1002 * configure.in: Add libtool support and configure libgetopt++.
1003 * desktop.cc (NoShortcutsOption): Turn into a BoolOption.
1004 (DesktopSetupPage::OnInit): Use the simpler syntax.
1005 * desktop.h: Remove dependency on Option.h, and remove NoShortcustOption
1007 * main.cc: Include getopt++/GetOption.h.
1008 (main): Use simpler syntax.
1012 * GetOption.h: Remove.
1013 * GetOption.cc: Remove.
1015 * Option.cc: Remove.
1017 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1019 * Makefile.am: Add zlib and bz2lib to SUBDIRS.
1021 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1023 * aclocal.m4: New file, cached macros.
1024 * bootstrap.sh: New file, calls required autotools in appropriate
1026 * Makefile.am: New file, input Makefile for automake.
1027 * Makefile,in: Now a generated file - regenerate.
1028 * configure: Regenerate.
1029 * configure.in: Add automake support.
1030 * inilex.l: Change VERSION to PACKAGEVERSION to avoid a collision with
1031 automake's VERSION define.
1032 * iniparse.y: Ditto.
1034 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1036 * cdefs.h: New file, imported to allow getopt.c to build without
1038 * getopt.h: New file, imported to allow building without cygwin headers.
1040 * bz2lib: New directory, contains copy of bz2lib.
1041 * cfgaux: New directory, contains autotool helper scripts.
1042 * Makefile,in: Adjust library and target definitions for building
1043 outside the sourceware tree.
1044 * compress_bz.h: Use new bz2lib header location.
1045 * mount.cc: Import key defines and enums to be independent of cygwin
1047 * configure.in: Update to autoconf 2.53, and to be sourceware
1049 * configure: Regenerate.
1051 2002-04-12 Robert Collins <rbtcollins@hotmail.com>
1053 * mklink2.cc (make_link_2): Tweak to work with current w32api
1056 2002-04-10 Pavel Tsekov <ptsekov@gmx.net>
1058 * version.cc (canonicalize_version): Fix a call delete[]
1059 to delete the allocated address.
1061 2002-03-29 Robert Collins <rbtcollins@hotmail.com>
1063 * PickView.cc (PickView::set_headers): Set last_col correctly. Thanks
1064 to Ton van Overbeek for locating the bug area.
1066 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
1068 * PickView.cc (PickView::insert_pkg): Be more generic with
1070 (PickView::insert_category): Ditto.
1071 (PickView::~PickView): Create.
1072 * PickView.h (PickView::~PickView): Declare.
1074 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
1076 * Makefile.in (OBJS): Add new commandline objects.
1077 * desktop.cc (NoShortCutsOption): New option code.
1078 (DesktopSetupPage::OnInit): Check whether to skip shortcuts.
1079 * desktop.h (NoShortCutsOption): New concrete command line option class.
1080 * main.cc (WinMain): Process command line options.
1081 * GetOption.h: New file, singleton command line class.
1082 * GetOption.cc: New file, implementation of the above.
1083 * Option.h : New file, abstract option for GetOption.
1084 * Option.cc: New file, implement constructor and destructor.
1086 2002-03-26 Pavel Tsekov <ptsekov@gmx.net>
1088 * mkdir.cc (mkdir_p): Stop processing if the path is exhausted.
1090 2002-03-26 Ton van Overbeek <tvoverbe@cistron.nl>
1092 * PickPackageLine.cc (PickPackageline::paint): Adjust clipping rectangle
1093 to textheight, so large fonts work.
1095 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1097 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Don't translate
1100 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1102 * io_stream_cygfile.cc (cwd): New static for cwd storage.
1103 (io_stream_cygfile::normalise): New method.
1104 (io_stream_cygfile::io_stream_cygfile): Use it.
1105 (io_stream_cygfile::exists): Ditto.
1106 (io_stream_cygfile::remove): Ditto.
1107 (io_stream_cygfile::mklink): And again.
1108 (cygmkdir_p): Yes, again.
1109 (io_stream_cygfile::move): And once more.
1110 * io_stream_cygfile.h (io_stream_cygfile::normalise): Declare.
1111 (io_stream_cygfile::cwd): Ditto.
1113 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1115 * package_meta.cc (package_meta::~package_meta): Remove duplicate.
1116 (CategoryPackage::~CategoryPackage): Ditto. (Thanks to Ton van
1117 Overbeek for the report).
1118 * mklink2.cc: Moved from mklink2.c to avoid 'not a prototype error'.
1119 Make g++ compatible.
1120 * mklink2.c: Remove.
1121 * site.cc (site_list_type::init): Delete the correct memory addres.
1122 Thanks to Pavel Tsekov for tracking this down.
1124 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
1126 * win32.h: Only define alloca if it's not already.
1128 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
1130 * package_meta.h (packamgemeta::trustp): Make 'test' choice leave installed
1132 * README: Update with latest requests.
1133 * Various: MTC fixes from setup200202 branch.
1135 2002-03-19 Christopher Faylor <cgf@redhat.com>
1137 * Makefile.in (setup_version.c): Add back magic which allows detection
1138 of setup.exe version number.
1140 2002-03-17 Robert Collins <rbtcollins@hotmail.com>
1142 * * PickPackageLine.cc (PickPackageLine::paint): Fix incorrect clip region
1143 calculation on win9x systems.
1145 2002-03-16 Robert Collins <rbtcollins@hotmail.com>
1147 * install.cc (install_one_source): Write the correct length of a string to the
1148 lst file (Thanks to Pavel Tsekov for reporting the bug).
1150 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1152 * choose.cc (list_click): Always refresh the entire chooser, as our
1153 package state change mechanism is broken with the new improved list classes.
1155 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1157 * desktop.cc (make_passwd_group): Check for .lnk suffix on /etc/passwd and
1160 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1162 * PickPackageLine.cc (PickPackageLine::DrawCheck): New method factored out from
1164 (PickPackageLine::paint): Use DrawCheck to draw the src tick box, and the new
1166 (PickPackageLine::click): Handle the new bin tickbox.
1167 * PickPackageLine.h (PickPackageLine::DrawCheck): Declare this.
1168 * PickView.cc (pkg_headers): Add a Bin? column.
1169 (cat_headers): Ditto.
1170 (PickView::set_headers): Ditto.
1171 (PickView::init_headers): Ditto.
1172 * PickView.h (PickView): Ditto.
1173 * choose.cc (list_click): Use the new name for src_col to set the clip rectangle.
1175 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1177 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Fix up Robert's
1180 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1182 * desktop.cc (make_link): Add "file://" prefix to io_stream::mkpath_p()
1184 (make_passwd_group): Ditto.
1185 * localdir.cc (save_local_dir): Ditto.
1186 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Wrap long lines.
1187 Add "cygfile://" prefix to io_stream::open() calls.
1189 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1191 * log.cc (log_save): Fix creating /var/log.
1192 * packate_meta.cc (standard_dirs): Remove duplicate '/''s.
1194 2002-02-24 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1196 * res.rc (STRINGTABLE): Add IDS_CYGWIN_SETUP and
1197 IDS_CYGWIN_SETUP_WITH_PROGRESS strings.
1198 * resource.h: Add IDS_CYGWIN_SETUP and
1199 IDS_CYGWIN_SETUP_WITH_PROGRESS IDs.
1201 * splash.cc (OnInit): Qualify SetWindowText() call with global scope
1202 operator (::SetWindowText()).
1204 * threebar.cc: Run indent.
1205 (cistring.h): Add include.
1206 (SetText1, SetText2, SetText3): Qualify SetWindowText() call with
1207 global scope operator.
1208 (SetBar2): Add logic for writing percent complete into window title.
1210 * window.h: Run indent.
1211 (SetWindowText): New function.
1212 (String): Add forward declaration.
1213 * window.cc: Run indent.
1214 (String++.h): Add include.
1215 (SetWindowText): New function.
1217 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1219 * README: Update TODO list.
1220 * install.cc (install_one): Fix src package location.
1221 (do_install_thread): Fix creating directories.
1223 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1225 * choose.cc: Include cygpackage.h for scan2 use.
1226 (set_existence): Ignore setup.ini mirrors when installing from cwd.
1227 (scan2): Process any valid file.
1228 Add cache entries when a file matching a setup.ini listed version is found.
1229 * filemanip.cc (parse_filename): Remove pkgtar - not used anywhere else.
1230 * filemanip.h (filemanip::pkgtar): Remove.
1231 * package_meta.cc (CategoryPackage::~CategoryPackage): New method.
1232 (packagemeta::~packagemeta): Move from package_meta.h
1233 Remove and delete all version and category information.
1234 * package_meta.h (CategoryPackage): Create a destructor.
1235 (packagemeta::~packagemeta): Move to .cc file.
1237 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1239 * install.cc (install_one_source): Make NULL cached package names cause
1242 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1244 * desktop.cc (make_passwd_group): Don't create passwd-grp.bat
1247 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1249 * log.cc (log_save): Put "\n" at end of log lines instead of "'".
1251 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1253 * mount.cc (create_mount): Avoid a const char*->char* warning.
1254 (read_mounts): Ditto.
1256 2002-02-05 Jason Tishler <jason@tishler.net>
1258 * download.cc (do_download_thread): Fix off-by-one error.
1260 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1262 * configure.in (CXXFLAGS): Substitute at configure time, not runtime.
1263 * configure (CXXFLAGS): Regenerate.
1264 * Makefile.in (iniparse.o): Build via default rules - no errors now.
1265 * README: TODO list updates.
1267 2002-02-19 Michael A Chase <mchase@ix.netcom.com>
1269 * String++.cc (String::concat):: Remove.
1270 (String::vconcat):: Ditto.
1271 * String++.h (String::concat):: Remove.
1272 (String::vconcat):: Ditto.
1273 * archive_tar.cc: Don't include concat.h.
1274 * archive_tar_file.cc: Don't include concat.h.
1275 * compress_bz.cc (compress_bz::peek): Don't log unneeded messages.
1276 (compress_bz::seek): Ditto.
1277 (compress_bz::~compress_bz): Ditto.
1278 * compress_gz.cc (compress_gz::peek): Ditto.
1279 (compress_gz::error): Ditto.
1280 (compress_gz::~compress_gz): Ditto.
1281 * concat.cc (vconcat): Remove.
1283 * concat.h (vconcat): Remove.
1285 * desktop.cc (desktop_icon): Use new cygpath.
1286 (make_etc_profile): Ditto.
1288 (make_passwd_group): Ditto.
1290 (check_desktop): Remove concat use.
1291 (check_start_menu): Ditto.
1292 * download.cc (download_one): Use new mkpath_p correctly.
1294 * fromcwd.cc: Don't include concat.h.
1295 * geturl.cc (get_url_to_membuf): Use String log() call.
1296 (get_url_to_file): Ditto.
1297 * install.cc: Don't include concat.h.
1298 (uninstall_one): Use LOG_PLAIN.
1299 (replace_one): Ditto.
1300 (install_one_source): Ditto.
1301 (install_one): More char to String conversion.
1302 (do_install_thread): Use new cygpath.
1303 Use new create_mount.
1304 * io_stream.cc (io_stream::move): Use new log().
1305 * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new cygpath.
1306 (io_stream_cygfile::exists): Ditto.
1307 (io_stream_cygfile::remove): Ditto.
1308 (io_stream_cygfile::mklink): Ditto.
1309 (io_stream_cygfile::write): Ditto.
1310 (cygmkdir_p): Ditto.
1311 (io_stream_cygfile::move): Ditto.
1312 * io_stream_file.cc: Don't include log.h.
1313 (io_stream_file::write): Don't log unneeded messages.
1314 * localdir.cc: Don't include concat.h.
1315 (LocalDirPage::OnNext): Use LOG_PLAIN.
1316 * log.cc: Don't include log.h.
1317 (exit_setup): Use new cygpath.
1318 * log.h (log_level): Add new level LOG_PLAIN.
1319 * main.cc (WinMain): Use new log().
1320 * mount.cc (SLASH_P): New macro from concat.h.
1321 (cygpath): Make String version globally visible.
1322 Remove varargs version.
1324 * msg.cc (mbox): Use LOG_PLAIN.
1325 * net.cc (NetPage::OnNext): Ditto.
1326 * nio-ftp.cc (ftp_line): Use new log().
1327 * nio-http.cc: Don't include log.h.
1328 (retry_get): Use alternative url variable.
1329 * package_db.cc: Don't include concat.h.
1330 (packagedb::flush): Don't use concat.
1331 * package_meta.cc: Don't include concat.h.
1332 (packagemeta::uninstall): Use new cygpath.
1333 * postinstall.cc (do_postinstall): Ditto.
1334 * root.cc (RootPage::OnNext): Use LOG_PLAIN.
1335 * script.cc: Don't include concat.h.
1336 (init_run_script): Use new cygpath.
1337 (run_script): More char * to String conversion.
1338 (try_run_script): Ditto.
1339 * site.cc: Don't include concat.h.
1340 (SitePage::OnNext): Use LOG_PLAIN.
1341 (SitePage::OnMessageCmd): Use new log().
1342 * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN.
1344 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1346 * Makefile.in (OBJS): Add new object.
1347 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the name.
1348 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
1349 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
1350 (PickLine::Pickline): Accept a String for the key.
1351 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to Strings.
1352 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is automatically
1354 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
1355 (PickView::init_header): Move category length checking out of the inner loop for
1357 Convert all char use to Strings.
1358 * PickView.h: Include the String++ header.
1359 (PickView::note_width): Update the prototype.
1360 * String++.cc: New file, implements a reference counting string class.
1361 * String++.h: New file, declares a reference counting string class.
1362 * archive.cc: Include String++ instead of concat.
1363 (archive::extract_file): Convert char * usage to Strings.
1364 * archive.h: Inlude the String++ header.
1365 (archive::extract_file): Update prototype.
1366 (archive::next_file_name): Convert to a String.
1367 (archive::linktarget): Ditto.
1368 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
1369 (archive_tar::linktarget): Ditto.
1370 * arhive_tar.h: Update the copyright.
1371 Explicitly include the relevant headers.
1372 (tar_map_result_type): Convert to String usage.
1373 (archive_tar::next_file_name): Update prototype.
1374 (archive_tar::linktarget): Ditto.
1375 * category.cc (Category::Category): Update initialisers.
1376 Convert to String usage.
1377 (Categorycmp): Update to String usage.
1378 * category.h: Include the String++ header.
1379 (Category::Category): Update to String usage.
1380 (Category::name): Ditto.
1381 (Category::key): Ditto.
1382 * choose.cc: Remove concat.h, it's not needed.
1383 (scan2): Update to String usage.
1385 * cygpackage.cc: Update includes for use of String class.
1386 (cygpackage::cygpackage): Update for String usage.
1387 (cygpackage::set_canonical_version): Ditto.
1388 (cygpackage::destroy): Ditto.
1389 (cygpackage::getfirstfile): Ditto.
1390 (cygpackage::getnextfile): Ditto.
1391 (cygpackage::Name): Ditto.
1392 (cygpackage::Vendor_version): Ditto.
1393 (cygpackage::Package_version): Ditto.
1394 (cygpackage::Canonical_version): Ditto.
1395 (cygpackage::set_sdesc): Ditto.
1396 (cygpackage::set_ldesc): Ditto.
1397 * cygpackage.h: Include String++.h for parsing this file.
1398 (cygpackage::cygpackage): Update for String usage.
1399 (cygpackage::set_canonical_version): Ditto.
1400 (cygpackage::destroy): Ditto.
1401 (cygpackage::getfirstfile): Ditto.
1402 (cygpackage::getnextfile): Ditto.
1403 (cygpackage::Name): Ditto.
1404 (cygpackage::Vendor_version): Ditto.
1405 (cygpackage::Package_version): Ditto.
1406 (cygpackage::Canonical_version): Ditto.
1407 (cygpackage::set_sdesc): Ditto.
1408 (cygpackage::set_ldesc): Ditto.
1409 (cygpackage::name): Ditto.
1410 (cygpackage::vendor): Ditto.
1411 (cygpackage::packagev): Ditto.
1412 (cygpackage::canonical): Ditto.
1413 (cygpackage::fn): Ditto.
1414 (cygpackage::sdesc): Ditto.
1415 (cygpackage::ldesc): Ditto.
1416 * desktop.cc: Update includes for use of String class.
1417 (batname): Update for String usage.
1420 (start)menu): Ditto.
1421 (desktop_icon): Ditto.
1422 (make_cygwin_bat): Ditto.
1423 (make_etc_profile): Ditto.
1425 (make_passwd_group): Ditto.
1427 (check_desktop): Ditto.
1428 (check_startmenu): Ditto.
1429 * dialog.cc (eget): Update for String usage.
1430 (egetString): New function.
1431 (eset): New variant for Strings.
1432 * dialog.h: Include String++.h for parsing this file.
1433 (egetString): New function.
1434 (eset): New variant for Strings.
1435 * diskfull.cc (diskfull): Update for String usage.
1436 * diskfull.h: Include String++.h for parsing this file.
1437 (diskfull): Update for String usage.
1438 * download.cc: Update includes for use of String class.
1439 (check_for_cached): Update for String usage.
1440 (download_one): Ditto.
1441 * filemanip.cc (get_file_size): Ditto.
1443 (parse_filename): Ditto.
1445 * filemanip.h: Include String++.h for parsing this file.
1446 (fileparse): Update for String usage.
1448 (parse_filename): Ditto.
1449 Don't consider '_' to be a separator.
1451 * find.cc: Update includes for use of String class.
1452 (find_sub): Make more flexible.
1453 (find): Update for String usage.
1454 * find.h (find): Use Strings.
1455 * fromcwd.cc (found_file): Update for String usage.
1457 (init_dialog): Ditto.
1458 (get_url_to_membuf): Ditto.
1459 (get_url_to_string): Ditto.
1460 (get_url_to_file): Ditto.
1462 (get_url_to_membuf): Ditto.
1463 (get_url_to_string): Ditto.
1464 (get_url_to_file): Ditto.
1466 (add_subdirs): Ditto.
1467 * ini.cc: Update includes for String usage.
1468 (find_routine): Update for String usage.
1469 (do_remote_ini): Ditto.
1470 (do_ini_thread): Ditto.
1471 * ini.h (ini_init): Ditto.
1472 * inilex.l: Update includes for String usage.
1473 (ini_init): Update for String usage.
1474 * iniparse.y: Ditto.
1475 (add_correct_version): Ditto.
1476 * install.cc: Update includes for String usage.
1477 (install_one_source): Update for String usage.
1478 (uninstall_one): Ditto.
1479 (replace_one): Ditto.
1480 (install_one_source): Ditto.
1481 (do_install_thread): Ditto.
1482 * io_stream.cc: Update includes for String usage.
1483 (io_stream::open): Update for String usage.
1484 (io_stream::mkpath_p): Ditto.
1485 (io_stream::remove): Ditto.
1486 (io_stream::mklink): Ditto.
1487 (io_stream::move_copy): Ditto.
1488 (io_stream::move): Ditto.
1489 (io_stream::exists): Ditto.
1490 * io_stream.h: Update includes to allow correct parsing.
1491 (io_stream::open): Update for String usage.
1492 (io_stream::mkpath_p): Ditto.
1493 (io_stream::remove): Ditto.
1494 (io_stream::mklink): Ditto.
1495 (io_stream::move_copy): Ditto.
1496 (io_stream::move): Ditto.
1497 (io_stream::exists): Ditto.
1498 * io_stream_cygfile.cc: Update includes for String usage.
1499 (get_root_dir_now): Update for String usage.
1500 (io_stream_cygfile::io_stream_cygfile): Ditto.
1501 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1502 (io_stream_cygfile::exists): Ditto.
1503 (io_stream_cygfile::remove): Ditto.
1504 (io_stream_cygfile::mklink): Ditto.
1505 (cygmkdir_p): Ditto.
1506 (io_stream_cygfile::set_mtime): Ditto.
1507 (io_stream_cygfile::move): Ditto.
1508 (io_stream_cygfile::get_size): Ditto.
1509 * io_stream_cygfile.h: Update includes for String usage.
1510 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
1511 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1512 (io_stream_cygfile::exists): Ditto.
1513 (io_stream_cygfile::remove): Ditto.
1514 (io_stream_cygfile::mklink): Ditto.
1515 (cygmkdir_p): Ditto.
1516 (io_stream_cygfile::set_mtime): Ditto.
1517 (io_stream_cygfile::move): Ditto.
1518 (io_stream_cygfile::get_size): Ditto.
1519 (io_stream_cygfile::fname): Ditto.
1520 (io_stream_cygfile::lmode): Ditto.
1521 * io_stream_file.cc: Update includes for String usage.
1522 (io_stream_file::io_stream_file): Update for String usage.
1523 (io_stream_file::~io_stream_file): Ditto.
1524 (io_stream_file::exists): Ditto.
1525 (io_stream_file::remove): Ditto.
1526 (io_stream_file::mklink): Ditto.
1527 (io_stream_file::set_mtime): Ditto.
1528 (io_stream_file::move): Ditto.
1529 (io_stream_file::get_size): Ditto.
1530 * io_stream_file.h: Update includes for String usage.
1531 * io_stream_file.cc: Update includes for String usage.
1532 (io_stream_file::io_stream_file): Update for String usage.
1533 (io_stream_file::~io_stream_file): Ditto.
1534 (io_stream_file::exists): Ditto.
1535 (io_stream_file::remove): Ditto.
1536 (io_stream_file::mklink): Ditto.
1537 (io_stream_file::set_mtime): Ditto.
1538 (io_stream_file::move): Ditto.
1539 (io_stream_file::get_size): Ditto.
1540 (io_stream_file::fname): Ditto.
1541 (io_stream_file::lmode): Ditto.
1542 * localdir.cc: Update includes for String usage.
1543 (save_local_dir): Update for String usage.
1544 (check_if_enable_next): Ditto.
1545 (load_dialog): Ditto.
1547 (LocalDirPage::OnInit): Ditto.
1548 (LocalDirPage::OnNext): Ditto.
1549 * log.cc: Update includes for String usage.
1550 (struct LogEnt): Update for String usage.
1553 (exit_setup): Ditto.
1554 * log.h: Update includes for String usage.
1555 (log_level): Update for String usage.
1558 * main.cc (WinMain): Update for String usage.
1559 * mklink2.c (make_link_2): Update for String usage.
1560 * mklink2.h (make_link_2): Update for String usage.
1561 * mount.cc: Update includes for String usage.
1562 (mount_table): Update for String usage.
1564 (create_mount): Ditto.
1566 (remove_mount): Ditto.
1567 (read_mounts): Ditto.
1568 (set_root_dir): Ditto.
1569 (get_root_dir): Ditto.
1570 (path_prefix_p): Ditto.
1572 * mount.h: Update includes for String usage.
1573 (create_mount): Update for String usage.
1574 (remove_mount): Ditto.
1576 (set_root_dir): Ditto.
1577 (get_root_dir): Ditto.
1578 * msg.cc (mbox): Ditto.
1579 * net.cc (NetPage::OnNext): Ditto.
1580 * package_db.cc (packagedb::flush): Ditto.
1581 (packagedb::packages): Ditto.
1582 (packagedb::categories): Ditto.
1583 * package_db.h: Update includes for String usage.
1584 (packagedb::packages): Update for String usage.
1585 (packagedb::categories): Ditto.
1586 * package_meta.cc: Update includes for String usage.
1587 (hash::add_subdirs): Update for String usage.
1588 (packagemeta::uninstall): Ditto.
1589 (packagemeta::SDesc): Ditto.
1590 (packagemeta::action_caption): Ditto.
1591 * package_meta.h: Update includes for String usage.
1592 (packagemeta::packagemeta): Update for String usage.
1593 (packagemeta::~packagemeta): Ditto.
1594 (packagemeta::uninstall): Ditto.
1595 (packagemeta::SDesc): Ditto.
1596 (packagemeta::action_caption): Ditto.
1597 (package_source.cc site::site): Ditto.
1598 (packagesource::set_canonical): Ditto.
1599 (packagesource::set_cached): Ditto.
1600 * package_source.h: Update includes for String usage.
1601 (site::site): Update for String usage.
1602 (packagesource::set_canonical): Ditto.
1603 (packagesource::set_cached): Ditto.
1604 (packagesource::packagesource): Ditto.
1605 (packagesource::sites): Ditto.
1606 (packagesource::cached): Ditto.
1607 * package_version.h: Update includes for String usage.
1608 (Dependency): Update for String usage.
1609 (packageversion): Ditto.
1610 * postinstall.cc: Update includes for String usage.
1611 (do_postinstall): Update for String usage.
1612 * res.rc (IDD_LOCAL_DIR): Fix typo again!
1613 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
1614 * rfc1738.h: Update includes for String usage.
1615 (rfc1738_escape_part): Update for String usage.
1616 * root.cc: Update includes for String usage.
1617 (check_if_enable_next): Update for String usage.
1618 (save_dialog): Ditto.
1620 (directory_is_absolute): Ditto.
1621 (directory_is_rootdir): Ditto.
1622 (directory_has_spaces): Ditto.
1623 (RootPage::OnInit): Ditto.
1624 (RootPage::OnNext): Ditto.
1625 * script.cc: Update includes for String usage.
1626 (init_run_script): Update for String usage.
1628 (run_script): Ditto.
1629 (try_run_script): Ditto.
1630 * script.h: Update includes for String usage.
1631 (run_script): Update for String usage.
1632 (try_run_script): Ditto.
1633 * site.cc site_list): Ditto.
1634 (all_site_list): Ditto.
1635 (other_url): Eliminate.
1636 (site_list_type::init): Update for String usage.
1637 (site_list_type::site_list_type): Ditto.
1638 (get_site_list): Ditto.
1639 (get_saved_sites): Ditto.
1640 (do_download_site_info_thread): Ditto.
1641 (SitePage::OnNext): Ditto.
1642 (SitePage::OnActivate): Ditto.
1643 (SitePage::PopulateListBox): Ditto.
1644 (SitePage::OnMessageCmd): Handle empty url's.
1645 * site.h: Update includes for String usage.
1646 (site_list_type::site_list_type): Update for String usage.
1647 (site_list_type::init): Ditto.
1648 (site_list_type::~site_list_type): Ditto.
1649 (site_list_type::url): Ditto.
1650 (site_list_type::displayed_url): Ditto.
1651 (site_list_type::key): Ditto.
1652 * source.cc (SourcePage::OnDeactivate): Ditto.
1653 * state.h: Update includes for String usage.
1654 (local_dir): Update for String usage.
1655 (trust_level): Remove.
1656 * version.cc: Update includes for String usage.
1657 (canonicalize_version): Update for String usage.
1658 * version.h: Update includes for String usage.
1659 (canonicalize_version): Update for String usage.
1661 2002-02-15 Christopher Faylor <cgf@redhat.com>
1663 * filemanip.c (parse_filename): Revert previous change.
1665 2002-02-14 Christopher Faylor <cgf@redhat.com>
1667 * filemanip.c (parse_filename): Don't treat '_' as a version number
1670 2002-01-29 Christopher Faylor <cgf@redhat.com>
1672 * configure: Regenerate.
1674 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1676 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
1677 <Hoeck@extern.lrz-muenchen.de>
1679 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1681 * README: Update Todo's.
1682 * list.h: Run indent.
1683 (list): New methods checksize and insert to reduce code duplication.
1684 (list::registerbykey): Use them.
1685 (list::registerbyobject): Ditto.
1686 (list::removebyindex): Copy each object individually - safe for non
1688 (list::checksize): Implement.
1689 (list::insert): Implement.
1691 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1693 * Makefile.in: Remove the dlmalloc object by default.
1694 * install.cc (do_install_thread): Remove the mallinfo call for 'working
1695 around' the crashing issue.
1696 * package_db.h: Include <string.h> - it's needed to parse this.
1697 * package_source.cc (site::site): Move here from the header file.
1698 * package_source.h (site): Stop the constructor being inlinable.
1700 2002-01-26 Robert Collins <rbtcollins@hotmail.com>
1702 * filemanip.cc (find_tar_ext): Add a descriptive comment.
1704 2002-01-25 Michael A Chase <mchase@ix.netcom.com>
1706 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
1707 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
1708 * install.cc (install_one_source): Add space between words in log()
1711 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1713 * log.cc (exit_setup): When saving to the download dir, explicity
1716 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1718 * archive.cc (extract_file): Separate out the prefix and the URL
1720 * archive.h (archive::extract_file): Ditto.
1721 * install.cc (install_one_source): Ditto. Use the new
1722 archive::extract_file syntax.
1723 (replace_one): Use the new syntax.
1724 (io_stream.cc): Add some log info for links.
1726 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1728 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
1729 (PickCategoryLine::paint): Use the new action method.
1730 (PickCategoryLine::click): Set the action for all children.
1731 (PickCategoryLine::set_action): New method.
1732 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
1733 (PickCategoryLine::current_default): Use packagemeta _actions class.
1734 * PickLine.h (PickLine::set_action): New abstract method that requires
1735 including package_meta.h.
1736 * PickPackageLine.cc (PickPackageLine::set_action): New method.
1737 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
1738 * list.h (getbykey): A const correctness fix.
1739 * package_meta.cc: Run indent.
1740 (packagemeta::Default_action): New const.
1741 (packagemeta::Install_action): Ditto.
1742 (packagemeta::Reinstall_action): Ditto.
1743 (packagemeta::Uninstall_action): Ditto.
1744 (packagemeta::_actions::caption): New method.
1745 (packagemeta::_actions::operator++): Ditto.
1746 (packagemeta::set_action): New overload.
1747 * package_meta.h (packagemeta::_actions): New class.
1748 (packagemeta::set_action): Declare this.
1750 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1752 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
1753 * choose.cc: Don't define alloca anymore, it's done in win32.h
1755 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1757 * PickPackageLine.cc: New file.
1758 * PickPackageLine.h: New file.
1759 * PickLine.cc: New file.
1760 * PickLine.h: New file.
1761 * PickCategoryLine.cc: New file.
1762 * PickCategoryLine.h: New file.
1763 * PickView.cc: New file.
1764 * PickView.h: New file.
1765 * Makefile.in: Add new objects to setup.exe.
1766 Backout -fno-exceptions option.
1767 * choose.cc: Include PickView.h.
1768 Remove view related defines and static variables.
1769 (_pkg_headers): Moved to PickView.cc.
1770 (_cat_headers): Ditto.
1771 (view::views::Unknown): Ditto.
1772 (view::views::PackageFull):
1773 (view::views::Package):
1774 (view::views::Category):
1775 (pkgtrustp): Moved to package_meta.cc.
1776 (add_required): Moved to package_meta.cc.
1777 (pick_category_line::empty): Moved to PickCategoryLine.cc
1778 (paint): Adjust for moved static variables.
1779 (view::scroll): Moved to PickView.cc.
1780 (list_vscroll): Adjust for moved static variables.
1781 (list_hscroll): Ditto.
1782 (list_click): Ditto.
1783 (note_width): Moved to PickView.cc.
1784 (view::view): Ditto.
1785 (view::set_view_mode): Ditto.
1786 (view::mode_caption): Ditto.
1787 (view::views::caption): Ditto.
1788 (view::set_headers): Ditto.
1789 (DoInsertItem): Ditto.
1790 (view::init_headers): Ditto.
1791 (view::insert_pkg): Ditto.
1792 (view::insert_category): Ditto.
1793 (view::clear_view): Ditto.
1794 (view::views::operator++): Ditto.
1795 (view::click): Ditto.
1796 (default_trust): Adjust for moved statics.
1797 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
1798 (pick_pkg_line::click): Ditto.
1799 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
1800 (pick_category_line::paint): Ditto.
1801 (pick_category_line::click): Ditto.
1802 (set_view_mode): Adjust for moved statics.
1803 (create_listview): Ditto.
1804 * choose.h: Remove Category and packagemeta forward defines - not needed.
1805 Don't include unneeded headers list and package_meta.
1806 (_header): Move to PickView.h.
1807 (pick_line): Move to PickLine.h.
1808 (pick_pkg_line): Move to PickPackageLine.h.
1809 (pick_category_line): Move to PickCategoryLine.h.
1810 (view): Move to PickView.h.
1811 * ini.h (trusts): Move to package_meta.h.
1812 * package_meta.h (trusts): New enum.
1813 (packagemeta::set_requirements): New helper method.
1814 (packagemeta::trustp): Ditto.
1816 2002-01-21 Christopher Faylor <cgf@redhat.com>
1818 * choose.h (view): Move forward declaration of views into public area
1819 or g++ v3 will complain.
1821 2002-01-21 Christopher Faylor <cgf@redhat.com>
1823 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
1824 * win32.h (alloca): Define as __builtin_alloca.
1825 * io_stream_memory.cc: Add include file.
1827 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
1829 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as destroyed.
1830 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
1831 * compress.cc (compress::~compress): Be less verbose.
1832 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
1833 Mark the stream as destroyed.
1834 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as destroyed.
1835 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not marked
1837 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
1838 stream as destroyed.
1839 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
1840 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
1842 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
1844 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
1845 (OBJS): Link in malloc objects.
1846 * category.cc (category): Use new char, not strdup.
1847 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
1848 (do_choose): Use new char, not malloc.
1849 * concat.cc (vconcat): Ditto.
1850 * cygpackage.cc (cygpackage): Use new char, not strdup.
1851 (set_canonical_version): Ditto.
1852 (cygpackage::destroy): Use delete[], not free.
1853 * desktop.cc (uexists): Ditto.
1854 * dialog.cc (egest): Use new char, not strdup.
1855 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
1856 * hash.cc (hash::hash): Use delete instead of free.
1857 (hash::add): Use new char, not strdup.
1858 * ini.cc (do_remote_ini): Use delete[] not free.
1859 * inilex.l: Use new char, not strdup.
1861 * iniparse.y: Ditto.
1862 Use a local package_db rather than a static one.
1863 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
1864 (do_install_thread): Call mallinfo to force a consistency check. Appears
1865 to fix a 'inuse' error in -DDEBUG builds.
1866 Use delete[] for strings.
1867 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new char,
1869 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
1870 (io_stream_cygfile::remove): Use new char, not strdup.
1871 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not strdup.
1872 (io_stream_file::io_stream_file): Use delete[], not free.
1873 (io_stream_file::remove): Use new char, not strdup.
1874 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
1875 * io_stream_memory.h (memblock): Use new char, not malloc.
1876 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
1877 * main.cc (WinMain): Use new char, not strdup.
1878 * mount.cc (find2): Use new char, not malloc.
1879 (read_mounts): Ditto.
1880 (cygpath): Use new char, not strdup.
1881 * netio.cc (NetIO::~NetIO): Use delete[], not free.
1882 (NetIO::set_url): Use new char, not strdup.
1883 (NetIO::get_ftp_auth): Use delete[], not free.
1884 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
1885 Use new char instead of strdup.
1886 * nio-http.cc (base64_encode): Use new char, not malloc.
1887 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
1888 * package_source.h (~ packagesource): Use delete[] instead of delete.
1889 * port.h (strdup): Deprecate the use of strdup.
1890 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
1891 * script.cc (init_run_script): Us delete[], not free.
1892 (run_script): Ditto.
1893 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
1894 (SimpleSocket::invalidate): Use delete[], not free.
1895 * site.cc (site_list_type::init): Use new char instead of strdup.
1896 * site.h (~site_list_type): Use delete[], not free.
1898 2002-01-20 Robert Collins <rbtcollins@hotmail.com>
1900 * Makefile.in (OBJS): Add win32.o - win32 support functions.
1901 * README: Update todos.
1902 * archive.cc (extract_file): Support a suffix for appending to extracted files.
1904 * choose.cc (set_view_mode): Use the new view::views class.
1905 (view::views::Unknown): New static for defaulting view::views variables.
1906 (view::views::PackageFull): New static for the current view.
1907 (view::views::Package): Ditto.
1908 (view::views::Category): Ditto.
1909 (topbucket::paint): Remove.
1910 (topbucket::empty): Rename to pick_category_line::empty.
1911 (topbucket::~topbucket): Remove.
1912 (paint): Use the new view::views class.
1913 Don't paint 'all' as a category when showing package categoies.
1914 (pick_category_line::actiontext): New method.
1915 (pick_category_line::paint): Make showing the category optional, and show the
1917 (pick_category_line::click): Make showing the category optional, and
1918 differentiate between the name being clicked, and the action description.
1919 (view::view): Use the new view::views class.
1920 (view::set_view_mode): Ditto.
1921 (view::mode_caption): Ditto.
1922 (view::views::caption): New method.
1923 (view::set_headers): Use the new view::views class.
1924 (view::clear_view): Ditto.
1925 (viewsplusplus): Replaced by
1926 (view::views::operator++): New operator.
1927 (set_view_mode): Use the new view::views class.
1928 (create_listview): Ditto.
1929 (dialog_cmd): Ditto.
1930 * choose.h (actions): Remove.
1932 (pick_line): Add a new convenience constructor.
1933 (top_bucket): Remove.
1934 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
1935 (view::views): New class.
1936 * ini.h: Don't include choose.h
1937 (is_download_action): Remove.
1938 (is_upgrade_action): Remove.
1939 (is_uninstall_action): Remove.
1940 (is_full_action): Remove.
1941 * install.cc (num_replacements): New static.
1942 (rebootneeded): Ditto.
1943 (replace_one): Handle upgrades separate from removal or new installs.
1944 (install_one_source): Handle in use files.
1945 (install_one): Don't repeat upgrades.
1946 (do_install_thread): Initialize new statics.
1947 Order actions as uninstall, replace, install.
1948 Warn about rebooting if needed.
1949 * res.rc (IDS_REBOOT_REQUIRED): New string.
1950 * resource.h (IDS_REBOOT_REQUIRED): Give value.
1951 * win32.h: Declare class Win32, and update copyright and intent message.
1952 * win32.cc: New file.
1954 2002-01-15 Corinna Vinschen <corinna@vinschen.de>
1956 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
1957 * package_meta.cc (packagemeta::uninstall): Check for additional
1958 Windows shortcut. Unset R/O file attribute before trying to delete
1961 2002-01-09 Robert Collins <rbtcollins@hotmail.com>
1963 * choose.cc (pkgtrustp): Fall back to installed if a package is not present in
1964 the current trust level. For prev, fall back via curr.
1965 (set_existence): Allow sources with no sites, but cached files to be
1967 (pick_category_line::paint): Start drawing clickable categories.
1968 * fromcwd.cc (found_file): Reinstate local file scanning.
1970 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1972 * fromcwd.cc: Run indent.
1973 (do_fromcwd): Reverse sense of comment. Set next_dialog
1974 to IDD_CHOOSER instead of IDD_CHOOSE.
1975 * ini.cc (find_routine): Remove "/" from "/setup.ini".
1977 2001-01-07 Robert Collins <rbtcollins@hotmail.com>
1979 * category.cc (Categorycmp): Add a const safe version.
1980 * category.h (Categorycmp): Add a const safe version.
1981 (Category): Add operator ==.
1982 * choose.cc (fill_missing_category): Add every package to "All".
1983 (pick_category_line::paint): Add support for hidden labels, and a tree depth.
1984 (pick_category_line::click): Ditto.
1985 (view::view): Pass in a top level category to use.
1986 (view::insert_pkg): Special case - skip category "All".
1987 (view::insert_category): Ditto.
1988 (view::clear_view): Set the contents label state.
1989 (create_listview): Pass in a top level category to view().
1990 * choose.h (topbucket): Make bucket available to derived classes.
1991 (pick_category_line): Add support for hidden labels, and a tree depth.
1992 Remove our second copy of bucket.
1993 (view): Pass in a top level category to the constructor.
1994 Use pick_category_line to allow three level display.
1996 2001-01-06 Robert Collins <rbtcollins@hotmail.com>
1998 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
1999 * iniparse.y (add_correct_version): Copy descriptions across.
2000 * package_meta.cc (SDesc): Iterate through versions, return the first with a
2002 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
2004 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
2006 * script.cc (run_script): Change cygpath:// to cygfile://.
2007 * install.cc (do_install_thread): Fix off-by-one errors.
2009 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
2011 * package_db.cc (packagedb::flush): Fix an off-by-one error.
2013 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
2015 * Makefile.in (realclean): more clean.
2016 (OBJS): Add script.o.
2017 * postinstall.cc (run_script_in_etc_postinstall): New function.
2018 (do_postinstall): Split off new funtion init_run_script ().
2021 (run_script): Move to script.cc. Replace some deprecated remove
2024 * script.cc: New file.
2025 * Forward port cygwin-20010707.jcn3.patch.
2026 * package_meta.cc (uninstall): Run pre- and postremove scripts.
2027 * install.cc: Typo fix.
2028 (do_install): Run script initialisation.
2030 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2032 * cistring.cc: Run d2u.
2033 * cistring.h: Run d2u.
2035 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
2036 from the generated /etc/profile. Bash will source this file
2037 automatically, and having this here merely results in .bashrc being
2038 executed twice. Run d2u.
2039 * desktop.h: Run d2u.
2041 * propsheet.cc: Run d2u.
2042 (PropSheetProc): New function. Add minimize box here instead of in
2043 PropertyPage::DialogProc.
2044 (PropSheet::Create): Change to use creation callback PropSheetProc.
2045 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
2047 * propsheet.h: Run indent, d2u.
2048 * proppage.h: Run indent, d2u.
2050 * proppage.cc: Run d2u.
2051 (PropertyPage::DialogProc): Remove minimize-box-adding
2052 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
2053 Add support for calling virtual OnMessageCmd. Add setting of fonts in
2054 WM_INITDIALOG handler.
2055 (resource.h): New include for resource IDs.
2057 * res.rc: Resize and rearrange property page dialog templates
2058 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
2059 specification. Run d2u.
2060 (IDD_SITE): Add an edit control and an "Add" button in order to
2061 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
2062 (IDD_OTHER_URL): Remove dialog template.
2063 (IDD_DLSTATUS): Remove dialog template.
2066 (SitePage::OnBack): Remove NEXT() macro invocation.
2067 (SitePage::OnActivate): New member function.
2068 (load_dialog): Remove. Functionality subsumed into
2069 SitePage::OnActivate.
2070 (save_dialog): Change to support both list and user URLs. Remove
2071 OTHER_IDX and mirror_idx logic.
2072 (SitePage::PopulateListBox): New member function.
2073 (SitePage::CheckControlsAndDisableAccordingly): New member function.
2074 (SitePage::OnMessageCmd): New override.
2075 (check_if_enable_next): Remove.
2076 (dialog_cmd): Remove.
2077 (do_download_site_info_thread): Remove calls to NEXT() macro.
2078 (SitePage::Create): Call the single-param PropertyPage::Create
2080 (other_url): New static taken from other.cc.
2081 (SitePage::OnNext): Remove mirror_idx logic.
2082 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
2083 list box populating code, now handled in SitePage::PopulateListBox.
2084 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
2085 (save_site_url): Fix potential buffer overflow problem. Switched to
2086 TCHAR in grossly premature preparation for multilingual support.
2088 (SitePage::OnActivate): New member function.
2089 (SitePage::CheckControlsAndDisableAccordingly) New member.
2090 (SitePage::OnMessageCmd): New override.
2091 (do_download_site_info_thread): Add MessageBox call on failure to
2094 * splash.cc: Run d2u.
2095 (SplashPage::OnInit): Set the font for the title.
2096 * splash.h: Run d2u.
2098 * threebar.cc: Run d2u.
2099 * threebar.h: Run d2u.
2101 * window.h: Run d2u.
2102 (Window::IsButtonChecked): New member function declaration.
2103 (Window::OnMessageCmd): New member function.
2104 (Window::SetDlgItemFont): New member function declaration.
2105 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
2107 * window.cc: Run d2u.
2108 (Window::IsButtonChecked): New member function definition.
2109 (Window::SetDlgItemFont): New member function definition.
2110 (Window::Window): Add initialization for FontCounter.
2111 (Window::~Window): Delete any fonts we created.
2113 * geturl.cc: Run d2u.
2114 (progress): Remove the "3" field width from the "%3d"
2115 percent-complete format indicator. Causes line to not start at
2116 beginning of text box, and does little to help with "jumping", since
2117 the "bytes downloaded so far" field is variable-width anyway. Change
2118 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
2119 painfully slow connections, or temporary slowdowns in faster
2120 connections should such more-instantaneous functionality become
2124 (NetPage::OnMessageCmd): New member function declaration.
2125 (NetPage::CheckIfEnableNext): New member function declaration.
2127 (NetPage::OnMessageCmd): New member function definition.
2128 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
2129 (check_if_enable_next): Remove.
2130 (NetPage::CheckIfEnableNext): New member function, subsumes
2131 check_if_enable_next.
2132 (propsheet.h): Add include.
2133 (NetPage::Init): Add call to CheckIfEnableNext.
2134 (load_dialog): Remove call to check_if_enable_next.
2135 (NetPage::Create): Call single-template-ID-parameter overload of
2136 PropertyPage::Create instead of three-parameter one.
2138 * Makefile.in (OBJS): Remove other.o.
2139 * other.cc: Remove file.
2141 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
2143 * README: Update TODO's.
2144 * choose.cc (set_existence): Delete non installed packages with no
2146 (fill_missing_category): Fix an off-by-one error.
2147 (default_trust): Ditto. Also delete any unused categories.
2148 (view::init_headers): Fix an off-by-one error.
2149 (set_view_mode): Ditto.
2150 (set_view_mode): Ditto.
2151 (create_listview): Ditto.
2152 (dialog_cmd): Ditto.
2154 * io_stream.cc: Indent.
2155 * io_stream.h: Ditto.
2156 * package_db.cc: Ditto.
2157 * package_meta.h: Const correctness for SDesc ();
2158 * proppage.cc: Run d2u and indent.
2159 * propsheet.cc: Run d2u and indent.
2160 * window.cc: Run d2u and indent.
2161 * window.h: Run d2u and indent.
2163 2001-12-28 Christopher Faylor <cgf@redhat.com>
2165 * Makefile.in (iniparse.o): Accommodate newer bisons.
2167 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2169 * window.h (Window): New file, new class.
2170 * window.cc (Window): New file, new class.
2172 * threebar.h (ThreeBarProgressPage): New file, new class.
2173 * threebar.cc (ThreeBarProgressPage): New file, new class.
2175 * splash.h (SplashPage): New file, new class.
2176 * splash.cc (SplashPage): Replace file with implementation of new
2179 * source.h (SourcePage): New file, new class.
2180 * source.cc: Run indent.
2181 (SourcePage): Add class implementation to this file.
2182 (do_source): Remove, functionality subsumed by SourcePage::Create()
2183 and SourcePage::OnDeactivate().
2184 (dialog_proc): Remove, functionality subsumed by
2185 SourcePage::OnActivate().
2187 * site.h: Run indent.
2188 (SitePage): Add class declaration.
2189 * site.cc: Run indent.
2190 (SitePage): Add class implementation.
2191 (do_download_site_info_thread): New function.
2192 (context): New var. Context info for do_download_site_info_thread().
2193 (do_download_site_info): New function.
2194 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
2195 (SitePage::OnBack): SitePage class implementation..
2196 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
2197 by SitePage members.
2198 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
2200 (do_site): Remove, now handled by do_download_site_info_thread() and
2201 SitePage::OnNext functionality.
2202 (get_site_list): Remove dismiss_url_status_dialog() call.
2204 * root.h (RootPage): New file, new class.
2205 * root.cc: Run indent.
2206 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
2207 (dialog_proc): Remove.
2209 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
2210 (RootPage::OnInit): New member function. Move get_root_dir() logic to
2211 here from do_root().
2212 (RootPage::Create): New member function.
2213 (RootPage::OnNext): New member function. Move IDOK logic from
2214 dialog_cmd() to here.
2215 (RootPage::OnBack): New member function.
2217 * propsheet.h (PropSheet): New file, new class.
2218 * propsheet.cc (PropSheet): New file, new class.
2220 * proppage.h (PropertyPage): New file, new class.
2221 * proppage.cc (PropertyPage): New file, new class.
2223 * postinstall.cc (do_postinstall): Add owner parameter.
2225 * other.cc (do_other): Add owner parameter.
2227 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
2228 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
2230 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
2233 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
2234 get_auth(), get_proxy_auth().
2236 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
2237 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
2238 NetIO::get_ftp_auth)
2239 (auth_common): Add owner param. Pass owner param to DialogBox.
2240 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
2241 owner param to auth_common().
2243 * net.h (NetPage): New file, new class.
2244 * net.cc: Run indent.
2245 (net.h, threebar.h): Add includes.
2246 (Progress): Add extern.
2247 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
2248 property sheet logic. Saved temporarily for reference.
2249 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
2250 NetPage::OnNext, NetPage::OnBack):
2251 New implementation of NetPage class members.
2253 (dialog_proc): Remove.
2255 * msg.h (fatal, note, yesno): Add owner param.
2256 * msg.c (fatal, note, yesno, mbox): Add owner param.
2257 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
2258 now that we have a parent.
2260 * main.cc: Run indent.
2261 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
2262 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
2264 (root_dialog_proc): extern into this file.
2265 (Progress): Progress dialog defined here, used in several other files.
2266 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
2267 Site, Chooser, Desktop pages and MainWindow sheet. Call
2268 InitCommonControls() to make sure Windows is set up for our use of
2269 property sheets. Add pages to sheet.
2270 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
2271 now handled by the PropSheet class.
2272 (root.h): Add include.
2274 * log.cc (log_save): Pass NULL parent to fatal().
2275 (exit_setup): Pass NULL parent to note().
2277 * localdir.h (LocalDirPage): New file, new class.
2278 * localdir.cc: Run indent.
2279 (localdir.h): New include.
2280 (threebar.h): New include.
2281 (Progress): extern into this file.
2282 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
2283 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
2285 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
2286 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
2287 (do_local_dir): Remove.
2288 (dialog_proc): Remove.
2289 (cwd): Remove, not used by anything.
2291 * install.cc: Run indent.
2292 (process.h, threebar.h): New includes.
2293 (Progress): extern into this file.
2294 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
2295 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
2296 ThreeBarProgressPage.
2297 (dialog_cmd, dialog_proc, dialog): Removed, handled in
2298 ThreeBarProgressPage.
2299 (init_dialog): Remove all mention of the above ins_* handles. Now
2300 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
2301 ThreeBarProgressPage instance Progress directly.
2302 (progress): Alter bar update logic to call ThreeBarProgressPage
2303 instance Progress directly.
2304 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
2305 instance Progress directly.
2306 (install_one_source): Alter SetWindowText()s to call
2307 ThreeBarProgressPage
2308 instance Progress directly. Pass NULL parent to note().
2309 (do_install_thread): Rename from do_install(), added owner param.
2310 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
2312 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
2313 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
2315 (do_install_reflector): New function.
2316 (do_install): New function.
2318 * ini.cc (process.h, threebar.h): New includes.
2319 (Progress): externed into this file.
2320 (find_routine): Pass NULL parent to note().
2321 (do_local_ini): Add owner param.
2322 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
2323 and note(). Remove call to dismiss_url_status_dialog().
2324 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
2325 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
2326 to IDD_CHOOSER on exit.
2327 (do_ini_thread_reflector): New function.
2328 (context): New var. Context for do_ini_thread.
2329 (do_ini): New function.
2331 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
2333 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
2335 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
2337 (threebar.h): New include.
2338 (Progress): externed into this file.
2339 (dialog_cmd, dialog_proc, dialog): Removed, handled by
2340 ThreeBarProgressPage now.
2341 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
2343 and bar setting SendMessage()s to call ThreeBarProgressPage instance
2344 Progress directly. Remove "one bar only" logic, this is now handled
2345 explicitly in the ThreeBarProgressPage class.
2346 (progress): Altered bar and text update logic to call
2347 ThreeBarProgressPage instance Progress directly. Changed kbps
2348 calculation to floating point and now print out a single decimal
2350 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
2351 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
2352 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
2353 update logic to call ThreeBarProgressPage instance Progress directly.
2354 (dismiss_url_status_dialog): Remove.
2356 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
2359 * download.cc: Run indent.
2360 (process.h, threebar.h): New includes.
2361 (Progress): externed into this file.
2362 (download_one): Add owner param. Pass it to get_url_to_file().
2363 (do_download_thread): Renamed from do_download. Add owner param. When
2364 calculating total_download_bytes, take binpicked and srcpicked into
2365 account. Remove call to dismiss_url_status_dialog(), no longer needed.
2366 Pass owner handle to download_one() and yesno().
2367 (do_download_reflector, do_download): New functions.
2368 (context): New var. Context for do_download_thread().
2370 * dialog.h (D(x)): Add owner param.
2372 * desktop.h (DesktopSetupPage): New file, new class.
2373 * desktop.cc: Run indent.
2374 (desktop.h): Add include.
2375 (dialog_proc, do_desktop): Remove, now handled in
2376 DesktopSetupPage::OnInit().
2377 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
2378 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
2380 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
2381 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
2382 of DesktopSetupPage.
2384 * cistring.h: New file, new class.
2385 * cistring.cc: New file, new class.
2387 * choose.h: Run indent.
2388 (Chooser): New class declaration.
2389 * choose.cc: Run indent.
2390 (do_choose): Add owner param. Pass it to DialogBox() and
2392 (Chooser): New class implementation.
2394 * res.rc (IDS_VERSION_INFO): New string.
2395 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
2396 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
2397 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
2399 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
2400 TAB control navigation etc. Give the controls a reasonable tab order.
2401 Grouped radio buttons. Something's still not right, can't tab away
2402 from back/next/cancel group reliably.
2403 * resource.h (IDD_CHOOSER): New dialog ID.
2405 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
2406 threebar.o, and window.o.
2408 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
2410 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
2411 (pick_pkg_line::paint): Clip columns to prevent overlap.
2413 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
2415 * Makefile.in: Add libcomctl32.a for setup.exe.
2416 * archive.h (archive): Prevent non-child direct creation of the class.
2417 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
2418 * choose.cc: Include commctrl for the choose header.
2419 (NEW_COL_SIZE_SLOP): Define without magic numbers.
2420 (pkgtrustp): Convert to function.
2421 (set_action): Remove.
2422 (add_required, fill_missing_category,default_trust): Use list syntax for
2425 (choose_caption): Remove.
2426 (topbucket::paint): New method.
2427 (topbucket::empty): Ditto.
2428 (topbucket::click): Ditto.
2429 (topbucket::~topbucket): Ditto.
2430 (paint): Remove i,ii and p as they are obsolete.
2431 Remove header drawing code.
2432 Use new chooser method to paint the chooser.
2433 Use new chooser itemcount method.
2434 (scroll_common): Rename to view::scroll.
2435 Scroll the header window separately.
2436 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
2437 (listview_proc): Look for header messages.
2438 (note_width): Accept stringless calls.
2439 (pick_line::set_line): Remove.
2440 (pick_line::paint): Remove.
2441 (pick_pkg_line::paint): Paint this one line, using the header column widths.
2442 (pick_category_line::paint): Paint this category, and anything in the bucket.
2443 (pick_line::click): Remove.
2444 (pick_pkg_line::click): Handle a click.
2445 (pick_category_line::click): Handle a click.
2446 (_view): Rename all to view.
2447 (view::view): Initialise the control contents.
2448 (view::set_headers): Work with the header control.
2449 (view::init_headers): Use list syntax for package list.
2450 Rearrange the width logic a little.
2451 (view::insert_pkg): Update to use the hierarchy.
2452 (view::insert_category): Ditto.
2453 (view::insert_at, view::insert_under): Remove.
2454 (view::clear_view): Update to use the hierarchy.
2455 (view::click): Update to use the hierarchy.
2456 (set_view_mode): Use list syntax for package list.
2457 Update for new chooser methods.
2458 (DoInsertItem): New helper function. (Needs a home somewhere).
2459 (create_listview): Remove choose control code and use the constructor instead.
2460 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
2461 * choose.h: Include newly required headers list and package_meta.
2462 (_voew): Rename to view.
2463 (pick_line): Convert to an ABC.
2464 (pick_pkg_line): New class.
2465 (pick_catgory_line): New class.
2466 (topbucket): New class.
2467 (view::scroll): New method created from listview_scroll function.
2468 * desktop.cc (make_passwd_group): Use list syntax for package list.
2469 * download.cc (do_download): Use list syntax for package list.
2470 * fromcwd.cc (found_file): Use list syntax for package list.
2471 * iniparse.y (pacakges): Use list syntax for package list.
2472 * install.cc (uninstall_one): Use list syntax for package list.
2473 (do_install): Use list syntax for package list.
2474 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
2475 Prevent inaccurate synthetic copy and assignment.
2476 * list.h: Include required header stdlib.
2477 Work on const correctness.
2478 * package_db.cc (packagedb::getpackagebyname): Remove.
2479 (packagedb::packagedb): Remove custom list code, and make db a local.
2480 (packagedb::getfirstpackage): Remove.
2481 (packagedb::getnextpackage): Remove.
2482 (packagedb::addpackage): Remove.
2483 (flush): Remove custom list code.
2484 (packagedb::registerpackage): Remove.
2485 (packagedb::packages): New static member.
2486 (packagedb::task): New static member.
2487 * package_db.h (PackageDBActions): New enum.
2488 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
2489 addpackage, registerpackage, packages, packagecount, curr_package, db.
2491 * pacakge_meta.cc: Include package_db.h.
2492 (packagemeta::action_caption): New method.
2493 (packagemeta::set_action): New method.
2494 * package_meta.h (CategoryPackage): Initialise key.
2495 (packagemeta): Initialise key.
2496 Add set_action and action_caption methods.
2497 Prevent inaccurate synthetic copy and assignment.
2498 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
2499 * source.cc: Include package_db for db manipulation.
2500 (save_dialog): Set the db task.
2501 * win32.h: Tell the w32 include headers what IE version to expect/require.
2503 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
2505 * README: Wishlist updates.
2507 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
2509 * package_db.cc (getnextpackage): Don't overrun the array.
2511 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
2513 * Makefile.in (OBJS): Add setup_version.o.
2514 (version.c): Rename to setup_version.
2515 * choose.cc (set_action): Prevent NULL pointer dereference.
2516 (package_sort): Remove.
2517 * fromcwd.cc (canonicalize_version): Moved to version.cc.
2518 (check_ini): New function for use with find to see if there is a cached setup.ini.
2519 (do_fromcwd): Check for a cached setup.ini from any mirror site.
2520 * ini.cc (find_routine): New function, for finding cached setup.ini's.
2521 (do_local_ini): New function, drives parsing of local ini's.
2522 (do_remote_ini): New function, drives parsing and caching of remote ini's.
2523 (do_ini): Move guts to do_remote_ini and do_local_ini.
2524 * list.h (removebyindex): New method.
2525 * other.cc (save_dialog): Use new site_list and all_site_list to add the
2526 new site to the site picklist.
2527 (dialog_cmd): Only save the dialog when exiting the dialog.
2528 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
2529 * site.cc (site_list_type): Move to site.h
2530 (site_list): New global, sites chosen by the user.
2531 (all_site_list): New global, all potential sites.
2532 (site_list_type::init): New method, parses a mirror.lst URL string into a
2533 site_list_type object.
2534 (site_list_type::site_list_type): New method.
2535 (check_if_enable_next): Examine the control, not a local variable.
2536 (load_dialog): Select all the user chosen sites by default.
2537 (save_dialog): Adjust for multiple selection semantics.
2538 (save_site_url): Save all user chosen sites.
2539 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
2541 Remove obsolete other_url reference.
2542 (dialog_proc): Use all_site_list instead of site_list.
2543 (site_sort): Remove.
2544 (get_site_list): Remove malloc use - use list template instead.
2545 Move site_list_type initialisation to site_list_type::init().
2546 (get_initial_list_idx): Renamed to ...
2547 (get_saved_sites): this. Also read in multiple sites to the site_list.
2548 (do_site): Use all_site_list not site_list.
2549 Log all chosen sites.
2550 * site.h: New file, defines site related class, functions and variables.
2551 * state.h: Add comment about use of state.h
2552 (mirror_site): Remove.
2553 (other_url): Remove.
2554 (MIRROR_SITE): Remove.
2555 * version.cc: New file, for version-handling and related functions.
2557 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
2559 * Makefile.in: Add filemanip.o to setup.
2560 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
2561 * archive_tar.h (archive_tar_file): Implement get_size virtual.
2562 (archive_tar): Ditto.
2563 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
2565 (_view::init_headers): Ditto.
2566 (_view::insert_pkg): Ditto.
2567 (set_view_mode): Ditto.
2570 (base): Moved to filemanip.cc.
2571 (find_tar_ext): Ditto.
2572 (parse_filename): Ditto.
2573 (_Info::_Info): Remove.
2574 * compress_bz.h (compress_bz): Implement get_size virtual.
2575 * compress_gz.h (compress_gz): Implement get_size virtual.
2576 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
2577 * download.cc (get_file_size): Move to filemanip.cc.
2578 (check_for_cached): Use [] operator instead of getnth - its more readable.
2579 (download_one): Ditto.
2580 * filemanip.cc: New file.
2581 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
2582 (get_url_to_membuf): New function - contains get_url_to_string worker code.
2583 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
2584 * geturl.h: Declare new prototype.
2585 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
2586 Tidy up the error code a little.
2587 * ini.h: Remove __cplusplus protection for ini_init.
2589 * inilex.l: Remove old globals.
2590 (ini_init): Use an io_stream for getting the characters.
2591 (ini_getchar): Ditto.
2592 * iniparse.y: Declare yylex as a C++ function.
2593 (add_correct_version): Use [] operator instead of getnth - its more readable.
2594 * io_stream.cc (io_stream::move_copy): Use the copy method.
2595 (io_stream::copy): New method to simply copy from one stream to another.
2596 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
2597 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
2598 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
2599 * io_stream_file.cc (io_stream_file::get_size): Implement this.
2600 * io_stream_file.h (io_stream_file::get_size): Declare this.
2601 * io_stream_memory.h: Include errno as it's neded to parse the header.
2602 (io_stream_memory::get_size): Implement this.
2603 (io_stream_memory::st_size): Delete this.
2604 * list.h: Change getnth into the [] operator.
2605 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
2606 (NetIO::set_url): Ditto.
2607 (NetIO::open): Ditto.
2608 * netio.h: As for netio.cc.
2609 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
2611 * nio-file.h: Ditto.
2612 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
2613 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
2614 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
2615 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
2616 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
2617 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
2618 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
2619 * package_source.cc (packagesource::set_canonical): Ditto.
2620 (packagesource::set_cached): Ditto.
2621 * package_source.h (site::~site): Ditto.
2622 * site.cc: Change site_list_type to a class, and search and replace sort_key to
2625 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
2627 * package_source.cc (packagesource::set_canonical): Filename was out by one.
2629 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
2631 * Makefile.in (OBJS): Remove category_list - it's not needed.
2632 * README: More wishlist updates.
2633 * category.cc (Category::Category): Initialise new members.
2634 (Categorycmp): New function.
2635 * category.h (Category): New member key for template use.
2636 * category_list.cc: Remove.
2637 * category_list.h: Remove.
2638 (Categorycmp): New function prototype.
2639 * choose.cc: Remove category_list - not needed.
2640 (set_action): Only show the 'source' option when the source is actually
2642 (add_required): Fix recursion limiter to 5.
2643 (fill_missing_category): Use list access.
2644 (default_trust): Ditto.
2645 (pick_line::paint): Ditto.
2646 (_view::init_headers): Ditto.
2647 (_view::insert_pkg): Ditto.
2648 (_view::insert_category): Ditto.
2649 (_view::click): Ditto.
2650 (set_view_mode): Ditto.
2652 * cygpackage.h: Remove category_list - not needed.
2653 * geturl.cc (get_url_to_string): Fix null byte insertion.
2654 * inipatse.y: Remove category_list - not needed.
2655 (categories): Use list access.
2656 * package_db.cc: Ditto.
2657 * package_db.h: Remove category_list - not needed.
2658 (packagedb): Use the list template for categories.
2659 * package_meta.cc (add_category): Ditto.
2660 * package_meta.h (CategoryPackage): Link to the category as well.
2661 (packagemeta): Use a list of CategoryPackages instead of Categories
2662 for more memory efficient cross-referencing.
2664 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
2666 * package_db.cc (packagedb::flush): Write a canonical version for all packages
2667 irrespective of the media they were installed from.
2669 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
2671 * Makefile.in (OBJS): Add package_source and rfc1738.
2672 * README: Wishlist update.
2673 * category_list.cc (register_category): Use references.
2674 * category_list.h (CategoryList): Ditto.
2675 * choose.cc (isinstalled): Remove.
2676 (pkgtrustp): New macro.
2677 (set_action): Use packagemeta.
2678 (add_required): Ditto.
2679 (choose_caption): Example package to choose caption, rather than state flags.
2680 (check_existence): Remove.
2681 (set_existence): Remove old code.
2682 (fill_missing_category): Use packagemeta.
2683 (keep_or_skip): Remove.
2684 (default_trust): Use packagemeta and set trust values directly.
2685 (pick_line::set_line): Use packagemeta.
2686 (_view::insert_pkg): Ditto.
2687 (_view::insert_category): Ditto.
2688 (_view::click): Ditto.
2689 (set_view_mode): Ditto. Also remove "exclude" code.
2690 (create_listview): Use packagemeta.
2691 (dialog_cmd): Ditto.
2692 (getpkgbyname): Remove
2693 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
2694 (read_installed_db): Remove.
2695 (package_sort): Use packagemeta.
2696 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
2697 * choose.h: Use packagemeta.
2698 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
2699 (cygpackage::cygpackage): Ditto.
2700 (cygpackage::set_canonical_version): Copy the passed string.
2701 (cygpackage::~cygpackage): Move cleanup code to destroy().
2702 (cygpackage::destroy): New function.
2703 (cygpackage::getfirstfile): Use a separate buffer.
2704 (cygpackage::getnextfile): Ditto.
2705 (cygpackage::Canonical_version): New function.
2706 (cygpackage::set_sdesc): Ditto.
2707 (cygpackage::set_ldesc): Ditto.
2708 * cygpackage.h (cygpackage::Canonical_version): New method.
2709 (cygpackage::set_sdesc): New method.
2710 (cygpackage::set_ldesc): New method.
2711 (cygpackage::SDesc): New method.
2712 (cygpackage::LDesc): New method.
2713 (cygpackage::set_canonical_version): New method.
2714 * desktop.cc: Include packagedb headers.
2715 (make_password_group): Use packagemeta.
2716 * download.cc: Include packagedb headers.
2717 (check_for_cached): New method to find any cached file and fill out the database
2719 (download_one): Take a packagesource, support multiple mirrors.
2720 (do_download): Use packagemeta.
2721 * from cwd.cc: Include packagedb headers.
2722 (found_file): Use packagemeta.
2723 * ini.cc (do_ini): Beginning of multiple-mirror support.
2724 * ini.h (CategoryPackage): Remove.
2725 (Dependency): Remove.
2727 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
2728 * inilex.l: Support multiple mirrors.
2729 * iniparse.y: Include packagedb headers.
2730 (parser): Use packagemeta.
2731 (new_package): Remove.
2732 (add_correct_version): New function.
2733 (new_requirement): Remove.
2734 (add_category): Remove.
2735 * install.cc (uninstall_one): Use packagemeta.
2736 (install_one_source): New function.
2737 (install_one): Use packagemeta.
2738 (do_install): Use packagemeta.
2739 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
2740 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
2741 after setting the mtime, it makes no sense, and results in 0 length files.
2742 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
2743 * list.h: New file, template class for a form of list.
2744 * package_db.cc (packagedb::registerpackage): New function.
2745 * package_db.h (packagedb::npackages ()): New method.
2746 * package_meta.cc (packagemeta::add_version): Use list template.
2747 (packagemeta::set_installed): Ditto.
2748 (packagemeta::add_category): New method.
2749 * package_meta.h: Include necessary headers to parse the class.
2750 (CategoryPackage): New class.
2751 (packagemeta): Initialise all members.
2752 (packagemeta::SDesc): New method.
2753 (packagemeta::Categories): New method.
2754 (packagemeta::add_category): Ditto.
2755 (packagemeta::versions): Change to be a list instance.
2756 * package_source.cc (packagesource::set_canonical): New method.
2757 (packagesource::set_cached): New method.
2758 * package_source.h: Include necessary headers to parse the class.
2760 (packagesource::packagesource): Initialize all members.
2761 (packagesource): Make this class non-abstract.
2762 * package_version.cc (packageversion::packageversion): New method.
2763 * package_version.h (Dependency): New class.
2764 (packageversion::Canonical_vesion): New method.
2765 (packageversion::SDesc): New method.
2766 (packageversion::LDesc): New method.
2767 (packageversion::new_requirement): Ditto.
2768 (packageversion::srcpicked, binpicked): What to install.
2769 (packageversion::src, bin): Installation source data.
2770 * rfc1738.cc: New file. Escapes special characters in URL's.
2773 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2775 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
2776 SimpleSocket::gets() returns a zero-length string, so that we
2777 don't end up eating the entire stream thinking it's all header info.
2779 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
2781 * install.cc (badrename): Remove.
2782 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
2783 * io_stream.cc (io_stream::move_copy): New method.
2784 (io_stream::move): New method.
2785 * io_stream.h (io_stream): New methods move and move_copy.
2786 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
2787 * io_stream_cygfile.h (io_stream_cygfile): New method move.
2788 * io_stream_file.cc (io_stream_file::move): New method.
2789 * io_stream_file.h (io_stream_file): New method move.
2790 * package_db.cc (packagedb::flush): New method.
2791 * package_db.h (packagedb): New method flush.
2793 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
2795 * Makefile.in (OBJS): Add package_version.
2796 * ategory.cc (Category::Category): Update constructors.
2797 * category_list.cc (CategoryList::register_category): Insert correctly.
2798 * choose.cc: Include package_version.h, not package.h.
2799 * cygpackage.cc: Ditto.
2800 (cygpackage::uninstall): New method.
2801 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
2802 New method uninstall.
2803 * hash.cc (add, has, enumerate): Change prototype to be accurate.
2804 * hash.h (hash): Change prototypes to be accurate.
2805 * ini.h (_Info): New parameterless constructor.
2806 (CategoryPackage): New constructor.
2808 * install.cc: Don't include unneeded headers.
2809 Include package database headers.
2810 (hash::add_subdirs): Remove.
2811 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
2812 Don't uninstall source packages.
2813 (do_install): Just can uninstall_one once as we ignore source packages now.
2814 Don't copy the installed.old database accross, instead iterate through the
2815 packagedb packages list and write the isntalled packages out.
2816 * package_db.cc: Include package_version.h, not package.h.
2817 (packagedb::packagedb): Never let db be undefined.
2818 Record the installation filename, so we can reconstruct installed.db.
2819 (packagedb::addpackage): Insert packages in alpha sorted order.
2820 (packagedb::categories): Initialise correctly.
2821 * package_meta.cc: Include win32 and mount headers as a workaround to
2822 current io_stream limitations. Include a TODO about that.
2823 (standard_dirs): New, from install.cc.
2824 (hash::add_subdirs): New, from install.cc.
2825 (packagemeta::set_installed): Rename genericpackage to packageversion.
2826 (packagemeta::uninstall): New method.
2827 * package_meta.h: Rename genericpackage to packageversion.
2828 (packagemeta): Update constructor.
2829 (add_version, set_installed): Rename genericpackage to packageversion.
2830 (uninstall): New method.
2831 (installed_from): New member.
2832 * package_source.cc: New file.
2833 * package_source.h: New file.
2834 * package_version.cc: New file.
2835 * package_version.h: New file.
2836 * package.cc: Removed.
2837 * package.h: Removed.
2839 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2841 * Makefile.in (OBJS): Add category.o and category_list.o.
2842 * category.h: New file.
2843 * category.cc: New file.
2844 * category_list.h: New file.
2845 * category_list.cc: New file.
2846 * choose.cc: Include category headers.
2847 (fill_missing_category): Use package_db to access global categories.
2848 (_view::insert_pkg): Ditto.
2849 (_view::insert_category): Ditto.
2850 (set_view_mode): Ditto.
2851 (getcategorybyname): Remove.
2852 * cygpackage.h: Include category_list.h to parse this correctly.
2853 (cygpackage): New virtual &Categories.
2854 * ini.h (_CategoryPackage): More C to C++ conversion.
2856 (getcategorybyname): Remove.
2857 (register_category): Remove.
2858 * iniparse.y: Include package db and category headers.
2859 (categories): Use package_db to access global categories.
2861 (ncategories): Remove.
2862 (register_category): Remove.
2863 * package.h: New virtual &Categories.
2864 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
2865 (packagedb::categories): Declare.
2866 * package_db.h (packagedb): New member categories for global categories list.
2868 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2870 * choose.h: Don't include ini.h
2871 * ini.h: Allow pure c++ in the header file.
2873 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2875 * install.cc (do_install): Write a version 2 installed.db file.
2876 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
2878 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2880 * Makefile.in (OBJS): Add package abstraction objects.
2881 * choose.cc: Include package abstraction headers.
2882 (read_installed_db): Use packagedb class and ignore installed sources.
2883 * cygpackage.cc: New file.
2884 * cygpackage.h: New file.
2885 * filemanip.h (get_file_size): Use unixy types.
2886 * package.h: New file.
2887 * package.cc: New file.
2888 * package_db.cc: New file.
2889 * package_db.h: New file.
2890 * package_meta.cc: New file.
2891 * package_meta.h: New file.
2893 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2895 * REAME: Updates to wishlist.
2897 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
2899 * README: Updated and added my list of wishlist and todo items.
2901 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
2903 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
2904 * archive_tar.cc (archive_tar::write): New prototype.
2905 (archive_tar::seek): New method.
2906 * archive.h (archive_tar_file): Update write() and add seek().
2907 (archive_tar): Ditto.
2908 * archive_tar_file.cc (archive_tar_file::write): New prototype.
2909 (archive_tar_file::seek): New method.
2910 * compress_bz.cc (compress_bz::write): New prototype.
2911 (compress_bz::seek): New function.
2912 * compress_bz.h (compress_bz): Update write() and add seek().
2913 * compress_gz.cc (compress_gz::write): New prototype.
2914 (compress_gz::seek): New function.
2915 * compress_gz.h (compress_gz): Update write() and add seek().
2916 * geturl.cc: Include io_stream headers.
2918 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
2919 * io_stream.h (io_stream_seek_t): New enum.
2920 (io_stream): Update write() and add seek().
2921 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
2922 (io_stream_cygfile::seek): New function.
2923 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
2924 * io_stream_file.cc (io_stream_file::write): New prototype.
2925 (io_stream_file::seek): New function.
2926 * io_stream_file.h (io_stream_file): Update write() and add seek().
2928 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
2930 * localdir.cc: Add headers unistd.h and port.h.
2931 (save_local_dir): Expand search logic to include local directory for
2932 location of file last-cache.
2933 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
2934 (do_local_dir): Expand search logic to include local directory for file
2936 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
2937 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
2939 (do_source): Default to Install from Internet on first entry or
2940 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
2942 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
2944 * choose.cc (find_tar_ext): Only match at the end of the string.
2945 (getpkgbyname): Prevent NULL pointer dereference.
2947 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
2949 * Makefile.in (CFLAGS): Add warnings and -Werr.
2950 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
2951 (OBJS): Add io_stream class' objects.
2952 (autoload.o): Use WARNONLY_FLAGS.
2954 (iniparse.o): Ditto.
2955 * archive.cc: New file.
2956 * archive.h: New file.
2957 * archive_tar.cc: New file.
2958 * archive_tar.h: New file.
2959 * archive_tar_file.cc: New file.
2960 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
2961 * choose.cc: Use io_stream.h, not mount.h.
2963 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
2964 (read_installed_db): Use io_streams.
2965 * choose.h: Run indent.
2966 * compress.cc: New file.
2967 * compress.h: New file.
2968 * compress_bz.cc: New file.
2969 * compress_bz.h: New file.
2970 * compress_gz.cc: New file.
2971 * compress_gz.h: New file.
2972 * concat.cc: Run indent.
2973 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2974 * concat.h: Run indent.
2975 * desktop.cc: Run indent.
2976 Include mklink2.h rather than redefining by hand.
2977 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2978 (etc_profile): Fix compiler warning (deprecated conversion).
2979 (make_link): Fix compiler warning (deprecated conversion).
2980 Tidy up use of args variable - consolidate into argbuf.
2981 (start_menu): Fix compiler warning (deprecated conversion).
2982 (desktop_icon): Fix compiler warning (deprecated conversion).
2983 (make_etc_profile): Fix compiler warning (deprecated conversion).
2984 (uexists): Fix compiler warning (deprecated conversion).
2985 (check_desktop): Fix compiler warning (deprecated conversion).
2986 (check_startmenu): Fix compiler warning (deprecated conversion).
2987 * dialog.cc: Run indent.
2988 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2989 (fatal): Fix compiler warning (deprecated conversion).
2990 * dialog.h: Run indent.
2991 * diskfull.cc: Run indent.
2992 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2993 * download.cc: Run indent.
2994 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2995 (download_one): Fix compiler warning (signed vs unsigned comparison).
2996 * filemanip.h: Run indent.
2997 * find.cc: Run indent.
2998 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2999 (find): Fix compiler warning (deprecated conversion).
3000 * find.h: Run indent.
3001 * fromcwd.cc: Run indent.
3002 * geturl.cc: Run indent.
3003 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3004 (dialog_cmd): Return a value.
3005 (dialog_proc): Remove unused variables.
3007 (get_url_to_file): Fix compiler warning (deprecated conversion).
3008 * geturl.h: Run indent.
3009 * hash.cc: Run indent.
3010 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3011 * hash.h: Run indent.
3012 * ini.cc: Run indent.
3014 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3015 (do_ini): Use io_streams for local io.
3016 * ini.h: Run indent.
3017 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
3018 Fix compiler warning (brackets for truth assignment).
3019 * install.cc: Run indent.
3020 Fix compiler warning (/* in comment).
3022 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3023 (dialog_cmd): Return a value.
3024 (dialog_proc): Return a value.
3025 (start_tics): Deleted - was unused.
3026 (badrename): Fix compiler warnings (unused, deprecated conversion).
3027 (standard_dirs): Fix compiler warning (deprecated conversion).
3029 (uninstall_one): Convert to io_streams.
3030 (install_one): Convert to io_streams.
3031 (do_install): Convert to io_streans.
3032 Fix compiler warning (deprecated conversion).
3033 * io_stream.cc: New file.
3034 * io_stream.h: New file.
3035 * io_stream_cygfile.cc: New file.
3036 * io_stream_cygfile.h: New file.
3037 * io_stream_file.cc: New file.
3038 * io_stream_file.h: New file.
3039 * localdir.cc: Run indent.
3041 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3042 (get_root_dir_now): Remove.
3043 (save_local_dir): Convert to io_streams.
3044 (dialog_cmd): Return a value.
3045 (do_local_dir): Convert to io_streams.
3046 (log.cc): Run indent.
3047 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3048 (log): Fix compiler warning (deprecated conversion).
3049 (log_save): Fix compiler warning (deprecated conversion).
3050 * log.h: Run indent.
3051 (log): Fix compiler warning (deprecated conversion).
3052 (log_save): Fix compiler warning (deprecated conversion).
3053 * main.cc: Run indent.
3054 Don't include "netio.h".
3055 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3056 (netio_test): Remove.
3057 (sid_auth): Fix compiler warning (partially bracketed initialiser).
3058 (WinMain): Return a value.
3059 * mkdir.cc: Run indent.
3060 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3061 * mklink2.c: Run indent.
3062 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3063 (mkcygsymlink): New function.
3064 * mklink2.h: New file.
3065 * mount.cc: Run indent.
3066 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3067 (create_mount): Remove unused variables.
3068 (cygpath): Fix compiler warning (signed vs unsigned comparison).
3069 * mount.h: Run indent.
3070 * msg.cc: Run indent.
3071 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3072 (msg): Fix compiler warning (deprecated conversion).
3073 (mbox): Fix compiler warning (deprecated conversion).
3074 * msg.h: Run indent.
3075 (msg): Fix compiler warning (deprecated conversion).
3076 * net.cc: Run indent.
3077 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3078 (dialog_cmd): Return a value.
3079 * netio.cc: Run indent.
3080 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3081 (auth_cmd): Return a value.
3082 * netio.h: Run indent.
3083 * nio-file.cc: Run indent.
3084 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3085 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
3086 * nio-file.h: Run indent.
3087 * nio-ftp.cc: Run indent.
3088 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3089 * nio-ftp.h: Run indent.
3090 * nio-http.cc: Run indent.
3091 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3092 * nio-http.h: Run indent.
3093 * nio-ie5.cc: Run indent.
3094 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3095 * nio-ie5.h: Run indent.
3096 * other.cc: Run indent.
3097 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3098 (dialog_cmd): Return a value.
3099 * port.h: Run indent.
3100 * postinstall.cc: Run indent.
3101 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3102 (cmd): Fix compiler warning (deprecated conversion).
3103 (eun): Fix compiler warning (deprecated conversion).
3104 * root.cc: Run indent.
3105 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3106 * simpsock.cc: Run indent.
3107 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3108 * simpsock.h: Run indent.
3109 * site.cc: Run indent.
3111 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3112 (get_root_dir_now): Remove.
3113 (save_site_url): Convert to io_streams.
3114 (dialog_cmd): Return 0.
3115 (get_initial_list_idx): Convert to io_streans.
3116 * source.cc: Run indent.
3117 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3118 (check_if_enable_next): Remove.
3119 (load_dialog): Remove unused variables.
3120 (save_dialog): Ditto.
3121 (dialog_cmd): Return a value.
3122 * splash.cc: Return a value.
3123 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3124 (dialog_cmd): Return a value.
3125 * state.cc: Run indent.
3126 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3127 * state.h: Run indent.
3131 2001-11-12 Christopher Faylor <cgf@redhat.com>
3133 * desktop.cc (start_menu): Change start menu name to "Cygwin".
3134 (check_startmenu): Ditto.
3136 2001-11-11 Christopher Faylor <cgf@redhat.com>
3138 * choose.cc (parse_filename): Finish reorganization by correctly
3139 decrementing p in memmove.
3141 2001-11-11 Christopher Faylor <cgf@redhat.com>
3143 * choose.cc (parse_filename): Reorganize code to work around gcc
3144 optimization problem.
3146 2001-11-09 Gareth Pearce <tilps@hotmail.com>
3148 * choose.cc (set_action): Allow skip as an option for installed
3149 packages that have version number not listed in setup.ini.
3151 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3153 * choose.cc (set_cation): Backout last change.
3154 (choose_caption): Ditto.
3156 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3158 * ini.h (actions): Remove - transferred to choose.h.
3160 * choose.h: Protect class's from "C" compilers.
3161 (actions): New enum, from ini.h. This may not be the 'right' place
3162 but that place doesn't exist yet.
3163 (_views): New enum, from ini.h.
3164 * choose.cc (set_action): Handle installed packages with a version not in
3166 (choose_caption): Ditto.
3167 * iniparse.y: Rearrange header order to handle new ini.h.
3169 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3171 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
3172 (registry_category): Fix compiler warning (deprecated conversion).
3173 * iniparse.y (registry_category): Ditto.
3174 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
3175 (add_requried): Remove unused variable.
3176 (choose_caption): Handle all enumeration values via a default.
3177 (paint): Fix compiler warnings (unused, deprecated conversion).
3178 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
3179 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
3180 (note_width): Fix compiler warnings (deprecated conversion).
3181 (keep_or_skip): Fix compiler warnings (unused).
3182 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
3183 (set_view_mode): Fix compiler warnings (unused).
3184 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
3186 (dialog_proc): Fix compiler warnings (unused).
3187 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
3188 * choose.h (_header): Fix compiler warnings (deprecated conversion).
3191 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
3193 * simpsock.h (SimpleSocket::invalidate): Declare new method.
3194 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
3195 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
3196 memory for buf in the constructor.
3197 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
3198 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
3199 (SimpleSocket::write): Check object consistency - return -1 on error.
3200 invalidate() the object on socket write error.
3201 (SimpleSocket::fill): Check object consistency - return -1 on error.
3202 invalidate() the object if socket read error is encountered and there
3203 is no more data available in the internal read buffer.
3204 Allocate memory for the internal read buffer.
3205 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
3206 during fill() and no more data is available in the internal read buffer.
3207 (SimpleSocket::read): Check object consistency - return -1 on error.
3208 invalidate() the object if socket read error is encountered.
3209 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
3210 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
3211 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
3212 (NetIO_FTP::read): Use NetIO_FTP::ok().
3213 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
3214 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
3216 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
3218 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3219 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
3220 (SimpleSocket::printf): Ditto.
3221 (SimpleSocket::write): Ditto.
3222 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
3224 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3225 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
3226 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3228 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
3230 * geturl.cc (get_url_to_string): clean up memory leak
3231 (get_url_to_file): ditto
3233 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3235 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
3236 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
3238 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
3240 * fromcwd.cc (found_file): Free() memory containing the version and
3241 filepath information for a given package, before replacing the pointers which
3242 reference this memory.
3244 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3246 * fromcwd: Fix compiler warnings for cvsid.
3247 (canonicalize_version): Fix compilter warnings.
3248 (do_fromcwd): Ditto.
3249 * version.h: Fix compiler warnings for canonicalize_version.
3251 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
3253 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
3255 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3257 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
3259 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3261 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
3263 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3265 * choose.cc (default_trust): Change the "Required" forced install category to
3268 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3270 * choose.cc: Ran indent.
3271 (set_action): When the requested trust level is missing and the level was not
3272 user requested, set the action to ACTION_SAME_CURR.
3274 2001-11-01 Christopher Faylor <cgf@redhat.com>
3276 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
3278 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3280 * choose.cc (_view::init_headers): Resync with the paint logic.
3282 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3284 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
3287 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3289 * choose.cc (default_trust): Autoset currently installed packages per the user's
3290 selection of prev/curr/exp.
3292 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3294 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
3296 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
3298 * geturl.cc (is_showing): Remove.
3299 (is_local_install): New static variable. Controls whether the
3300 progress dialog and the supporting thread will be created.
3301 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
3302 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
3303 This prevents the progress dialog to gain control over the
3304 application and fixes the "setup.exe going to background" problem.
3305 (progress): Use is_local_install.
3306 (get_url_to_string): Set is_local_install.
3307 (dismiss_url_status_dialog): Use is_local_install.
3308 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
3309 (init_dialog): Remove usage of SetForegroundWindow.
3310 This prevents the progress dialog to gain control over the
3311 application and fixes the "setup.exe going to background" problem.
3313 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3315 * choose.cc (list_click): Change r to row for clarity.
3316 When we shrink the list below 1 page, scroll to the top of the list.
3317 (_view::click): Return the actual change for contractions.
3318 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
3320 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3322 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3323 * localdir.cc: Ran indent.
3324 (get_root_dir_now): New function.
3325 (save_local_dir): New function.
3326 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
3327 (do_local_dir): If there is a saved local dir, read it in.
3328 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3329 * root.cc (dialog_cmd): Ditto.
3330 * source.cc (dialog_cmd): Ditto.
3332 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3334 * choose.cc(list_vscroll): Return 0 as required by win32.
3335 (list_hscroll): Ditto.
3336 (list_click): Ditto.
3338 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3342 * main.cc(WinMain): Use __argv to retrieve command line parameters.
3343 * Makefile,in: Remove argv.o.
3345 2001-11-01 Matt Hargett <matt@use.net>
3347 * geturl.cc (progress): Change int to unsigned int to eliminate
3349 * (get_url_to_string): Check for NULL pointer.
3350 * mount.cc (find2): Use free instead of delete for malloc'd
3352 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
3354 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3356 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
3357 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
3358 (read_installed_db): Bugfix for testing whether a package has a source tarball.
3359 Reported by Matt (matt@usa.net).
3360 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
3361 confusion and lint errors. Reported by Matt (matt@usa.net).
3363 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3365 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
3368 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
3369 Add mingw_getopt.o build rule.
3370 * main.cc(WinMain): Initialise argv and argc for use by getopt.
3372 2001-10-27 Christopher Faylor <cgf@redhat.com>
3374 * res.rc: Rearrange info on top line slightly.
3376 2001-10-27 Christopher Faylor <cgf@redhat.com>
3378 * desktop.cc (make_passwd_group): Move file creation earlier in the
3379 process to ensure that passwd-grp.bat reflects desired operation.
3381 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
3383 * postinstall.cc (each): Remove "*.done" file else rename will fail.
3385 2001-10-16 Christopher Faylor <cgf@redhat.com>
3387 * res.rc: Oops. Take 640x480 screen size into account.
3389 2001-10-16 Christopher Faylor <cgf@redhat.com>
3391 * res.rc: Enlarge chooser screen.
3393 2001-10-12 Christopher Faylor <cgf@redhat.com>
3395 * Makefile.in: Accomodate changes to w32api_include macro.
3397 2001-10-12 Christopher Faylor <cgf@redhat.com>
3399 * Makefile.in: Use correct flags for windres.
3401 2001-10-12 Christopher Faylor <cgf@redhat.com>
3403 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
3405 2001-10-12 Christopher Faylor <cgf@redhat.com>
3407 * choose.cc (pick_line::paint): Reorganize after botched patch.
3409 2001-10-12 Christopher Faylor <cgf@redhat.com>
3411 * choose.cc (pick_line::paint): Add missing declaration.
3413 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
3415 * choose.cc (pick_line::paint): Add package name to sdesc for display.
3417 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
3419 * choose.cc (_view::insert_pkg): Correctly exit loop.
3420 * iniparse.y (register_category): Always insert new categories.
3422 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
3424 * inilex.l (yylex): For comments, eat all characters up to, but not
3427 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
3429 * fromcwd.cc (found_file): Use correct package name when adding an
3430 unknown package rather than random stack garbage.
3432 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
3434 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
3436 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
3438 * desktop.cc (etc_profile): Leave environment variables untouched.
3440 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
3442 * autoload.c: Add dynamic load statements for NT/W2K
3443 advapi32 functions not available in 9x/ME.
3444 * main.cc (set_default_dacl): New function.
3445 (WinMain): Call `set_default_dacl' if running on NT/W2K.
3447 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
3449 * ini.h (_CategoryPackage): Change pkg field to pkgname for
3451 * choose.cc: Use pkgname field when referencing _CategoryPackage
3453 (fill_missing_category): Don't add excluded packages.
3454 (default_trust): Ditto.
3455 (_view::insert_pkg): Ditto.
3456 * iniparse.y (register_category): Use consistent variable name.
3458 2001-07-09 Egor Duda <deo@logos-m.ru>
3460 * choose.cc: Use system foreground color for text output.
3462 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
3464 * choose.cc (set_action): Use default trust for determining reinstall
3466 (default_trust): Set default trust.
3467 (pick_line::paint): Allow source selection when reinstalling or
3470 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
3472 * choose.cc (isinstalled): Modify to properly accomodate special case
3474 (set_action): Check downloaded components, not installed components if
3476 (set_existence): Always include full list of files when "download
3479 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
3481 * choose.cc (pick_line::paint): Properly display "na" field when no
3484 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
3486 * choose.cc (scan2): Ensure that older versions do not show up in
3489 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
3491 * choose.cc (set_action): Allow "Skip" action if trust != installed.
3492 * res.rc: Fix copyright.
3494 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
3496 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
3498 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
3500 * choose.cc: Restore some more changes from 2001-06-25, throughout.
3501 (paint): Wrap some excessively long lines.
3502 (pick_line::paint): Ditto. Move the arrow in the "Current" column
3503 right to where it belongs. Move the source checkbox slightly to the
3505 (do_choose): List categories and required packages in setup.log.full.
3507 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
3509 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
3511 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
3513 * ini.h (struct _Info): Add "derived" element.
3514 * choose.cc (scan2): Try to place unknown tar files into proper slot
3515 when package exists in setup.ini but tar file does not.
3517 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
3519 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
3520 (do_choose): Log the first category name.
3522 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
3524 *ini.h: Reapply 2001-06-25 changes.
3525 * choose.cc (add_required): Ditto. Default to "Keep" state if
3526 UNINSTALL and product is installed. Default to curr state if SKIP,
3528 (keep_or_skip): New function. Returns skip or keep state depending on
3529 installed state of package.
3530 (default_trust): Use keep_or_skip to set state.
3531 (_view::insert_pkg): Use calloc to allocate lines.
3532 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
3534 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
3536 * choose.cc: Remove globals full_list, headers, package_indexes and
3538 Add globals cat_headers, pkg_headers and chooser.
3539 (add_required): New function.
3540 (paint): Use the chooser for header details.
3541 Call into the chooser to paint each line.
3542 (list_click): Use new global variables.
3543 Call into the chooser to handle the click.
3544 Repaint the entire view if packages have been added or removed.
3545 (note_width): Get passed a headers struct rather than using a global
3547 (fill_missing_category): New function.
3548 (default_trust): Skip non-"Required" or "Misc" packages.
3549 (pick_line::set_line (Package *)): New function.
3550 (pick_line::set_line (Category *)): New function.
3551 (pick_line::paint): New function.
3552 (pick_line::click): New function.
3553 (_view::_view): New function.
3554 (_view::set_view_mode): New function.
3555 (_view::mode_caption): New function.
3556 (_view::set_headers): New function.
3557 (_view::init_header): New function.
3558 (_view::insert_pkg): New function.
3559 (_view::insert_category): New function.
3560 (_view::insert_at): New function.
3561 (_view::insert_under): New function.
3562 (_view::clear_view): New function.
3563 (viewsplusplus): New function.
3564 (_view::client): New function.
3565 (set_view_mode): Use new chooser functionality.
3566 (set_full_list): Use new global variables.
3567 (create_listview): Instantiate chooser.
3568 Remove all hardcoded headers[] code.
3569 (dialog_cmd): On trust changes, check dependencies.
3570 (getcategorybyname): New function.
3571 (getpackagecategorybyname): New function.
3572 (scan2): Use case-insensitive package comparison.
3573 (do_choose): Use fill_missing_category ().
3574 Show some category data.
3575 * ini.h: Protect against multiple inclusion.
3577 (_CategoryPackage): New struct.
3578 (_Category): New struct.
3579 (_Package): Change category to Category * from char *.
3580 (extern Category category): New global variable.
3581 (extern in ncategories): Ditto.
3582 (getcategorybyname): New prototype.
3583 (catpackagecategorybyname): New prototype.
3584 (register_category): New prototype.
3585 (add_category): New prototype.
3586 * iniparse.y: Parse multiple categories per package.
3587 (category): New global variable.
3588 (ncategories): New global variable.
3589 (new_package): Compare package against NULL, not 0.
3590 (new_requirement): Source formatting fix.
3591 (register_category): New function.
3592 (add_category): New function.
3593 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3594 IDC_CHOOSE_VIEWCAPTION: New control.
3595 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3596 IDC_CHOOSE_VIEWCAPTION: New control.
3597 Increment _APS_NEXT_CONTROL_VALUE.
3599 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
3601 * choose.cc (paint): Wrap excessively long lines.
3602 (list_click): Ditto.
3603 (create_listview): Ditto.
3604 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
3605 setup.log.full. Allow "Yes" for source exists in setup.log.full when
3606 installing from local directories.
3608 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
3610 * choose.cc (set_action): Only clear srcpicked when moving to next
3611 state. Allow source installation if it exists in the current "trust"
3612 state. Don't move to skip state when package is installed.
3613 (list_click): Don't allow source clicking when no source is available.
3614 (set_full_list): Display package when not is_full_action.
3615 * ini.h (is_full_action): Define.
3617 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
3619 * install.cc (check_for_old_cygwin): New function. First stab at
3620 checking for old cygwin versions.
3621 (do_install): Call check_for_old_cygwin if there were no errors during
3624 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
3626 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
3627 than zeroed "source" element.
3629 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
3631 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
3632 the highest available "hole" in the trust array.
3634 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
3636 * choose.cc (set_existence): Use pointer method for indexing in trust
3638 (create_listview): Ditto.
3639 (scan2): Ditto. Also, use consistent variable name for indexing into
3641 * ini.h (Package): Reorganize info array for easier scanning.
3643 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
3645 * choose.cc (isinstalled): Eliminate special download only test.
3646 (set_action): Don't move to next state if in ACTION_SAME range and not
3648 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
3650 (do_choose): Sort packages after all packages have been read.
3651 Accomodate the fact that first element in trust array is empty so that
3652 log files don't report the wrong trust value.
3653 * iniparse.y (new_package): Malloc space for package name or suffer
3656 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
3658 * ini.h (Dependency): New structure. Declare new function.
3659 * inilex.l (yylex): Detect new setup.ini options - category and requires.
3660 * iniparse.y: Declare new setup.ini token values.
3661 (yyparse): Parse new token values.
3662 (new_requirement): New function.
3664 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
3666 * choose.cc (read_installed_db): Eliminate obsolete code.
3668 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
3670 * choose.cc (set_action): Set trust on "redo".
3671 (_Info::_Info): New constructor.
3672 (read_installed_db): Use new constructor. Use trusts type for
3674 * ini.h (struct _Info): Label struct, add constructor.
3675 (Package): Make installed_ix a type 'trusts.'
3676 * install.cc (uninstall_one): Unset any installed info for current
3678 (install_one): Allocate new Info struct for installed reflecting new
3680 (do_install): Don't output line to installed.db if package is being
3683 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
3685 * choose.cc (getpkgbyname): Use consistent method for scanning package
3688 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
3690 * choose.cc: Add some comments.
3691 (getpkgbyname): Use strcasecmp for comparisons.
3693 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
3695 * install.cc (do_install): Avoid checking for download action if
3696 package wasn't currently retrieved.
3698 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
3700 * choose.cc: Eliminate extra array throughout. Use element in package
3701 structure instead. Use pointers rather than array indexes where
3703 (set_action): New function to set next action based on current.
3704 (choose_caption): New function. Returns display caption.
3705 (check_existence): Change arguments. Use pointer to 'info' structure.
3706 (set_existence): Use pointer rather than array index.
3707 (default_trust): Use trusts enum for second argument.
3708 (set_full_list): Honor exclude element in package structure.
3709 (build_labels): Eliminate.
3710 (base): Make global. Use const char * argument.
3711 (get_package_version): Eliminate.
3712 (getpkgbyname): New function.
3713 (read_installed_db): Use parse_filename to get version info.
3714 * desktop.cc (make_passwd_group): Use getpkgbyname function.
3715 * download.cc (get_file_size): const argument.
3716 (do_download): Use is_download_action to determine when something
3717 should be downloaded.
3718 * filemanip.h: Add some functions.
3719 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
3720 * ini.h: Use enums for actions and trusts.
3721 (is_download_action): New macro.
3722 (is_upgrade_action): Ditto.
3723 (is_uninstall_action): Ditto.
3724 (struct Package): Add new fields.
3725 * inilex.l (yylex): Detect new setup.ini options.
3726 * iniparse.y: Declare new tokens.
3727 (yyparse): Detect exclude keyword. Fill out version field even if
3729 (new_package): Use greater granularity when allocating package array to
3730 avoid repeated calls to realloc.
3731 * install.cc (exists): const argument.
3732 (uninstall_one): Take pkg argument.
3733 (install_one): Ditto. Eliminate unneeded arguments which can be
3734 derived from package info.
3735 (do_install): Iterate over package array using a pointer. Use
3736 is_download_action to control when package should be downloaded.
3737 * tar.cc (tar_open): const argument.
3738 * tar.h: Refloect const argument.
3740 2001-05-31 Michael Chase mchase@ix.netcom.com
3742 * main.cc (WinMain): Add setup version to starting setup.log entry
3744 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
3746 * inilex.l: Add + to list of valid string characters.
3748 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
3750 * Makefile.in: Remove more stuff in the clean target.
3752 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
3754 * Makefile.in: Correctly generate iniparse.h.
3756 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
3758 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
3759 * geturl.h: Change declaration of `get_url_to_file' accordingly.
3760 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
3761 Set member `ftp_auth'.
3762 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
3763 to constructors of derived classes.
3764 (NetIO::get_ftp_auth): New method.
3765 * netio.h: Change class definition accordingly.
3766 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
3767 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
3768 Add code for ftp authentication retry.
3769 * nio-ftp.h: Change class definition accordingly.
3770 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
3771 Add code for ftp authentication retry in case of proxy connection.
3772 * nio-http.h: Change class definition accordingly.
3773 * res.rc: Add FTP authentication dialog.
3774 * resource.h: Add new constants used in res.rc.
3775 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
3777 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
3779 * res.rc (IDD_SPLASH): Add a copyright year.
3781 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
3783 * Makefile.in: Make iniparse.y produce a c++ file.
3784 * choose.cc (set_existence): Revert 2001-05-27 change.
3785 * ini.cc: Remove "C" from declaration of yyparse.
3786 * iniparse.y (yyparse): Fill out version field by default when a binary
3787 install is detected and no version has been set yet.
3788 * install.cc (do_install): Mount things earlier so that we can use
3789 proper mount table settings. Don't remove mounts since they are now
3791 * mount.cc (create_mount): Reread the mount table after establishing a
3793 (read_mounts): Explicitly clear root_here to allow multiple uses of
3794 this function. Ensure that there is no garbage in the table when we've
3795 exhausted all of the mounts in the registry.
3796 (cygpath): Accomodate ./ in path.
3798 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
3800 Use parse_filename method to parse filenames throughout. Use
3801 get_root_dir to retrieve the current root directory throughout. Set
3802 const in argument list, where appropriate, throughout.
3803 * choose.cc (set_existence): Detect case of uninstalled package with no
3805 (parse_filename): New function.
3806 * filemanip.h (fileparse): New structure.
3807 * mount.cc (read_mounts): Remember where we found the root mount.
3808 (set_root_dir): New function.
3809 (get_root_dir): Ditto.
3810 * mount.h: Declare new functions.
3811 * site.cc (get_root_dir_now): Renamed from get_root_dir.
3812 (save_site_url): Use new function name.
3813 (get_initial_list_idx): Ditto.
3815 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
3817 * choose.cc: Use a constant throughout to deal with chooser icon
3819 * res.rc (IDD_CHOOSE): Increase size of chooser box.
3821 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
3823 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
3824 use when Redownload or Sources Only selected.
3826 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
3828 Reformat file after botched patch formatting.
3829 * choose.cc (which_trust): Eliminate variable.
3830 (default_trust): Don't set which_trust.
3831 (do_choose): Use selected trust when reinstalling or installing source.
3833 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
3835 Change concat to cygpath throughout.
3836 Change map_filename to cygpath throughout.
3837 * concat.cc (vconcat): New function.
3838 (concat): Use vconcat.
3839 * concat.h: Reflect above.
3840 * install.cc (map_filename): Eliminate.
3841 (install_one): Free dest_file.
3842 * mount.cc (find2): Expect input key to be pointing to mount record.
3843 (in_table): New function.
3844 (is_admin): Move from root.cc.
3845 (read_mounts): New function.
3846 (path_prefix_p): New function.
3847 (cygpath): New function.
3848 * mount.h: Define new functions and structure.
3849 * root.cc (in_table): Move to mount.cc.
3850 (do_root): Call read_mounts to initialize root stuff and mount table.
3851 * site.cc (get_root_dir): Ditto.
3853 2001-05-09 Matt Hargett <matt@use.net>
3855 * Makefile.in: Remove *.rc from clean.
3857 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
3859 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
3860 TRUST_PREV which produced "0" versions.
3862 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
3864 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
3865 _APS_NEXT_CONTROL_VALUE to account for addition of
3866 IDC_CHOOSE_INST_TEXT.
3867 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
3868 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
3869 hot keys to select Prev, Curr, Exp.
3870 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
3871 define for LOOP_PACKAGES to include new actions ACTION_REDO and
3873 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
3874 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
3875 source Checkbox to use.
3876 (build_labels): Add logic to allow for selection of Source only
3877 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
3878 current version binary.
3879 (dialog_proc): Add conditional display for file selection prompt based
3880 on download vs install using IDC_CHOOSE_INST_TEXT.
3881 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
3882 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
3883 handle the instance where Source Download/Install was selected. Modify
3884 log file to store appropriate information regarding Action selected and
3885 the new actions that were added (I.E.: ACTION_REDO and
3887 * download.cc: Add include for <unistd.h> and "port.h".
3888 (download_one): Modify parameter list to include the selected action
3889 for the file to be downloaded. Modify size check against expected size
3890 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
3891 .tmp file to also remove the destination file if exists due to ability
3892 to redownload source and binary now.
3893 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
3894 calculation of Download Bytes. Modify to also use ACTION_REDO and
3895 ACTION_SRC_ONLY in determining files selected for download.
3896 * install.cc (uninstall_one): Add check to treat a Reinstall like an
3897 upgrade so current version will be uninstalled prior to reinstall.
3898 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
3899 uninstalling and installing binary and source packages.
3900 * desktop.cc (make_passwd_group): Modify logic to account for a Source
3901 only cygwin install when checking for cygwin to determine need for
3902 mkpasswd and mkgroup.
3904 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
3906 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
3907 Removed WS_DISABLED from "OK" buttons to accomodate default focus
3908 changes in net.cc and source.cc.
3909 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
3910 a default is selected.
3911 * winsup/cinstall/source.cc (dialog_proc): Ditto.
3912 (check_if_enable_next): Removed. No longer needed since a radio button
3913 will always be selected.
3914 (load_dialog): Removed call to check_if_enable_next.
3915 (dialog_cmd): Ditto. Also added default to switch.
3917 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
3919 * res.rc: Resize affected text.
3921 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
3923 * net.cc (do_net): Default to direct download.
3924 * res.rc: Move default selections to the top.
3926 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
3928 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
3929 Must now include <windows.h> and not the pieces.
3930 * choose.cc (create_listview): Clean up type mismatch problems.
3931 * dialog.h (NEXT(id)): Ditto.
3932 * geturl.cc (dialog): Ditto.
3933 * install.cc (dialog): Ditto.
3934 * splash.cc (load_dialog): Ditto.
3936 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
3938 * tar.cc (class gzbz): Define dummy virtual functions.
3940 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
3942 * Makefile.in: Add bz2 include/library support.
3943 * filemanip.h: New file.
3944 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
3946 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
3947 (read_installed_db): Ditto.
3949 * fromcwd.cc (found_file): Ditto.
3950 (do_fromcwd): Ditto.
3951 * tar.cc (class gzbz): New super class for uncompression support.
3952 (gz): New class for gzip support.
3953 (bz): New class for bzip2 support.
3954 (tar_open): Use gzbz class to control file opening.
3955 (tar_ftell): Ditto for returning position in file.
3956 (skip_file): Ditto for reading file.
3957 (tar_next_file): Ditto.
3958 (tar_read_file): Ditto.
3959 (tar_close): Ditto for close.
3961 * zlib/configure.in: Force NM substitution.
3963 * source.cc (do_source): Default to "Install from Internet".
3965 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
3967 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
3969 * choose.cc (list_click): Correct inability to select source code for
3971 (scan2): Modify to skip source tarballs when scanning disk for
3972 installable packages.
3974 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
3976 * install.cc: install sources into /usr/src instead
3977 of /, also include the sizes of source tarballs
3979 * download.cc: include sizes of source tarballs in
3980 total_download_bytes.
3982 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
3984 * download.cc (get_file_size): Remove `static'.
3986 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
3988 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
3990 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
3992 * choose.cc (paint): Modify message for nothing to download vs
3993 nothing to install/update based on installation method.
3994 (list_click): Modify to skip versions in selection process if
3995 installing from local directory and installation file does not exist.
3996 Also leaves Source Action set to N/A if the source file does not exist
3997 and installing from local directory.
3998 (check_existence): New method to check current existence of installation
3999 files based on selected installation method.
4000 (set_existence): New method to set the current existence of installation
4001 files based on selected installation method.
4002 (best_trust): Modify decision process for best trust to base decision on
4003 current trust selected (IE: Prev, Curr, or Test), existence of file and
4004 installation method selected.
4005 (default_trust): Add logic to capture the current trust level and the
4006 trust selected for the given package.
4007 (set_full_list): Expand decision criteria for displaying a package in
4008 the selection list to include file existence/non-existence and selected
4009 installation method.
4010 (build_labels): Modify criteria for label addition to include
4011 installation method and file existence/non-existence.
4012 (create_listview): Modify to establish package trust level for each
4013 package before setting up the display list. Also modification to set
4014 current trust button as the default.
4015 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
4016 a reset of the selection list in addition to setting the default trust.
4017 (get_package_version): New method to provide reusable code for
4018 determining the package version from the file name for a specified
4020 (scan2): Modify to use new method get_package_version and
4021 also enhance handling of the build for the structures package and
4023 (read_installed_db): Modify to use the new method
4024 get_package_version and also enhance handling of the build for the
4025 structures package and extra.
4026 (do_choose): Add additional initialization of package and extra
4027 structures. Modify to use read_installed_db all the time despite
4028 install method. Modify output to setup.log.full log file to increase
4029 readability by adding additional spacing, expanded code and available
4031 * ini.h: Add new fields install_exists, source_exists and
4032 partial_list_display to the structure definition for package.
4033 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
4034 pushbuttons by replacing with Radio Buttons thus allowing the
4035 operator to better determine which is selected.
4037 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
4039 * download.cc (do_download): Add new variables total_download_bytes and
4040 total_download_bytes_sofar for download progress meter. Add loop
4041 to accumulate the total bytes to download from the selected packages.
4042 * geturl.cc: Add state.h and diskfull.h to include list. Add new
4043 variables gw_iprogress, gw_pprogress, gw_progress_text,
4044 gw_pprogress_text, and gw_iprogress_text to allow for addition of
4045 total packages download progress meter and disk full percent
4046 progress meter. Add variables total_download_bytes and
4047 total_download_bytes_sofar for use by progress meters.
4048 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
4049 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
4050 allow for addition of total packages download progress meter and disk
4051 full percent progress meter.
4052 (init_dialog): Ditto.
4054 (get_url_to_file): Ditto.
4055 * geturl.h: Add external definition for total_download_bytes and
4056 total_download_bytes_sofar.
4057 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
4058 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
4059 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
4061 * resource.h: Add new fields for progress meters and text and update
4062 _APS_NEXT_CONTROL_VALUE.
4064 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
4066 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
4069 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
4071 * download.cc (download_one): Add missing parenthesis.
4073 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
4075 * download.cc (get_file_size): New function. Eliminates the need
4077 (download_one): Call `get_file_size' instead of `stat'. This
4078 workarounds a problem with mingw's `stat' call.
4080 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
4082 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
4083 This is to allow cinstall to build with 2.95.2-7 and to make the
4084 use of headers consistent.
4086 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
4088 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
4090 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
4092 * winsup/cinstall/res.rc: Added accelerators and improved focus
4095 2000-12-10 Egor Duda <deo@logos-m.ru>
4097 * choose.cc (paint): Use system background color for text output.
4099 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
4101 * Makefile.in: Use CXX for linking and for compiling .cc files.
4102 * configure.in: Find correct c++ compiler.
4103 * configure: Regenerate.
4105 2000-11-17 DJ Delorie <dj@redhat.com>
4107 * splash.cc (load_dialog): Make message more obvious.
4110 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
4112 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
4113 necessary for newer compilers.
4115 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
4117 * desktop.cc: Include "ini.h" and "version.h".
4118 (make_passwd_group): Skip the function on 9x/ME boxes when an
4119 older version of Cygwin has been installed which doesn't
4120 support mkpasswd/mkgroup on 9x/ME.
4121 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
4124 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
4126 * desktop.cc (make_passwd_group): Don't exit when started
4127 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
4129 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
4131 * install.cc (do_install): Add call to set_cygdrive_flags to sync
4133 * mount.cc (set_cygdrive_flags): New function.
4134 (get_cygdrive_flags): Ditto.
4135 (default_cygdrive): Ditto.
4136 (set_cygdrive_flags): Ditto.
4137 * mount.h: Add prototype for set_cygdrive_flags.
4139 2000-10-23 DJ Delorie <dj@redhat.com>
4141 * ini.h: add source actions
4142 * fromcwd.cc: check for available sources
4143 * res.rc: add checkbox bitmaps
4146 * choose.cc: add source column
4147 * download.cc: download sources if called for
4148 * install.cc: [un]install sources too
4150 2000-10-22 DJ Delorie <dj@redhat.com>
4152 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
4153 ignore it wrt full_list if there's already a version installed.
4154 (do_choose): Sort the list.
4155 (package_sort): New.
4157 2000-10-12 DJ Delorie <dj@redhat.com>
4159 * res.rc: Add more error strings.
4160 * resource.h: Ditto.
4161 * iniparse.y (new_package): re-initialize if needed.
4162 * download.cc (do_download): Keep track of errors; notify and
4164 * install.cc (do_install): Ditto.
4166 2000-10-05 DJ Delorie <dj@redhat.com>
4168 * Makefile.in: fix %.cc rule
4170 2000-10-04 DJ Delorie <dj@redhat.com>
4172 * desktop.cc: quote HOME and USER, don't . ./.profile
4174 * choose.cc (build_labels): don't include in partial list just
4175 because there's a *previous* version available.
4177 * install.cc (do_install): if installing from local directory with
4178 setup.ini and the file isn't found, look in "." also. Note errors.
4180 2000-10-02 DJ Delorie <dj@redhat.com>
4182 * ini.cc (do_ini): save setup.ini locally
4184 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
4186 * desktop.cc: quote escapes in prompt
4188 2000-10-02 Jason Tishler <jt@dothill.com>
4190 * root.cc (is_admin): New function.
4191 (read_mount_table): Check for administrative priviledges and set
4192 installation scope as appropriate.
4194 2000-09-28 DJ Delorie <dj@redhat.com>
4196 * nio-ftp.cc (ftp_line): handle continuations more robustly
4198 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
4200 * res.rc: increased the size of the site dialog (IDD_SITE) & the
4201 corresponding list box to provide for more URL's to be listed.
4202 Modified the position of the Back, Next and Cancel buttons to
4203 correspond to the new size of the dialog.
4205 2000-09-13 DJ Delorie <dj@redhat.com>
4207 * install.cc (do_install): update disk fullness once per package
4208 to improve performance
4210 * choose.cc (create_listview): call ReleaseDC
4212 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
4214 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
4215 returned, as it seems Samba 2.0.6+ returns this instead of
4216 ERROR_PATH_NOT_FOUND
4218 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
4220 * site.cc (get_initial_list_idx): Don't default to saved URL if it
4223 2000-09-07 DJ Delorie <dj@redhat.com>
4225 * splash.cc: use version.h, not local decl
4226 * res.rc: add "old version" message
4229 * fromcwd.cc (canonicalize_version): make global
4230 * iniparse.y: add setup-version support, fix bug in blank line
4233 * inilex.l: add [exp] as alias for [test], add setup-version
4234 * Makefile.in (version.c): add setup-version tag
4236 * desktop.cc (do_desktop): remove 1.1 version number
4237 (do_desktop_setup): ditto
4239 * ini.cc (do_ini): zero out package list just in case we redo it.
4241 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
4243 * choose.cc (list_click): Check for nindexes==0; if so, return.
4245 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
4247 * localdir.cc: new, local package directory selection dialog; cd
4248 into selected directory
4249 * Makefile.in (OBJS): add localdir.o
4250 * dialog.h: add prototype for do_local_dir
4251 * main.cc (WinMain): initialize local_dir to cwd; add call to
4253 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
4254 * source.cc (dialog_cmd): ditto
4255 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
4256 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
4257 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
4258 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
4259 * state.h: add local_dir variable
4261 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
4263 * desktop.cc: added logic to handle to the new dialog and to
4264 default the setting for the new checkboxes based on whether the
4265 desktop icon or start menu link already exist.
4266 (desktop_icon): correction to desktop directories for desktop icon
4267 creation. Additional logic added for Win95 which does not appear
4268 to have Common Directories so if Common selected and null uses
4270 (start_menu): Additional logic added for Win95 which does not
4271 appear to have Common Directories so if Common selected and null
4272 uses normal directory.
4273 (do_desktop_setup): moved the saving of the icon, creation of the
4274 bat file, profile, passwd, Start Menu link and desktop shortcut to
4275 this method from do_desktop. Made the creation of the desktop
4276 icon and start menu link conditional on settings of new dialog
4277 created for desktop.
4278 * install.cc (do_install): changed next from IDD_S_DESKTOP to
4280 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
4281 * res.rc: added new resource to create a desktop dialog with 2
4282 checkboxes for creating the desktop icon and start menu link.
4283 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
4284 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
4285 * state.h: added root_menu and root_desktop for use in dialog.
4287 2000-08-29 DJ Delorie <dj@redhat.com>
4289 * choose.cc (scan_downloaded_files): scan for existing files, so
4290 that the user only sees new downloads.
4292 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
4293 * site.cc (do_site): if we can't download the mirror list, go back
4294 to the net setup box to choose another transport.
4295 * autoload.c: add more functions
4296 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
4297 * resource.h: add WININET message
4299 * net.cc (do_net): no longer default to IE5
4300 * simpsock.h (class SimpleSocket): new, simplify socket operations
4301 * simpsock.cc: ditto
4302 * nio-http.h: new, for direct http protocol
4303 * nio-http.cc: ditto
4304 * nio-ftp.h: new, for direct http protocol
4306 * netio.cc (set_url): move initialization here to handle redirections
4307 (open): add direct http/ftp
4308 * netio.h (NetIO::set_url): new
4310 * log.cc (log_save): create directory for log if needed
4312 * hash.cc, hash.h: new
4313 * Makefile: add hash.o
4314 * choose.cc: enable "uninstall" option
4315 * download.cc: invert action test to accomodate uninstalling
4316 * ini.h: add ACTION_UNINSTALL
4317 * install.cc: add uninstall functionality
4318 * res.rc: make install tag changeable
4319 * resource.h: add uninstall resources
4321 * res.rc: update mirror list URL
4323 2000-08-24 DJ Delorie <dj@redhat.com>
4325 * log.cc, log.h: new files
4326 * Makefile.in (OBJS): add log.o
4327 * tar.cc: use exit_setup instead of exit
4328 * dialog.cc (fatal): use exit_setup instead of ExitProcess
4329 * msg.cc (fatal): ditto
4330 * install.cc (dialog_cmd): ditto
4331 * ini.cc (do_ini): ditto
4332 * main.cc (main): add logging
4333 * source.cc (do_source): ditto
4334 * root.cc (do_source): ditto
4335 * site.cc (do_site): ditto
4336 * other.cc (do_other): ditto
4337 * net.cc (do_net): ditto
4338 * choose.cc (do_choose): ditto
4339 * download.cc (do_download): ditto
4340 * install.cc (do_install): ditto
4341 * msg.cc (fatal): ditto
4343 * res.rc: mark password boxes as *being* password boxes.
4345 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
4346 calls won't use the same buffer.
4347 * choose.cc (create_listview): don't default to full list if no changes
4348 (base): return computed value, not temporary :-(
4349 (do_choose): don't use installed.db if we're only downloading.
4351 2000-08-23 DJ Delorie <dj@redhat.com>
4353 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
4354 * nio-ie5.h (flush_io): new
4355 * netio.cc (load_dialog): note when we're initializing the dialog
4356 box, and ignore changes to the edit fields then.
4358 2000-08-21 DJ Delorie <dj@redhat.com>
4362 * fromcwd.cc (found_file): don't remember the canonicalized version
4364 * choose.cc (paint): print "nothing to do" message when list is empty.
4365 (build_labels): Use version "0.0" if no version is available.
4366 (create_listview): default to full list if nothing to install/update.
4367 (base): new, returns basename of file
4368 (read_installed_db): compare base names, not full paths
4370 2000-08-11 DJ Delorie <dj@redhat.com>
4372 * choose.cc: add new chooser dialog
4373 * fromcwd.cc: use IDD_CHOOSE
4374 * ini.cc: use IDD_CHOOSE
4375 * main.cc: use IDD_CHOOSE
4376 * ini.h: cosmetic changes
4377 * res.rc: add choose dialog, bitmaps
4378 * choose-spin.bmp: new
4379 * choose-rtarrow.bmp: new
4380 * resource.h: add choose dialog controls
4382 * mount.cc: remove debug statement
4384 2000-08-08 DJ Delorie <dj@redhat.com>
4386 * Makefile.in (version.c): make version checking more robust
4387 * splash.cc (load_dialog): handle case where there's no version
4389 2000-08-07 DJ Delorie <dj@redhat.com>
4391 * (all): add cvsid tags
4392 * Makefile.in: generate version.c from ChangeLog, add splash.o
4394 * res.rc: add splash screen
4396 2000-08-02 DJ Delorie <dj@redhat.com>
4398 * net.cc: remove proxy password code
4399 * res.rc: remove proxy user/pass from net, add auth dialogs
4400 * netio.cc,h: add sys/proxy auth methods
4401 * nio-ie5: use them, check for http status codes
4402 * state.h: add system authorization
4404 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
4407 2000-08-02 Norman Vine <nhv@yahoo,com>
4409 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
4411 2000-08-01 DJ Delorie <dj@redhat.com>
4413 * postinstall.cc (each): don't rename files we ignore
4414 (do_postinstall): set CYGWINROOT to root_dir, chdir there
4416 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
4418 2000-07-31 DJ Delorie <dj@redhat.com>
4420 * desktop.cc: reverse PATH so /usr/bin precedes /bin
4422 2000-07-18 DJ Delorie <dj@redhat.com>
4424 * autoload.c: new, autoload dlls that might not be available.
4425 * Makefile.in (OBJS): add autoload.o
4427 * res.rc: rewrite root options (text/binary, system/user) to be
4430 * site.cc (get_site_list): trim displayed URL, sort by domain
4432 * net.cc (do_net): make IE5 default to checked, for now
4434 * choose.cc (do_choose): sort packages correctly
4435 * ini.cc (do_ini): handle parse errors more gracefully
4437 (fprintf): line buffer output
4438 (do_ini): if we can't load setup.ini, go back to the site list.
4439 * ini.h: add "unknown" trust level
4440 * inilex.l: absorb unknown trust levels and key/value pairs,
4441 add line number logic
4442 * iniparse.y: handle parse errors more gracefully.
4443 * install.cc: skip packages with no valid install entry
4445 2000-07-17 DJ Delorie <dj@cygnus.com>
4447 * coding standards fixups, many files
4448 * mkdir.cc: warn about deletions *before* deleting them
4450 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
4452 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
4454 * other.cc (dialog_cmd): save download site URL
4455 * site.cc (get_root_dir): new
4456 (save_mirror_site): new
4457 (dialog_cmd): save download site URL
4458 (get_site_list): make list big enough to add prev site
4459 (get_initial_list_idx): new, read last-used URL from file and
4460 append it to site_list
4461 (do_site): call get_initial_list_idx
4463 * concat.cc (concat): avoid segfault when first parm is null
4465 2000-07-13 DJ Delorie <dj@cygnus.com>
4467 * postinstall.cc: new
4468 * Makefile.in: add postinstall.o
4469 * concat.h: add backslash ()
4471 * desktop.cc (etc_profile): don't do postinstall
4472 (backslash): moved to concat.cc
4474 (make_postinstall_script): run directly
4475 (do_desktop): chain to do_postinstall
4476 * dialog.h: add exit_msg, do_postinstall
4477 * download.cc: use exit_msg
4479 * main.cc: add postinstall, exit_msg
4480 * resource.h: add postinstall
4481 * README: add more to-do items
4483 2000-07-12 DJ Delorie <dj@cygnus.com>
4485 * desktop.cc: add /etc/postinstall/ support
4486 * install.cc: add more "standard" directories
4488 2000-07-11 DJ Delorie <dj@cygnus.com>
4490 * desktop.cc: create /etc/profile
4491 * desktop.cc: fix include syntax
4492 * Makefile.in: add auto-dependencies
4493 * root.cc: support system vs user
4501 * desktop.cc: make sure we use backslashes, not slashes.
4502 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
4503 * geturl.cc: change math for percentage to avoid overflow
4505 * download.cc: post "download complete" message.
4506 * root.cc: pre-fill in defaults if needed, don't start
4507 browse at root_dir unless it's set.
4508 * desktop.cc: quote $PATH in case it has spaces in it
4510 2000-07-10 DJ Delorie <dj@cygnus.com>
4512 * Makefile.in: add desktop.o and mklink2.o
4513 * dialog.h: add do_desktop
4514 * install.cc: create standard directories, call do_desktop
4515 * res.rc: add cygwin.ico as a file also
4516 * desktop.cc: new, do shortcuts, batch files, and icons
4517 * mklink2.c: new, for COM
4518 * README: update to-do list
4520 2000-07-10 DJ Delorie <dj@cygnus.com>
4522 * ini.cc (do_ini): don't worry about timestamps if we're not
4523 actually installing.
4525 2000-07-09 DJ Delorie <dj@cygnus.com>
4527 * Makefile.in: add -I$(srcdir) for ini.h
4529 2000-07-06 DJ Delorie <dj@cygnus.com>
4531 * Replace everything with a new GUI version
4532 * zlib/gzio.c: add gzctell() for progress displays
4534 2000-06-22 DJ Delorie <dj@cygnus.com>
4536 * setup.c (tarx): re-add call to write_pkg()
4538 2000-06-07 DJ Delorie <dj@cygnus.com>
4540 * cygcalls.c: new, call cygwin1.dll functions directly
4541 * cygcalls.h: header for same
4542 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
4543 exes, fix cinstall.rc dependencies.
4544 * path.c: remove unneeded code
4545 * setup.c: use cygcalls instead of xcreate_process.
4546 uncompress embedded files with zlib
4547 add "-d" for "download only"
4549 postpone mount changes until very end
4550 add download progress indicators
4551 pack multi-column listings more
4552 auto-delete temp files
4553 customize banner message according to options
4554 prompt user for text/binary mounts
4555 add warnings about empty setup directory, root installs, etc
4557 2000-05-24 DJ Delorie <dj@cygnus.com>
4559 * tar.c: New file; built-in tar using zlib.
4560 * tar.h: New file; header for same.
4561 * ctar.c: New file; test program for same.
4562 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
4563 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
4564 * setup.c (tarx): add support for built-in tar
4565 (main): accept unix-style slashes, check root dir for drive letters,
4566 warn about installing in /, make sure cwd is empty for internet installs,
4567 defer mounts to end of install, support built-in tar.
4569 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
4571 Fix compiler warnings throughout.
4572 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
4574 * setup.c: Make 'root' global.
4575 (istargz): Return pointer to "stem" of matched .tar.gz file.
4576 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
4577 bogus check_for_installed check.
4578 (recurse_dirs): Add preliminary support for .bat file execution.
4579 (create_uninstall): Eliminate unneeded parameter.
4580 (do_start_menu): Ditto.
4582 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
4583 scanning for the version number. Eliminate unneeded argument to
4585 (getdownloadsource): Add 'name' to list of names rather than url.
4586 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
4587 unneeded argument in mkmount and do_start_menu.
4589 2000-05-18 DJ Delorie <dj@cygnus.com>
4591 * setup.c (optionprompt): allow multi-column, clean up message
4592 about more options, be more robust about user input.
4593 (getdownloadsource): make the mirror URL a macro.
4594 (main): do mounts after done prompting user.
4596 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
4598 * setup.c (cleanup): Inverse order of deletion stands a better chance
4599 of deleting cygpath.exe. Still seems to suffer from occasional races,
4601 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
4603 (output_file): Defend against an unlikely handle leak.
4604 (main): Don't set up signal handling until we have something special to
4607 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
4609 * path.c (kill_cygpath): Delete function.
4610 (exit_cygpath): Make more defensive so that it can be called at any
4612 (cygpath_pipe): Don't set up signal here. Do it in main().
4613 * setup.c (istargz): New function.
4614 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
4615 inexplicably fails on samba mounted partitions. Use istargz to match
4617 (processdirlisting) Use istargz to match tar.gz tail.
4618 (cleanup): Renamed from filedel.
4619 (cleanup_on_signal): New function. Called on CTRL-C.
4620 (main): Record handle of main thread so that it can be suspended when
4621 CTRL-C occurs. Set up cleanup_on_signal signal handler.
4623 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
4625 * setup.c (do_start_menu): Don't concatenate paths to already built
4628 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
4630 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
4631 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
4633 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
4635 * setup.c (filedel): Call exit_cygpath here so that we can be assured
4636 that cygpath subprocess has died. This allows us to delete cygpath.exe
4638 (optionprompt): Initialize response to -1 so that second screen of
4639 mirrors will appear.
4640 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
4641 * setup.h: Reflect init_pkgs prototype change.
4643 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
4645 * pkg.c (init_pkgs): Accept an argument to control what root registry
4647 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
4648 * setup.h: Reflect init_pkgs prototype change.
4650 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
4652 * error.c (winerror): Respond to gcc warning.
4653 * path.c (cygpath_pipe): Ditto.
4654 * setup.c (filedel): Call sa_cleanup on deleteme.
4655 (create_shortcut): Coerce argument to eliminate compiler warning.
4656 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
4657 (refmatches): New function. Tests if ref is contained in a list of
4658 packages to install.
4659 (filematches): New function. Tests if filename matches one of a list
4660 of packages to install.
4661 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
4662 test to accomodate _tar.gz.
4663 (prompt): Ensure that stdout is flushed prior to asking for input.
4664 (findhref): Initialize variables to quiet a compiler warning.
4665 (processdirlisting): Accept list of packages to install. Special case
4666 cygwin tar file version number.
4667 (downloaddir): Accept list of packages to install.
4668 (downloadfrom): Ditto.
4669 (create_uninstall): Eliminate unneeded variables. Quote arguments to
4671 (do_start_menu): Don't create uninstall bat file if updating or user
4672 specified a list of packages.
4673 (mkmount): Eliminate unneeded variables.
4674 (get_pkg_stuff): New function. Checks for previous unversioned
4676 (main): Accept -u and -f options and package names on the command line.
4677 Use get_pkg_stuff to initialize package information. Umount /etc.
4678 Call recurse_dirs and downloadfrom with list of package to install.
4679 Ensure that all /usr/local directories are created. Output
4680 installation time to setup.log.
4681 * setup.h: Add some prototypes.
4682 * xsystem.c (xcreate_process): Eliminate unneeded variable.
4684 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
4686 * setup.c (optionprompt): Don't overlap display of already seen options
4688 (geturl): Print name of site which we're connecting to rather than "ftp
4690 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
4691 test too simplistic?
4692 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
4693 problems when user chooses x:\ as their root.
4694 (main): For now, default to "non-update" mode. Allow -u option to
4697 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
4700 * setup.c (tarx): Skip already installed or older packages. Report
4701 when a package has been updated.
4702 (processdirlisting): Skip already installed or older packages.
4703 (main): Detect -f option for forced installation. Initialize pkg stuff
4705 * setup.h: Add pkg definitions.
4707 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
4709 * setup.c (findhref): Return NULL on empty string. Eat any trailing
4711 (processdirlisting): Attempt to limit recursively processing the same
4714 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
4716 * setup.c (filedel): New function.
4717 (output_file): Keep track of files extracted from setup.exe for
4718 subsequent deletion.
4719 (tarx): Close process handle of child tar process or suffer handle
4721 (getdownloadsource): Close mirror file so that it can be unlinked.
4722 (processdirlisting): Return total number of files extracted.
4723 (main): Initialize array of files to delete. Ensure that files are
4724 closed on exit. Make the directory that setup.exe is started from ==
4725 the directory where temporary files are placed. Issue an error if no
4726 files were found to download.
4727 * xsystem.c (xcreate_process): Close the thread handle. Close the
4728 process handle if we waited for it to exit.
4730 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
4732 * setup.c (main): Change version number output.
4734 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
4736 * setup.c (tarx): Use full path name to tar executable.
4737 (main): Build full pathname to tar executable. Create /usr/local/etc
4740 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
4742 * setup.c (findhref): Change method for scanning for href= to choose
4743 the last one on the line. This is still not foolproof and probably
4744 will need to be changed eventually. Don't abort if no "size" field is
4746 (processdirlisting): Fix boolean algebra.
4748 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
4750 * main.c (tarx): Add some code for future task of unmounting
4751 directories encountered in tar file.
4753 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
4755 * setup.c (findhref): Decode file size, when appropriate.
4756 (needfile): New function. Returns 1 when file should be
4758 (processdirlisting): Always download if file size does not
4759 match. Prompt when download fails for some reason.
4760 (getdownloadsource): Accomodate findhref argument changes.
4762 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
4764 Throughout, use global session handle rather than reinitializing for
4765 each connect. Don't pass session as an argument to setup.c functions.
4766 * setup.c (geturl): Only issue "Connecting to.." message when using
4767 http or first time for ftp since subsequent connections will be fast.
4768 (processdirlisting): Allocate space for "N" when user has specified
4769 "N"ever option so that it can be subsequently freed.
4770 (main): Abort if we can't get the list of mirrors.
4772 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
4774 * setup.c (main): Umount /bin and /lib.
4776 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
4778 * setup.c (main): Create an empty /var/run/utmp.
4780 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
4782 * Makefile.in: Add umount to list of files to include in setup.exe.
4783 * setup.c (xumount): New function for unmounting directories.
4784 (main): Unmount /usr.
4785 (mkmount): Unmount "unix directory" before trying to figure out where
4786 to create the directory.
4788 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
4790 * setup.c (mkmount): Use xcreate_process to start mount process,
4792 (main): Don't do buffering on stdout or prompts won't be displayed
4793 correctly if running in a cygwin shell with CYGWIN=tty.
4795 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
4797 * setup.c (main): Remove the CYGWIN environment variable before
4798 starting any cygwin programs.
4800 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
4802 * setup.c (geturl): Use alternative method for finding filename part of
4804 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
4805 (downloaddir): Unlink file containing dir listing.
4806 (downloadfrom): Ditto.
4808 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
4810 * setup.c (main): Disallow running setup.exe from the "root".
4812 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
4814 Use "warning" function, where appropriate, to output warnings.
4815 * setup.c (warning): New function -- outputs warning to console and log
4817 (tarx): Fix index used to reset file protection.
4818 (main): Open the log file earlier so that more stuff can be sent to it.
4820 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
4822 * setup.c (processdirlisting): Make "N" option a little less aggressive.
4824 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
4826 * setup.c (tarx): Wait to after tar has completed to reset protections
4827 or suffer races with tar process.
4829 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
4831 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
4832 * setup.c (create_uninstall): Create the uninstall .bat file in the
4833 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
4834 list of files to be deleted. Fix directory detection for determining
4835 when to use 'rmdir'.
4836 (do_start_menu): Add /usr/local/bin to the path.
4837 (main): Add slop to files.array allocation so that we don't have to
4838 worry about reallocating the array when it grows too large when doing
4839 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
4842 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
4844 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
4847 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
4849 * path.c (kill_cygpath): New cleanup function.
4850 (exit_cygpath): New cleanup function.
4851 (cygpath_pipe): New function. Sets up cygpath in the background for
4852 translating filenames.
4853 (pathcvt): Use background cygpath for file translation.
4854 * setup.c (tarx): New function. Called to extract tar files, capture
4855 logging output, and translate it to Windows format.
4856 (recurse_dirs): Use 'tarx' function to extract files.
4857 (create_uninstall): Use file list built up by tarx rather than reading
4859 (mkmount): Add ability to mount root.
4860 (main): Track elapsed install time. Mount root.
4861 * starry.h: Add index field to strarry for tracking of tarx's usage of
4863 * xsystem.c (xcreate_process): Return proces handle when not waiting.
4865 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
4868 (pathfp): New function. Preliminary work for new -f cygpath
4870 * Makefile.in: Add new file.
4871 (pathcvt): Move to new file.
4875 * setup.c (processdirlisting): Always open file in text mode.
4876 (create_uninstall): Ditto.
4877 (getdownloadsource): Ditto.
4880 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
4882 * xsystem.c: New file.
4883 * Makefile.in: Accomodate new file.
4884 * setup.c (xsystem): Move to new file.
4885 (recurse_dirs): Accept handle to output log file. Don't use ">"
4886 redirection to trap tar output. Use supplied handle instead.
4887 (create_uninstall): Accept FILE pointer to opened log file. Don't
4888 unlink log file here.
4889 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
4890 (main): Open log file here and pass it to various functions. Unlink
4893 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
4895 Change occurrences of .usr.bin to .bin throughout.
4896 * setup.c (geturl): Increase number of retries to 20. Let user know
4897 what's going on during long connects.
4898 (processdirlisting): Accept "A"lways and "N"ever as update options.
4899 (create_uninstall): Load cygwin1.dll from the current directory rather
4901 (main): Add some expository text.
4903 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
4905 * Makefile.in: Change method for compressing cygwin1.dll to avoid
4906 creating a cygwin1.dll in the current directory. Ensure the addition
4907 of -nostdinc to MINGW_CFLAGS.
4909 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
4911 * Makefile.in: Augment clean target.
4913 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
4915 * README: Added info about non-working mingw implementation
4916 * gzip.exe.gz: Replace with a version from the same build as the other
4918 * tar.exe.gz: Replace with a version from the same build as the other
4920 * mount.exe.gz: Add to repository until, mingw can build setup.
4921 * cygpath.exe.gz: ditto
4922 * cygwin1.dll.gz: ditto
4923 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
4924 for Win9x. Display only a screenfull of options at a time. Call all
4925 tools with an absolute path.
4926 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
4931 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
4933 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
4934 cygwin1.dll from ../cygwin subdirectory.
4935 * gzip.exe.gz: Update.
4936 * tar.exe.gz: Update.
4938 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
4940 * Makefile.in: Use ZLIB variable as a target.
4942 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
4944 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
4945 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
4947 * configure.in: Locate correct objcopy.
4948 * configure: Regenerate.
4950 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
4952 * Makefile.in: New file.
4953 * configure.in: New file.
4954 * configure: New file.
4955 * zlib/Makefile.am: New file.
4956 * zlib/configure.in: New file.
4957 * zlib/aclocal.m4: New file.
4958 * zlib/acinclude.m4: New file.
4959 * zlib/configure: Regenerate from configure.in.
4960 * zlib/Makefile.in: Regenerate from Makefile.am