1 2002-07-06 Robert Collins <rbtcollins@hotmail.com>
3 * PickCategoryLine.h: Include required header list.h.
4 * PickPackageLine.cc (PickPackageLine::paint): Adjust to use STL
5 containers for listing of packages per category and vice verca.
6 * PickView.cc (PickView::insert_pkg): Ditto.
7 (PickView::insert_category): Ditto.
8 * String++.h (String::caseless): STL helper to allow trivial containers
9 of Strings with case insensitive comparisons.
10 * category.h: Adjust to use STL containers for listing of packages per
11 category and vice verca.
12 * choose.cc (fill_missing_category): Ditto.
13 (default_trust): Ditto.
14 (ChooserPage::OnNext): Ditto.
15 * package_meta.cc (CategoryPackage::~CategoryPackage): Remove.
16 (packagemeta::packagemeta): Adjust for new category list name.
17 (packagemeta::~packagemeta): Adjust to use STL containers for listing
18 of packages per category and vice verca.
19 (packagemeta::set_action): Ditto.
20 * package_meta.h (CategoryPackage): Remove.
21 (packagemeta): Adjust to use STL containers for listing of packages per
22 category and vice verca.
24 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
26 * io_stream.cc: Use STL containers rather than custom ones.
27 (io_stream::registerProvider): Ditto.
28 (findProvider): Ditto.
30 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
32 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
33 Use STL collections for download site collections.
34 (IniDBBuilderPackage::add_correct_version): Ditto.
35 (IniDBBuilderPackage::process_src): Ditto.
36 * PickPackageLine.cc (PickPackageLine::click): Use the packageversion
37 accessible() call to abstract package availability.
38 * choose.cc (scanAVersion): Use STL collections for download site
40 * download.cc (check_for_cached): Ditto.
41 (download_one): Ditto.
42 * package_meta.cc (packagemeta::set_action): Use the packageversion
43 accessible() call to abstract package availability.
44 * package_source.h: Use STL containers rather than custom containers.
45 (site): Create a == operator to allow STL container use.
46 (packagesource::sites): Use STL containers rather than custom
48 * package_version.cc (_packageversion::accessible): Use STL containers
49 for download site containers.
51 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
53 * LogFile.cc: Use STL containers rather than custom containers.
54 (filedef): Create == and < operators for STL use.
55 (files): Convert to an STL set.
56 (LogFile::setFile): Use STL operations on files.
57 (LogFile::exit): Ditto.
59 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
61 * ini.cc (do_remote_ini): Use STL collection for site collection.
62 * site.cc: Include site.h first to ensure it's parsable standalone.
64 (site_list): Convert to an STL container.
65 (all_site_list): Ditto.
66 (site_list_type::site_list_type): Implement copy constructor.
67 (site_list_type::operator=): Implement assignment operator.
68 (site_list_type::operator ==): Implement.
69 (site_list_type::operator <): Ditto.
70 (save_dialog): Use STL collection calls for site collection.
71 (save_site_url): Ditto.
72 (get_site_list): Ditto.
73 (get_saved_sites): Ditto.
74 (do_download_site_info_thread): Ditto.
75 (SitePage::OnNext): Ditto.
76 (SitePage::PopulateListBox): Ditto.
77 (SitePage::OnMessageCmd): Ditto.
78 * site.h: Use STL vectors instead of custom code.
79 (site_list_type::site_list_type): Declare.
80 (site_list_type::operator=): Ditto.
81 (site_list_type::operator ==): Ditto.
82 (site_list_type::operator !=): Ditto.
83 (site_list_type::operator <): Ditto.
84 (site_list_type::operator <=): Ditto.
85 (site_list_type::operator >): Ditto.
86 (site_list_type::operator >=): Ditto.
87 (site_list): Convert to an STL container.
88 (all_site_list): Ditto.
90 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
92 * choose.cc (default_trust): Check package accessibility before
93 triggering an install. (Suggested by Pavel).
95 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
97 * compress_gz.cc (compress_gz::construct): Always initialize key members
98 to ensure the destructor does the right thing.
100 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
102 * filemanip.cc (parse_filename): Do not try to parse empty
104 * package_db.cc (packagedb::packagedb): For each line check if sscanf()
105 extracted good package name and filename.
107 2002-07-03 Robert Collins <rbtcollins@hotmail.com>
109 * package_meta.cc (packagemeta::set_requirements): Automatically select
110 version of dependent packages that satisfies the requirements.
111 Use processOneDependency to trigger the install of those packages.
112 (checkForInstalled): Check that the package remains installed.
113 (processOneDependency): Helper function for dependent packages.
114 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackage): Add more
116 Clear out all current state on new packages.
117 (IniDBBuilderPackage::add_correct_version): Copy the dependency list
120 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
122 * Makefile.am (inilint_SOURCES): Add PackageSpecification sources.
123 nb: inilint is still incomplete, as the packageversion code is not
124 ready for database-less linking.
125 * site.cc (get_site_list): When the same site is reentered by the user
126 replace the old one. (Suggested by John Marshall).
128 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
130 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
131 Clear out package selections when generating implicit source packages.
132 * PackageSpecification.cc (PackageSpecification::satisfies): Implement.
133 (PackageSpecification::_operators::satisfies): Implement.
134 * PackageSpecification.h (PackageSpecification::_operators::satisfies):
135 Worker function for testing versions.
137 2002-07-01 Robert Collins <rbtcollins@hotmail.com>
139 * IniDBBuilder.cc (IniDBBuilder::buildPackageRequirement): Remove.
140 * IniDBBuilder.h (IniDBBuilder::buildPackageRequirement): Ditto.
141 * IniDBBuilderPackage.cc: Use the STL algorithms.
142 Change cpv to cbpv throughout. Adjust -> to ., and use the new accessor
143 functions for the same variable throughout.
144 (IniDBBuilderPackage::IniDBBuilderPackage): Initialise new members.
145 (IniDBBuilderPackage::buildPackage): Use new cygpackage syntax,
146 and set an empty source package.
147 (IniDBBuilderPackage::buildPackageInstall): Use the new source member
148 to record an install package.
149 (IniDBBuilderPackage::buildPackageSource): Move source package logic
150 out from process_src, as it now occurs at separate times.
151 (IniDBBuilderPackage::buildPackageRequirement): Remove.
152 (IniDBBuilderPackage::buildSourceName): Use renamed package
153 specifiation accessor for clarity.
154 (IniDBBuilderPackage::buildSourceNameVersion): Ditto.
155 (IniDBBuilderPackage::add_correct_version): Use STL iterators rather
157 Remove source package references.
158 (IniDBBuilderPackage::process_src): Remove source package code as it's
159 now handled separately.
160 Set Path information before merging versions, to prevent dangling
162 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildPackageRequirement):
164 (IniDBBuilderPackage::cpv): Remove.
165 (IniDBBuilderPackage::cbpv): New generic binary working variable.
166 (IniDBBuilderPackage::cspv): Ditto, but for source packages.
167 (IniDBBuilderPackage::csp): Source package variable for disjoint
169 * Makefile.am (AM_CFLAGS): Remove -Winline to allow stl set code
170 to compile. If it compiles cleanly in gcc 3.1, then reinstate.
171 * PickPackageLine.cc: Adjust packageversion accessors to the new
172 reference calls. (i.e. -> to .) throughout.
173 (PickPackageLine::paint): Use accessible() for clarity.
174 Use new split out source package logic.
175 (PickPackageLine::click): Ditto.
176 * PickView.cc (PickView::init_headers): Adjust packageversion accessors
177 to the new reference calls. (i.e. -> to .) throughout.
178 Use new split out source package logic.
179 * choose.cc: Don't depend on a specific package type.
180 Adjust packageversion accessors to the new reference calls. (i.e. -> to
182 (set_existence): Use accessible () for clarity.
183 (default_trust): Simplify a little.
184 (scanAVersion): Factored out code from scan_downloaded_files for
186 (scan_downloaded_files): Factor out inner loop for clarity.
187 (ChooserPage::OnNext): Don't dump the dependency list,
188 it's parsing is robust now!.
189 * cygpackage.cc (createInstance): Use a factory method to create new
191 (cygpackage::cygpackage): Make this private for use by the factory.
192 (cygpackage::setCanonicalVersion): Renamed from set_canonical_version.
193 Remove key usage as it's obsolete.
194 * cygpackage.h (cygpackage): Inherit from _packageversion, not
196 (cygpackage::createInstance): New factory.
197 (cygpackage::cygpackage): Make private.
198 * desktop.cc (make_passwd_group): Use new packageversion reference.
199 * download.cc (do_download_thread): Use changeRequested() for clarity.
200 Use new packageversion reference calls.
201 * iniparse.y (REQUIRES): Reuse the packageList code and dump the one-off
203 * install.cc: Adjust -> to ., and use the new accessor functions for
204 packageversion throughout.
205 * package_db.cc: Adjust -> to ., and use the new accessor functions for
206 packageversion throughout.
207 (packagedb::packagedb): Use the new cygpackage factory.
208 (packagedb::flush): Leverage String to remove buffer overflow chance in
210 (packagedb::findBinary): Find a binary meta package that has a version
211 matching a given specification.
212 (packagedb::findSource): Ditto, but for source.
213 * package_db.h (packagedb::findBinary): Declare.
214 (packagedb::findSource): Ditto.
215 * package_meta.cc: Adjust packageversion accessors to the new
216 reference calls. (i.e. -> to .) throughout.
217 Include the package_meta header first to ensure it parses standalone.
218 Use the STL algorithms.
219 (packagemeta::packagemeta): Create a copy constructor to allowing
220 cloning binary package metadata to source package metadata.
221 (packagemeta::~packagemeta): Use the STL coleltion code rather than
222 custom collection code.
223 (packagemeta::add_version): Ditto.
224 (packagemeta::set_installed): Ditto.
225 (packagemeta::SDesc): Ditto.
226 (hasSDesc): Helper function for find_if.
227 (checkForInstalled): Ditto.
228 (checkForUpgradeable): Ditto.
229 (checkForSatisfiable): Ditto.
230 (packagemeta::action_caption): Update for split out source packages.
231 (packagemeta::set_action): Ditto.
232 (packagemeta::set_requirements): Support multi-valued dependency
233 lists - a|b & c|d - with versioned package specifications.
234 (packagemeta::accessible): Helper member to improve abstraction.
235 (packagemeta::sourceAccessible): Ditto.
236 * package_meta.h: Adjust packageversion accessors to the new
237 reference calls. (i.e. "->" to "." and"*" to "" ) throughout.
238 (packagemeta::packagemeta): Declare copy constructor.
239 Remove self initialising members.
240 (packagemeta::set_action): Update parameters for new packageversion.
241 (packagemeta::trustp): Ditto.
242 (packagemeta::versions): Becomes an STL set.
243 * package_source.h (packagesource::Cached): Const correctness change.
244 * package_version.cc: Rewrite the packageversion interface to remove
245 the cygpackage nonvirtual members, and provide a copy by value,
246 pointer semantics reference counting wrapper class to ease use and
247 comparison of packageversions.
248 Change existing packageversion class to _packageversion throughout.
249 (_defaultversion): A trivial concrete class to prevent specialcasing
250 the default constructor for packageversion;
251 (packageversion::packageversion): Implement.
252 (packageversion::~packageversion): Ditto.
253 (packageversion::operator=): Ditto.
254 (packageversion::operator !): Ditto.
255 (packageversion::operator bool): Ditto.
256 (packageversion::operator ==): Ditto.
257 (packageversion::operator !=): Ditto.
258 (packageversion::operator <): Ditto.
259 (packageversion::Name): Ditto.
260 (packageversion::Canonical_version): Ditto.
261 (packageversion::setCanonicalVersion): Ditto.
262 (packageversion::getfirstfile): Ditto.
263 (packageversion::getnextfile): Ditto.
264 (packageversion::SDesc): Ditto.
265 (packageversion::set_sdesc): Ditto.
266 (packageversion::LDesc): Ditto.
267 (packageversion::set_ldesc): Ditto.
268 (packageversion::sourcePackage): Ditto.
269 (packageversion::sourcePackageSpecification): Ditto.
270 (packageversion::setSourcePackageSpecification): Ditto.
271 (packageversion::depends): Ditto.
272 (packageversion::predepends): Ditto.
273 (packageversion::recommends): Ditto.
274 (packageversion::suggests): Ditto.
275 (packageversion::replaces): Ditto.
276 (packageversion::conflicts): Ditto.
277 (packageversion::provides): Ditto.
278 (packageversion::picked): Ditto.
279 (packageversion::pick): Ditto.
280 (packageversion::changeRequested): Ditto.
281 (packageversion::uninstall): Ditto.
282 (packageversion::source): Ditto.
283 (packageversion::accessible): Ditto.
284 (_packageversion::sourcePackage): Ditto.
285 (_packageversion::accessible): Ditto.
286 (_packageversion::changeRequested): Ditto.
287 * package_version.h: Rewrite the packageversion interface to remove
288 the cygpackage nonvirtual members, and provide a copy by value,
289 pointer semantics reference counting wrapper class to ease use and
290 comparison of packageversions.
291 Change existing packageversion class to _packageversion throughout.
292 (Dependency): Remove.
293 (packageversion): New wrapper class.
294 (_packageversion): Renamed from packageversion.
295 (_packageversion::setCanonicalVersion): New method.
296 (_packageversion::sourcePackage): Ditto.
297 (_packageversion::sourcePackageSpecification): Ditto.
298 (_packageversion::setSourcePackageSpecification): Ditto.
299 (_packageversion::changeRequested): Ditto.
300 (_packageversion::bin): Rename to source.
301 (_packageversion::src): Remove.
302 (_packageversion::accessible): New method.
303 (_packageversion::references): Allow reference counting.
304 (_packageversion::sourceVersion): Cached the best-match source
307 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
309 * compress_bz.h (compress_bz::position): Track how much has been read.
310 * compress_bz.cc (compress_bz::compress_bz): And initialise it.
311 (compress_bz::read): Track amount read by the client.
312 (compress_bz::tell): And report it when asked.
314 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
316 * Makefile.am (snapshot): Automate snapshot creation some more.
318 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
320 * msg.cc (msg): Use vsnprintf to avoid buffer overflows.
322 * ini.cc (fprintf): Ditto.
323 * log.cc (log): Ditto.
324 * package_db.cc (packagedb::sourcePackages): Split out source packages
325 from binary packages.
326 * package_db.h: Ditto.
328 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
330 * PackageSpecification.h: New file. Abstracts the ability to refer
331 to another package, by name, or name and version.
332 * PackageSpecification.cc: Ditto.
333 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Simplify.
334 (IniDBBuilder::buildPackageSource): Ditto.
335 (IniDBBuilder::buildBeginDepends): New method for versioned
337 (IniDBBuilder::buildBeginPreDepends): Likewise, for dependencies to be
338 satisfied before pre-install.
339 (IniDBBuilder::buildPriority): New method, for getting the package
341 (IniDBBuilder::buildInstalledSize): How much disk space does it need?
342 (IniDBBuilder::buildMaintainer): Who maintains the package?
343 (IniDBBuilder::buildArchitecture): What platform is it for?
344 (IniDBBuilder::buildInstallSize): How big is the binary download?
345 (IniDBBuilder::buildInstallMD5): Whats the MD5 on the binary?
346 (IniDBBuilder::buildSourceMD5): Whats the MD5 on the source package?
347 (IniDBBuilder::buildBeginRecommends): What other packages are
348 recommended with this one?
349 (IniDBBuilder::buildBeginSuggests): And suggested?
350 (IniDBBuilder::buildBeginReplaces): What packages does this replace?
351 (IniDBBuilder::buildBeginConflicts): And collide with?
352 (IniDBBuilder::buildBeginProvides): What virtual packages (or obsolete
353 package names) does this provide?
354 (IniDBBuilder::buildDescription): Grab a multi line description one
356 (IniDBBuilder::buildSourceName): What source package should be used to
357 install the source for this binary package?
358 (IniDBBuilder::buildSourceNameVersion): Is a specific version needed?
359 (IniDBBuilder::buildPackageListAndNode): Add another AND clause to a
360 list of package specifications.
361 (IniDBBuilder::buildPackageListOrNode): Add another OR clause.
362 (IniDBBuilder::buildPackageListOperator): Add a versioning operator
363 to the current specification.
364 (IniDBBuilder::buildPackageListOperatorVersion): What version does the
366 * IniDBBuilder.h: Declare all the IniDBBuilder.cc changes.
367 * IniDBBuilderPackage.cc: As for IniDBBuilder.cc.
368 (IniDBBuilderPackage::IniDBBuilderPackage): Iniitialize new members.
369 (IniDBBuilderPackage::process_src): Streamline and split out
371 (IniDBBuilderPackage::setSourceSize): From process_src.
372 * IniDBBuilderPackage.h: Declare the IniDBBuilderPackage.cc changes.
373 (IniDBBuilderPackage::currentSpec): Track the in-progress specifiation.
374 (IniDBBuilderPackage::currentOrList): Track the current Or list.
375 (IniDBBuilderPackage::currentAndList): Track the current And list.
376 * IniParseFeedback.cc (IniParseFeedback::progress): Provide completion
378 (IniParseFeedback::iniName): Tell what ini filename we are currently
380 * IniParseFeedback.h: Declare IniParseFeedback.cc changes.
381 * IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor):
382 Make the feedback object non-const to allow mutating methods which are
383 needed when the object has state.
384 (IniParseFindVisitor::visitFile): Tell the caller the name of each
386 Initialise the parser with the feedback object to allow it to tell of
388 * IniParseFindVisitor.h: Declare IniParseFindVisitor.cc changes.
389 * Makefile.am (inilinst_SOURCES): Add more requisite classes.
390 (setup_SOURCES): Add the new PackageSpecification sources.
391 * ScanFindVisitor.cc (ScanFindVisitor::visitFile): Use the new
392 builder syntax to setup binary package details.
393 * choose.cc: Use the LogSingleton calls throughout.
394 * configure.in: Create the INILINT substitution correctly for recent
395 autotool configurations.
396 * cygpackage.cc (cygpackage::getfirstfile): Return an empty String
397 rather than a string built from an int. Thanks to Pavel Tsekov for
399 (cygpackage::getnextfile): Ditto.
400 * download.cc: Use LogSIngletion calls throughout.
401 (validateCachedPackage): A refactoring of the
402 check_for_cached code to eliminate duplciation.
403 (check_for_cached): Use validateCachedPackage to check packages.
404 * ini.cc (GuiParseFeedback): Provide gui feedback on ini name and
406 (do_remote_ini): Ditto.
407 * ini.h (ini_init): Pass a IniParseFeedback to the parser, to allow
409 * inilex.l: Identify new symbols - operators, and multi line plain text.
411 * inilintmain.cc (show_help): Provide basic infomation on inilint.
412 * iniparse.y: Adjust for the new builder syntax, and process debian
414 * io_stream_file.cc: Always include mkdir.h.
415 * list.h: Factor index location into a private routine.
416 (list::findindex): Implement this.
417 * mkdir.cc (mkdir_p): Make the use of WIN32 code conditional on mingw
418 builds. NB: This breaks cygwin build functionality still.
419 * package_meta.cc: Use the LogSingleton calls throughout.
420 (packagemeta::set_requirements): Adjust for object changes in
422 * package_meta.h (packagemeta::packagemeta): Initialise new members.
423 (packagemeta::architecture): What platform does this package run on?
424 This may need to move in the future to a per packagefile object.
425 (packagemeta::priority): What priority does this package have?
426 * package_source.h (packagesource::packagesource): Initialise new
428 (packagesource::installedSize): How much space does the package need?
429 (packagesource::setInstalledSize): Tell the amount.
430 (packagesource::_installedSize): And store it.
431 * package_version.cc (packageversion::sourcePackage): return the
433 (packageversion::setSourcePackage): And set it.
434 * package_version.h: Declare the package_version.cc changes.
435 (packageversion::depends): New package specification AND list.
436 (packageversion::predepends): Ditto.
437 (packageversion::recommends): Ditto.
438 (packageversion::suggests): Ditto.
439 (packageversion::replaces): Ditto.
440 (packageversion::conflicts): Ditto.
441 (packageversion::provides): Ditto.
442 (packageversion::sourcePackage): What source package is needed?
443 * threebar.cc (ThreeBarProgressPage::SetText4): Set the label beside
445 * threebar.h: Declare the threebar.cc change.
447 2002-06-27 John Marshall <johnm@falch.net>
449 * res.rc (SETUPINI_MISSING): Make trailing spaces visible.
450 * site.cc (SitePage::OnMessageCmd): Ditto
452 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
454 * nio-ie5.cc (NetIO_IE5::NetIO_IE): Allow cached data.
456 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
458 * package_meta.cc (packagemeta::set_action): When installing packages
459 with no binaries, choose the source package.
461 2002-06-10 Robert Collins <rbtcollins@hotmail.com>
463 * IniParseFindVisitor (IniParseFindVisitor::visitFile): Apply Max
464 Bowshers fix for the crash with a root level setup.ini.
465 * README: Update todos.
467 2002-05-26 Ralf Habacker <ralf.habacker@freenet.de>
469 * archive_tar.cc (archive_tar::next_file_name()): fixed broken
470 GNU long name extension support.
472 2002-05-27 Robert Collins <rbtcollins@hotmail.com>
474 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Don't
475 unescape 0 length strings.
477 2002-05-20 Robert Collins <rbtcollins@hotmail.com>
479 * package_meta.cc (packagemeta::set_action): Don't allow reinstall
480 when local with no cached file, and install the default source if the
481 default version has no binary.
483 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
485 * IniDBBuilderPackage.cc (IniDBBuilderPackage::IniDBBuilderPackage): New
487 (IniDBBuilderPackage::buildVersion): Provide a warning when a newer
488 setup version created the ini file.
489 * IniDBBuilderPackage.h (IniDBBuilderPackage::IniDBBuilderPackage): New
491 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use the new
493 * IniParseFindVisitor.h (IniParseFindVisitor::IniParseFindVisitor):
494 Require a feedback strategy.
495 * Makefile.am (setup_SOURCES): Add IniParseFeedback sources.
496 * Makefile.in: Regenerate.
498 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
500 * io_stream_file.cc (io_stream_file::remove): Use the SetFileAttributes
501 trick to delete read only files.
502 * io_stream_cygfile.cc (io_stream_cygfile::remove): Use file:// to
504 * Makefile.am (release): Tweak to be more helpful.
505 * Makefile.in: Regenerate.
507 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
509 * Makefile.am (release): Tweak to be more helpful.
510 * Makefile.in: Regenerate.
512 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
514 * Makefile.am (release): Tweak to be more helpful.
515 * Makefile.in: Regenerate.
517 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
519 * choose.cc (scan_downloaded_files): When a non-installed version
520 has neither bin nor src cached files for local installs,
521 remove the version from availability.
523 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
525 * ini.cc (do_remote_ini): Save uncompressed ini's correctly.
527 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
529 * rsync: New support library, contains librsync. This is not (yet)
531 * configure.in: --with-rsync to enable rsync support. (Not complete).
532 * Makefile.am: Enable building with rsync.
533 * Makefile.in: Regenerate.
535 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Pass the md5 as
537 (IniDBBuilder::buildPackageSource): Ditto.
538 * IniDBBuilder.h: Ditto.
539 * IniDBBuilderPackage.cc: Ditto.
540 * IniDBBuilderPackage.h: Ditto.
541 * FindVisitor.cc: New file.
542 * FindVisitor.h: New file, interface for visiting a file system
544 * IniParseFindVisitor.cc: New file.
545 * IniParseFindVisitor.h: New file, concrete FindVisitor that parses
547 * README: Update TODO's.
548 * String++.cc (String::String): New constructor for <string> inter-
550 (String::substr): New method.
552 * choose.cc (scan2): Remove.
553 (scan_downloaded_files): Simplify.
554 * dialog.h: Include parsing pre-requirements.
555 * download.cc (check_for_cached): Fullname was used incorrectly - fix.
556 * filemanip.cc (parse_filename): -src packages where incorrectly parsed.
557 * find.cc: Rewrite. Now uses a Visitor pattern and is re-entrant.
559 * fromcwd.cc: Remove unneeded includes.
560 (is_test_version): Remove.
561 (found_file): Remove.
562 (SetupFindVisitor): Trivial visitor to detect setup.ini's.
564 (do_fromcwd): Remove commented code that has be replaced elsewhere.
565 * ini.cc (local_ini): Remove.
566 (findBuilder): Remove.
567 (find_routine): Remove.
568 (do_local_ini): Use new IniParseFindVisitor.
569 * iniparse.y: Typecase MD5 arrays, as we know they are allocated as
571 * postinstall.cc: Remove non-core includes.
572 (run_script_in_postinstall): Remove.
573 (RunFindVisitor): Trivial Visitor, runs each found script.
574 (do_postinstall): Use new find syntax.
576 2002-05-14 Christopher Faylor <cgf@redhat.com>
578 * ini.cc (find_routine): Don't clear buffer it it's NULL.
580 2002-05-14 Christopher Faylor <cgf@redhat.com>
582 * filemanip.h (trail): Declare.
583 * filemanip.cc (trail): New function.
584 (find_tar_ext): Use trail() instead of strstr().
585 * fromcwd.cc (check_ini): Ditto.
586 * ini.cc (find_routine): Ditto. Don't tack local_dir to path since it
587 should now be fully qualified. Set ini_filename. Reset error_buf and
588 error_count for any subsequent ini file parsing.
589 (ini_filename): New static variable for parse error reporting.
590 (yyerror): Use full path of setup.ini in error message. Subtract one
591 from line number if at bol.
592 * find.cc (found_part): Eliminate.
593 (find_sub): Call for_each with full path found rather than just file
595 (find): Don't calculate found_part.
596 * inilex.l (ini_init): Flush input buffer and reset line number.
597 (yybol): New function. Exports YY_AT_BOL.
598 * iniparse.y: Increase stack depth to allow more tokens to be processed.
599 (yyparse): Remove newline from error condition to allow subsequent
600 per-line error processing to proceed normally.
602 2002-05-14 Christopher Faylor <cgf@redhat.com>
604 * find.cc (find_sub): Be more defensive in preserving trailing parts of
605 components when doing recursive directory searches or calling user
607 * ini.cc (find_routine): Don't assume that any path name with
608 "setup.ini" in it is actually a setup.ini file. Only honor trailing
609 components. Copy path argument to temporary storage when unescaping
610 to prevent nuking of argument.
612 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
614 * CONTRIBUTORS: New file.
616 2002-04-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
618 * choose.cc: Run indent.
619 (nextbutton): Remove static variable.
620 (default_trust): Remove use of nextbutton.
621 (set_view_mode): Ditto.
622 (create_listview): Add IDC_CHOOSE_PREV and IDC_CHOOSE_NEXT to ta[] so
623 rbset() sets the prev/next/curr radio buttons properly.
624 (dialog_cmd): Delete function.
625 (dialog_proc): Delete function. Move WM_INITDIALOG functionality to
627 (do_choose): Delete function. Move pre-DialogBox() code to
628 ChooserPage::OnInit(), post-DialogBox() code to ChooserPage::OnNext.
629 (WM_APP_START_CHOOSE): Remove define.
630 (WM_APP_CHOOSE_IS_FINISHED): Remove define.
631 (do_choose_thread): Delete function.
632 (ChooserPage::OnActivate): Delete method.
633 (ChooserPage::OnMessageApp): Delete method.
634 (ChooserPage::OnInit): New method.
635 (ChooserPage::OnNext): New method.
636 (ChooserPage::OnBack): New method.
637 (ChooserPage::OnMessageCmd): New method.
638 * choose.h: Run indent.
639 (ChooserPage::OnMessageApp): Delete declaration.
640 (ChooserPage::OnActivate): Ditto.
641 (ChooserPage::OnMessageCmd): New declaration.
642 (ChooserPage::OnInit): Ditto.
643 (ChooserPage::OnNext): Ditto.
644 (ChooserPage::OnBack): Ditto.
645 * desktop.cc (DesktopSetupPage::OnBack): Replace use of IDD_CHOOSER
647 * fromcwd.cc (do_fromcwd): Replace use of IDD_CHOOSER with IDD_CHOOSE.
648 * ini.cc (do_ini_thread): Replace use of IDD_CHOOSER with IDD_CHOOSE.
649 * res.rc (IDD_CHOOSE): Remove dialog template.
650 (IDD_CHOOSER): Alter dialog template to fit wizard size and format.
652 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
654 * LogFile.cc (endLog): Work around an apparent libg++-3 bug causing
655 corrupt log file entries.
656 * geturl.cc: Convert to the new LogSingleton logging.
658 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
660 * ini.cc (do_remote_ini): Use setup.bz2 if it exists in preference to
663 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
665 * geturl.h: Declare getUrlToStream.
666 * geturl.cc (getUrlToStream): New function.
667 (get_url_to_membuf): Refactor to use getUrlToStream.
669 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
671 * Makefile.am: Add a release target to automate some of the routine
673 * Makefile.in: Regenerate.
675 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
677 * choose.cc (scan_downloaded_files): On local installs remove all
678 mirror sites if no cached copy of a package is found.
680 2002-05-10 Robert Collins <rbtcollins@hotmail.com>
682 * Makefile.in: Regenerate.
683 * iniparse.y: Use left recursion, not right in the lines rule to
684 avoid stack overflows.
685 * README: Update TODO's.
686 * io_stream_file.cc: Native builds need to include sys/stat.h
688 2002-05-06 John Marshall <jmarshall@acm.org>
690 * site.cc (SitePage::OnMessageCmd): recalculate navigation
691 button activation when "Add" is pressed.
692 (SitePage::CheckControlsAndDisableAccordingly): tweak comment.
694 2002-05-07 Robert Collins <rbtcollins@hotmail.com>
696 * Makefile.am (inlint_SOURCES): Add conditional objects to inilint
697 depending on platform.
699 * configure.in: Set conditional MINGWTARGET if compiling against mingw
701 * Makefile.in: Regenerate.
703 * io_stream_file.cc: Only use win32 calls when building for mingw.
705 2002-05-05 Robert Collins <rbtcollins@hotmail.com>
707 * Makefile.am (noinst_PROGRAMS): Make inilint configurable.
708 * configure.in: Ditto.
709 Fix incorrect header checking syntax.
710 * aclocal.m4: Regenerate.
711 * configure: Regenerate.
712 * Makefile.in: Regenerate.
713 * io_stream.cc: Remove platform specific and provider specific code.
714 (io_stream::registerProvider): New method, registers a Url provider with
716 Make all methods consistently throw invalid_argument exceptions when
717 a provider that is requested is not present.
718 (findProvider): New private function, finds a provider.
719 * io_stream.h: Declare io_stream::registerProvider.
720 * io_stream_cygfile.cc: Create a Provider class to register with
722 * io_stream_file.cc: Ditto.
723 * archive.cc: Remove unneeded includes.
724 * archive_tar.cc: Remove unneeded includes.
725 * archive_tar.h: Add required include.
726 * archive_tar_file.cc: Remove unneded includes.
727 * choose.cc: Remove unneeded includes:
729 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
731 * io_stream.cc: Use the new log interface thruout.
733 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
735 * log.cc (log): Reimplement via LogSingleton.
737 (exit_setup): Remove.
738 * log.h (log_save): Remove.
739 (exit_setup): Remove.
740 * LogSingleton.cc: New file.
741 * LogSingleton.h: New file.
742 * LogFile.cc: New file.
743 * LogFile.h: New file.
744 * Makefile.am (inilint_SOURCES): Add the new log interface.
745 (setup_SOURCES): Add the new log interface and the concrete File
747 * Makefile.in: Regenerate.
748 * archive.cc: Use the new log interface thruout.
749 * archive_tar.cc: Ditto.
751 * dialog.cc (fatal): Use the new log interface.
752 * ini.cc (do_ini_thread): Use the log interface to exit.
753 * isntall.cc (do_install_thread): Ditto.
754 * netio.cc (auth_cmd): Ditto.
755 * msg.cc (fatal): Ditto.
756 * localdir.cc (save_local_dir): Save to different files depending on
757 the mode, and if a root dir exists.
759 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
761 * IniDBBuilder.cc: New file.
762 * IniDBBuilder.h: New file.
763 * IniDBBuilderPackage.cc: New file.
764 * IniDBBuilderPackage.h: New file.
765 * PackageTrust.h: New file.
766 * IniState.h: Remove, wasn't thought out well enough.
767 * Makefile.am (inilint_SOURCES): Add more requirements.
768 (setup_SOURCES): Add new Builder base and concrete classes.
769 * Makefile.in: Regenerate.
770 * String++.cc (String::String): Implement int contructor.
771 * String++.h (String): Declare int constructor.
772 * archive_tar.cc (archive_tar::next_file_name): Return String() when
774 * archive_tar.h (archive_tar_file): Remove get_next_filename method,
776 * ini.cc: Replace IniState wuth IniDBBuilderPacakge.
777 (find_routine): Use new IniDBBuilder to configure the parser.
778 (do_local_ini): Ditto.
779 (do_remote_ini): Ditto.
780 * ini.h: Use IniDBBuilder to initialise parsing.
781 * inilex.l (MD5): Parse the MD5 string correctly, we had the nibbles
783 (ini_init): Use an IniDBBuilder rather than static variables.
784 * iniparse.y: Hand off all the object creation to a builder, rather
785 than hardcoding the behaviour. This allows run-time configured
787 * io_stream_cygfile.h (io_stream_cygfile): Remove get_next_filename
788 method, it's not needed.
789 * io_stream_file.h (io_stream_file): Ditto.
790 * mount.cc (cygpath): Return String() for missing mounts.
791 * package_meta.cc (packagemeta::SDesc): Return String() for blank
793 * package_meta.h (trusts): Remove - replaced by PackageTrust.h.
794 (packagemeta::packagemeta): Fix incorrect syntax in String constructor
796 * cygpackage.cc (cygpackage::cygpackage): Fix incorrect syntax in
797 String constructor usage.
798 * site.h (site_list_type): Ditto.
800 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
802 * String++.h: Declare a << operator that accepts String objects.
803 * String++.cc: We need iostream for..
804 (operator <<): this. Provide a << operator that accepts String objects.
805 * ini.cc (yyerror): Remove the "C" classifier - it's not needed.
806 Change from vargs to a String parameter.
807 * inilintmail.cc: Remove the gui related headers.
808 (yyerror): Implement this for parsing.
809 * iniparse.y: Use the new yyerror syntax.
811 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
813 * Makefile.am: Add IniState.h.
814 * Makefile.in: Regenerate.
815 * IniState.h: New file.
816 * choose.cc: Don't include ini.h - it's not needed.
817 * configure: Regenerate.
818 * desktop.cc: Don't include ini.h - it's not needed.
819 * download.cc: Ditto.
821 * ini.cc: Use IniState.h to track each parsing calling.
822 (find_routine): Ditto.
823 (do_remote_ini): Ditto.
824 (do_ini_thread): Ditto.
825 * ini.h (ini_init): Adjust parameters to include state object.
826 * inilex.l: Declare parser state variable.
827 (ini_init): Adjust parameters to include state object.
828 * iniparse.y: Remove obsolete setup_timestamp and setup_version
830 (setup_header): Use new state variable to track time and version.
831 (add_correct_version): Ditto.
832 * install.cc: Don't include ini.h - it's not needed.
834 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
836 * nio-files.cc (NetIO): Use io_stream syntax for get_file_size.
837 * io_stream_file.cc: Don't include filemanip.h.
838 (io_stream_file::get_size): Implement here to remove filemanip
840 * io_stream_cygfile.cc: Don't include filemanip.h.
841 (io_stream_cygfile::get_size): Implement here to remove filemanip
843 Implement a stat based version for when win32 is not available.
844 * filemanip.h (get_file_size): Return size_t - it's more appropriate.
845 * filemanip.cc: Don't include win32.h - be platform independent.
846 Include strings.h and io_stream.h as part of that.
847 (get_file_size): Leverage io_streams and remove win32 implementation.
848 * download.cc (check_for_cached): Use io_stream syntax for
850 (download_one): Ditto.
852 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
854 * configure.in: Correct a typo in last change.
855 * configure: Regenerate.
856 * Makefile.in: Regenerate.
858 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
860 * configure.in: Check for string.h and string.
861 * configure: Regenerate.
862 * Makefile.in: Regenerate.
864 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
866 * res.rc (IDD_SPLASH): Remove white box.
868 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
870 Oops! forgot to list these in the last checkin.
871 * inilintmain.cc: New file.
872 * md5.h: New file - imported md5 source, BSD style licence.
873 * md5.cc: New file - imported md5 source, BSD style licence.
874 * Exception.cc: New file.
875 * Exception.h: New file.
876 * MD5++.cc: New file.
879 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
881 * Makefile.am (AM_CFLAGS): Remove -mwindows, it's a linker flag.
882 Remove -fno-rtti, we need it for exceptions.
883 (AM_CXXFLAGS): Ditto.
884 (WARNONLY_CFLAGS): Ditto.
885 (EXTRA_PROGRAMS): Add with initial linter sources - not functional yet.
886 (setup_LDFLAGS): Add and set to -mwindows.
887 (setup_SOURCES): Add new sources.
888 * Makefile.in: Regenerate.
889 * README: Update TODO.
890 * choose.cc (scan_downloaded_files): Use ini information if it's
892 * configure: Regenerate.
893 * download.cc (check_for_cached): Make reusable from elsewhere.
894 Throw exceptions on errors (as opposed to failures).
895 Check MD5 sum when it's known.
896 (download_one): Never force a download.
897 Handle corrupt package exceptions.
898 * ini.cc (find_routine): Reverse escape the URL to correctly identify
900 * inilex.l (MD5): Provide a parsing rule (note: lowercase is required).
901 * iniparse.y: Allow calculation of MD5 sums, and allow src only
903 (process_src): New helper function.
904 * isntall.cc (install_one_source): Check MD5 sums when possible.
905 Throw exceptions on errors.
906 (do_install_thread): Handle exceptions for installation calls.
907 * package_source.h: Store MD5 information.
908 * propsheet.cc (PropSheet::Create): Add a useful comment.
909 * res.rc (IDS_INSTALL_ERROR): Define.
910 (IDS_CORRUPT_PACKAGE): Define.
911 * resource.h (IDS_INSTALL_ERROR): Define.
912 (IDS_CORRUPT_PACKAGE): Define.
913 * rfc1738.cc (rfc1738_unescape_part): Implement.
914 * rfc1738.h (rfc1738_unescape_part): Declare.
916 2002-04-29 Robert Collins <rbtcollins@hotmail.com>
918 * Makefile.am: Remove dependecy rules that automake emits.
919 Correct badly copied dependency info for manually compiled files.
920 (setup_SOURCES): Add all used headers.
921 (EXTRA_DIST): Include non compilate but required sources.
922 (setup_LDADD): Remove mingw32, it is autodetected.
923 * Makefile.in: Regenerate.
924 * String++.h: sys/types is a system header.
925 * choose.cc (do_choose_thread): Make into a Win32 thread routine.
927 (ChooserPage::OnMessageApp): Use Win32 threads. (_beginthread is not
929 * configure: Regenerate.
930 * configure.in: Check for mingw32/cygwin specific headers and libraries.
931 * cygpackage.h: Include the win32.h header to get correct macro
932 definitions in all situations.
933 * download.cc (do_download_reflector): Make into a Win32 thread routine.
935 (do_download): Use Win32 threads.
938 * (WinMain): Adjust to build valid command line using application
939 under both mingw32 and cygwin.
940 * mount.cc (set)cygdrive_flags): Create new system flags if the
941 user requests system and the value does not exist.
942 * nio-http.cc: Define a _strnicmp for cygwin.
943 * package_db.cc: Include <errno.h> if it exists.
944 * site.cc (do_download_site_info_thread): Make into a Win32 thread
947 (do_download_site-Info): Use Win32 threads.
948 * state.cc: Explicity declare variables to avoid header conflicts
949 caused by '#define extern" on cygwin.
950 * win32.h: Include <alloca.h> if it exists.
951 (_MAX_PATH): Define as MAX_PATH when not defined by windows.h.
952 (_access): Define as access if not defined by windows.h.
954 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
956 * compress_gz.cc (compress_gz::error): EOF is not an error condition.
958 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
960 * Makefile.am: Add libgetopt++ to the subdirs list.
961 Search the libgetopt++ header directory.
962 Link against libgetopt++.la.
963 (setup_SOURCES): Remove GetOption.cc and getopt.c and Option.cc.
964 (setup_LDADD): Explicitly include res.o.
965 * Makefile.in: Regenerate.
966 * aclocal.m4: Regenerate.
967 * bootstrap.sh: Call libtoolize.
968 * configure: Regenerate.
969 * configure.in: Add libtool support and configure libgetopt++.
970 * desktop.cc (NoShortcutsOption): Turn into a BoolOption.
971 (DesktopSetupPage::OnInit): Use the simpler syntax.
972 * desktop.h: Remove dependency on Option.h, and remove NoShortcustOption
974 * main.cc: Include getopt++/GetOption.h.
975 (main): Use simpler syntax.
979 * GetOption.h: Remove.
980 * GetOption.cc: Remove.
984 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
986 * Makefile.am: Add zlib and bz2lib to SUBDIRS.
988 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
990 * aclocal.m4: New file, cached macros.
991 * bootstrap.sh: New file, calls required autotools in appropriate
993 * Makefile.am: New file, input Makefile for automake.
994 * Makefile,in: Now a generated file - regenerate.
995 * configure: Regenerate.
996 * configure.in: Add automake support.
997 * inilex.l: Change VERSION to PACKAGEVERSION to avoid a collision with
998 automake's VERSION define.
1001 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1003 * cdefs.h: New file, imported to allow getopt.c to build without
1005 * getopt.h: New file, imported to allow building without cygwin headers.
1007 * bz2lib: New directory, contains copy of bz2lib.
1008 * cfgaux: New directory, contains autotool helper scripts.
1009 * Makefile,in: Adjust library and target definitions for building
1010 outside the sourceware tree.
1011 * compress_bz.h: Use new bz2lib header location.
1012 * mount.cc: Import key defines and enums to be independent of cygwin
1014 * configure.in: Update to autoconf 2.53, and to be sourceware
1016 * configure: Regenerate.
1018 2002-04-12 Robert Collins <rbtcollins@hotmail.com>
1020 * mklink2.cc (make_link_2): Tweak to work with current w32api
1023 2002-04-10 Pavel Tsekov <ptsekov@gmx.net>
1025 * version.cc (canonicalize_version): Fix a call delete[]
1026 to delete the allocated address.
1028 2002-03-29 Robert Collins <rbtcollins@hotmail.com>
1030 * PickView.cc (PickView::set_headers): Set last_col correctly. Thanks
1031 to Ton van Overbeek for locating the bug area.
1033 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
1035 * PickView.cc (PickView::insert_pkg): Be more generic with
1037 (PickView::insert_category): Ditto.
1038 (PickView::~PickView): Create.
1039 * PickView.h (PickView::~PickView): Declare.
1041 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
1043 * Makefile.in (OBJS): Add new commandline objects.
1044 * desktop.cc (NoShortCutsOption): New option code.
1045 (DesktopSetupPage::OnInit): Check whether to skip shortcuts.
1046 * desktop.h (NoShortCutsOption): New concrete command line option class.
1047 * main.cc (WinMain): Process command line options.
1048 * GetOption.h: New file, singleton command line class.
1049 * GetOption.cc: New file, implementation of the above.
1050 * Option.h : New file, abstract option for GetOption.
1051 * Option.cc: New file, implement constructor and destructor.
1053 2002-03-26 Pavel Tsekov <ptsekov@gmx.net>
1055 * mkdir.cc (mkdir_p): Stop processing if the path is exhausted.
1057 2002-03-26 Ton van Overbeek <tvoverbe@cistron.nl>
1059 * PickPackageLine.cc (PickPackageline::paint): Adjust clipping rectangle
1060 to textheight, so large fonts work.
1062 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1064 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Don't translate
1067 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1069 * io_stream_cygfile.cc (cwd): New static for cwd storage.
1070 (io_stream_cygfile::normalise): New method.
1071 (io_stream_cygfile::io_stream_cygfile): Use it.
1072 (io_stream_cygfile::exists): Ditto.
1073 (io_stream_cygfile::remove): Ditto.
1074 (io_stream_cygfile::mklink): And again.
1075 (cygmkdir_p): Yes, again.
1076 (io_stream_cygfile::move): And once more.
1077 * io_stream_cygfile.h (io_stream_cygfile::normalise): Declare.
1078 (io_stream_cygfile::cwd): Ditto.
1080 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1082 * package_meta.cc (package_meta::~package_meta): Remove duplicate.
1083 (CategoryPackage::~CategoryPackage): Ditto. (Thanks to Ton van
1084 Overbeek for the report).
1085 * mklink2.cc: Moved from mklink2.c to avoid 'not a prototype error'.
1086 Make g++ compatible.
1087 * mklink2.c: Remove.
1088 * site.cc (site_list_type::init): Delete the correct memory addres.
1089 Thanks to Pavel Tsekov for tracking this down.
1091 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
1093 * win32.h: Only define alloca if it's not already.
1095 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
1097 * package_meta.h (packamgemeta::trustp): Make 'test' choice leave installed
1099 * README: Update with latest requests.
1100 * Various: MTC fixes from setup200202 branch.
1102 2002-03-19 Christopher Faylor <cgf@redhat.com>
1104 * Makefile.in (setup_version.c): Add back magic which allows detection
1105 of setup.exe version number.
1107 2002-03-17 Robert Collins <rbtcollins@hotmail.com>
1109 * * PickPackageLine.cc (PickPackageLine::paint): Fix incorrect clip region
1110 calculation on win9x systems.
1112 2002-03-16 Robert Collins <rbtcollins@hotmail.com>
1114 * install.cc (install_one_source): Write the correct length of a string to the
1115 lst file (Thanks to Pavel Tsekov for reporting the bug).
1117 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1119 * choose.cc (list_click): Always refresh the entire chooser, as our
1120 package state change mechanism is broken with the new improved list classes.
1122 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1124 * desktop.cc (make_passwd_group): Check for .lnk suffix on /etc/passwd and
1127 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1129 * PickPackageLine.cc (PickPackageLine::DrawCheck): New method factored out from
1131 (PickPackageLine::paint): Use DrawCheck to draw the src tick box, and the new
1133 (PickPackageLine::click): Handle the new bin tickbox.
1134 * PickPackageLine.h (PickPackageLine::DrawCheck): Declare this.
1135 * PickView.cc (pkg_headers): Add a Bin? column.
1136 (cat_headers): Ditto.
1137 (PickView::set_headers): Ditto.
1138 (PickView::init_headers): Ditto.
1139 * PickView.h (PickView): Ditto.
1140 * choose.cc (list_click): Use the new name for src_col to set the clip rectangle.
1142 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1144 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Fix up Robert's
1147 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1149 * desktop.cc (make_link): Add "file://" prefix to io_stream::mkpath_p()
1151 (make_passwd_group): Ditto.
1152 * localdir.cc (save_local_dir): Ditto.
1153 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Wrap long lines.
1154 Add "cygfile://" prefix to io_stream::open() calls.
1156 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1158 * log.cc (log_save): Fix creating /var/log.
1159 * packate_meta.cc (standard_dirs): Remove duplicate '/''s.
1161 2002-02-24 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1163 * res.rc (STRINGTABLE): Add IDS_CYGWIN_SETUP and
1164 IDS_CYGWIN_SETUP_WITH_PROGRESS strings.
1165 * resource.h: Add IDS_CYGWIN_SETUP and
1166 IDS_CYGWIN_SETUP_WITH_PROGRESS IDs.
1168 * splash.cc (OnInit): Qualify SetWindowText() call with global scope
1169 operator (::SetWindowText()).
1171 * threebar.cc: Run indent.
1172 (cistring.h): Add include.
1173 (SetText1, SetText2, SetText3): Qualify SetWindowText() call with
1174 global scope operator.
1175 (SetBar2): Add logic for writing percent complete into window title.
1177 * window.h: Run indent.
1178 (SetWindowText): New function.
1179 (String): Add forward declaration.
1180 * window.cc: Run indent.
1181 (String++.h): Add include.
1182 (SetWindowText): New function.
1184 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1186 * README: Update TODO list.
1187 * install.cc (install_one): Fix src package location.
1188 (do_install_thread): Fix creating directories.
1190 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1192 * choose.cc: Include cygpackage.h for scan2 use.
1193 (set_existence): Ignore setup.ini mirrors when installing from cwd.
1194 (scan2): Process any valid file.
1195 Add cache entries when a file matching a setup.ini listed version is found.
1196 * filemanip.cc (parse_filename): Remove pkgtar - not used anywhere else.
1197 * filemanip.h (filemanip::pkgtar): Remove.
1198 * package_meta.cc (CategoryPackage::~CategoryPackage): New method.
1199 (packagemeta::~packagemeta): Move from package_meta.h
1200 Remove and delete all version and category information.
1201 * package_meta.h (CategoryPackage): Create a destructor.
1202 (packagemeta::~packagemeta): Move to .cc file.
1204 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1206 * install.cc (install_one_source): Make NULL cached package names cause
1209 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1211 * desktop.cc (make_passwd_group): Don't create passwd-grp.bat
1214 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1216 * log.cc (log_save): Put "\n" at end of log lines instead of "'".
1218 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1220 * mount.cc (create_mount): Avoid a const char*->char* warning.
1221 (read_mounts): Ditto.
1223 2002-02-05 Jason Tishler <jason@tishler.net>
1225 * download.cc (do_download_thread): Fix off-by-one error.
1227 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1229 * configure.in (CXXFLAGS): Substitute at configure time, not runtime.
1230 * configure (CXXFLAGS): Regenerate.
1231 * Makefile.in (iniparse.o): Build via default rules - no errors now.
1232 * README: TODO list updates.
1234 2002-02-19 Michael A Chase <mchase@ix.netcom.com>
1236 * String++.cc (String::concat):: Remove.
1237 (String::vconcat):: Ditto.
1238 * String++.h (String::concat):: Remove.
1239 (String::vconcat):: Ditto.
1240 * archive_tar.cc: Don't include concat.h.
1241 * archive_tar_file.cc: Don't include concat.h.
1242 * compress_bz.cc (compress_bz::peek): Don't log unneeded messages.
1243 (compress_bz::seek): Ditto.
1244 (compress_bz::~compress_bz): Ditto.
1245 * compress_gz.cc (compress_gz::peek): Ditto.
1246 (compress_gz::error): Ditto.
1247 (compress_gz::~compress_gz): Ditto.
1248 * concat.cc (vconcat): Remove.
1250 * concat.h (vconcat): Remove.
1252 * desktop.cc (desktop_icon): Use new cygpath.
1253 (make_etc_profile): Ditto.
1255 (make_passwd_group): Ditto.
1257 (check_desktop): Remove concat use.
1258 (check_start_menu): Ditto.
1259 * download.cc (download_one): Use new mkpath_p correctly.
1261 * fromcwd.cc: Don't include concat.h.
1262 * geturl.cc (get_url_to_membuf): Use String log() call.
1263 (get_url_to_file): Ditto.
1264 * install.cc: Don't include concat.h.
1265 (uninstall_one): Use LOG_PLAIN.
1266 (replace_one): Ditto.
1267 (install_one_source): Ditto.
1268 (install_one): More char to String conversion.
1269 (do_install_thread): Use new cygpath.
1270 Use new create_mount.
1271 * io_stream.cc (io_stream::move): Use new log().
1272 * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new cygpath.
1273 (io_stream_cygfile::exists): Ditto.
1274 (io_stream_cygfile::remove): Ditto.
1275 (io_stream_cygfile::mklink): Ditto.
1276 (io_stream_cygfile::write): Ditto.
1277 (cygmkdir_p): Ditto.
1278 (io_stream_cygfile::move): Ditto.
1279 * io_stream_file.cc: Don't include log.h.
1280 (io_stream_file::write): Don't log unneeded messages.
1281 * localdir.cc: Don't include concat.h.
1282 (LocalDirPage::OnNext): Use LOG_PLAIN.
1283 * log.cc: Don't include log.h.
1284 (exit_setup): Use new cygpath.
1285 * log.h (log_level): Add new level LOG_PLAIN.
1286 * main.cc (WinMain): Use new log().
1287 * mount.cc (SLASH_P): New macro from concat.h.
1288 (cygpath): Make String version globally visible.
1289 Remove varargs version.
1291 * msg.cc (mbox): Use LOG_PLAIN.
1292 * net.cc (NetPage::OnNext): Ditto.
1293 * nio-ftp.cc (ftp_line): Use new log().
1294 * nio-http.cc: Don't include log.h.
1295 (retry_get): Use alternative url variable.
1296 * package_db.cc: Don't include concat.h.
1297 (packagedb::flush): Don't use concat.
1298 * package_meta.cc: Don't include concat.h.
1299 (packagemeta::uninstall): Use new cygpath.
1300 * postinstall.cc (do_postinstall): Ditto.
1301 * root.cc (RootPage::OnNext): Use LOG_PLAIN.
1302 * script.cc: Don't include concat.h.
1303 (init_run_script): Use new cygpath.
1304 (run_script): More char * to String conversion.
1305 (try_run_script): Ditto.
1306 * site.cc: Don't include concat.h.
1307 (SitePage::OnNext): Use LOG_PLAIN.
1308 (SitePage::OnMessageCmd): Use new log().
1309 * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN.
1311 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1313 * Makefile.in (OBJS): Add new object.
1314 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the name.
1315 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
1316 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
1317 (PickLine::Pickline): Accept a String for the key.
1318 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to Strings.
1319 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is automatically
1321 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
1322 (PickView::init_header): Move category length checking out of the inner loop for
1324 Convert all char use to Strings.
1325 * PickView.h: Include the String++ header.
1326 (PickView::note_width): Update the prototype.
1327 * String++.cc: New file, implements a reference counting string class.
1328 * String++.h: New file, declares a reference counting string class.
1329 * archive.cc: Include String++ instead of concat.
1330 (archive::extract_file): Convert char * usage to Strings.
1331 * archive.h: Inlude the String++ header.
1332 (archive::extract_file): Update prototype.
1333 (archive::next_file_name): Convert to a String.
1334 (archive::linktarget): Ditto.
1335 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
1336 (archive_tar::linktarget): Ditto.
1337 * arhive_tar.h: Update the copyright.
1338 Explicitly include the relevant headers.
1339 (tar_map_result_type): Convert to String usage.
1340 (archive_tar::next_file_name): Update prototype.
1341 (archive_tar::linktarget): Ditto.
1342 * category.cc (Category::Category): Update initialisers.
1343 Convert to String usage.
1344 (Categorycmp): Update to String usage.
1345 * category.h: Include the String++ header.
1346 (Category::Category): Update to String usage.
1347 (Category::name): Ditto.
1348 (Category::key): Ditto.
1349 * choose.cc: Remove concat.h, it's not needed.
1350 (scan2): Update to String usage.
1352 * cygpackage.cc: Update includes for use of String class.
1353 (cygpackage::cygpackage): Update for String usage.
1354 (cygpackage::set_canonical_version): Ditto.
1355 (cygpackage::destroy): Ditto.
1356 (cygpackage::getfirstfile): Ditto.
1357 (cygpackage::getnextfile): Ditto.
1358 (cygpackage::Name): Ditto.
1359 (cygpackage::Vendor_version): Ditto.
1360 (cygpackage::Package_version): Ditto.
1361 (cygpackage::Canonical_version): Ditto.
1362 (cygpackage::set_sdesc): Ditto.
1363 (cygpackage::set_ldesc): Ditto.
1364 * cygpackage.h: Include String++.h for parsing this file.
1365 (cygpackage::cygpackage): Update for String usage.
1366 (cygpackage::set_canonical_version): Ditto.
1367 (cygpackage::destroy): Ditto.
1368 (cygpackage::getfirstfile): Ditto.
1369 (cygpackage::getnextfile): Ditto.
1370 (cygpackage::Name): Ditto.
1371 (cygpackage::Vendor_version): Ditto.
1372 (cygpackage::Package_version): Ditto.
1373 (cygpackage::Canonical_version): Ditto.
1374 (cygpackage::set_sdesc): Ditto.
1375 (cygpackage::set_ldesc): Ditto.
1376 (cygpackage::name): Ditto.
1377 (cygpackage::vendor): Ditto.
1378 (cygpackage::packagev): Ditto.
1379 (cygpackage::canonical): Ditto.
1380 (cygpackage::fn): Ditto.
1381 (cygpackage::sdesc): Ditto.
1382 (cygpackage::ldesc): Ditto.
1383 * desktop.cc: Update includes for use of String class.
1384 (batname): Update for String usage.
1387 (start)menu): Ditto.
1388 (desktop_icon): Ditto.
1389 (make_cygwin_bat): Ditto.
1390 (make_etc_profile): Ditto.
1392 (make_passwd_group): Ditto.
1394 (check_desktop): Ditto.
1395 (check_startmenu): Ditto.
1396 * dialog.cc (eget): Update for String usage.
1397 (egetString): New function.
1398 (eset): New variant for Strings.
1399 * dialog.h: Include String++.h for parsing this file.
1400 (egetString): New function.
1401 (eset): New variant for Strings.
1402 * diskfull.cc (diskfull): Update for String usage.
1403 * diskfull.h: Include String++.h for parsing this file.
1404 (diskfull): Update for String usage.
1405 * download.cc: Update includes for use of String class.
1406 (check_for_cached): Update for String usage.
1407 (download_one): Ditto.
1408 * filemanip.cc (get_file_size): Ditto.
1410 (parse_filename): Ditto.
1412 * filemanip.h: Include String++.h for parsing this file.
1413 (fileparse): Update for String usage.
1415 (parse_filename): Ditto.
1416 Don't consider '_' to be a separator.
1418 * find.cc: Update includes for use of String class.
1419 (find_sub): Make more flexible.
1420 (find): Update for String usage.
1421 * find.h (find): Use Strings.
1422 * fromcwd.cc (found_file): Update for String usage.
1424 (init_dialog): Ditto.
1425 (get_url_to_membuf): Ditto.
1426 (get_url_to_string): Ditto.
1427 (get_url_to_file): Ditto.
1429 (get_url_to_membuf): Ditto.
1430 (get_url_to_string): Ditto.
1431 (get_url_to_file): Ditto.
1433 (add_subdirs): Ditto.
1434 * ini.cc: Update includes for String usage.
1435 (find_routine): Update for String usage.
1436 (do_remote_ini): Ditto.
1437 (do_ini_thread): Ditto.
1438 * ini.h (ini_init): Ditto.
1439 * inilex.l: Update includes for String usage.
1440 (ini_init): Update for String usage.
1441 * iniparse.y: Ditto.
1442 (add_correct_version): Ditto.
1443 * install.cc: Update includes for String usage.
1444 (install_one_source): Update for String usage.
1445 (uninstall_one): Ditto.
1446 (replace_one): Ditto.
1447 (install_one_source): Ditto.
1448 (do_install_thread): Ditto.
1449 * io_stream.cc: Update includes for String usage.
1450 (io_stream::open): Update for String usage.
1451 (io_stream::mkpath_p): Ditto.
1452 (io_stream::remove): Ditto.
1453 (io_stream::mklink): Ditto.
1454 (io_stream::move_copy): Ditto.
1455 (io_stream::move): Ditto.
1456 (io_stream::exists): Ditto.
1457 * io_stream.h: Update includes to allow correct parsing.
1458 (io_stream::open): Update for String usage.
1459 (io_stream::mkpath_p): Ditto.
1460 (io_stream::remove): Ditto.
1461 (io_stream::mklink): Ditto.
1462 (io_stream::move_copy): Ditto.
1463 (io_stream::move): Ditto.
1464 (io_stream::exists): Ditto.
1465 * io_stream_cygfile.cc: Update includes for String usage.
1466 (get_root_dir_now): Update for String usage.
1467 (io_stream_cygfile::io_stream_cygfile): Ditto.
1468 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1469 (io_stream_cygfile::exists): Ditto.
1470 (io_stream_cygfile::remove): Ditto.
1471 (io_stream_cygfile::mklink): Ditto.
1472 (cygmkdir_p): Ditto.
1473 (io_stream_cygfile::set_mtime): Ditto.
1474 (io_stream_cygfile::move): Ditto.
1475 (io_stream_cygfile::get_size): Ditto.
1476 * io_stream_cygfile.h: Update includes for String usage.
1477 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
1478 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1479 (io_stream_cygfile::exists): Ditto.
1480 (io_stream_cygfile::remove): Ditto.
1481 (io_stream_cygfile::mklink): Ditto.
1482 (cygmkdir_p): Ditto.
1483 (io_stream_cygfile::set_mtime): Ditto.
1484 (io_stream_cygfile::move): Ditto.
1485 (io_stream_cygfile::get_size): Ditto.
1486 (io_stream_cygfile::fname): Ditto.
1487 (io_stream_cygfile::lmode): Ditto.
1488 * io_stream_file.cc: Update includes for String usage.
1489 (io_stream_file::io_stream_file): Update for String usage.
1490 (io_stream_file::~io_stream_file): Ditto.
1491 (io_stream_file::exists): Ditto.
1492 (io_stream_file::remove): Ditto.
1493 (io_stream_file::mklink): Ditto.
1494 (io_stream_file::set_mtime): Ditto.
1495 (io_stream_file::move): Ditto.
1496 (io_stream_file::get_size): Ditto.
1497 * io_stream_file.h: Update includes for String usage.
1498 * io_stream_file.cc: Update includes for String usage.
1499 (io_stream_file::io_stream_file): Update for String usage.
1500 (io_stream_file::~io_stream_file): Ditto.
1501 (io_stream_file::exists): Ditto.
1502 (io_stream_file::remove): Ditto.
1503 (io_stream_file::mklink): Ditto.
1504 (io_stream_file::set_mtime): Ditto.
1505 (io_stream_file::move): Ditto.
1506 (io_stream_file::get_size): Ditto.
1507 (io_stream_file::fname): Ditto.
1508 (io_stream_file::lmode): Ditto.
1509 * localdir.cc: Update includes for String usage.
1510 (save_local_dir): Update for String usage.
1511 (check_if_enable_next): Ditto.
1512 (load_dialog): Ditto.
1514 (LocalDirPage::OnInit): Ditto.
1515 (LocalDirPage::OnNext): Ditto.
1516 * log.cc: Update includes for String usage.
1517 (struct LogEnt): Update for String usage.
1520 (exit_setup): Ditto.
1521 * log.h: Update includes for String usage.
1522 (log_level): Update for String usage.
1525 * main.cc (WinMain): Update for String usage.
1526 * mklink2.c (make_link_2): Update for String usage.
1527 * mklink2.h (make_link_2): Update for String usage.
1528 * mount.cc: Update includes for String usage.
1529 (mount_table): Update for String usage.
1531 (create_mount): Ditto.
1533 (remove_mount): Ditto.
1534 (read_mounts): Ditto.
1535 (set_root_dir): Ditto.
1536 (get_root_dir): Ditto.
1537 (path_prefix_p): Ditto.
1539 * mount.h: Update includes for String usage.
1540 (create_mount): Update for String usage.
1541 (remove_mount): Ditto.
1543 (set_root_dir): Ditto.
1544 (get_root_dir): Ditto.
1545 * msg.cc (mbox): Ditto.
1546 * net.cc (NetPage::OnNext): Ditto.
1547 * package_db.cc (packagedb::flush): Ditto.
1548 (packagedb::packages): Ditto.
1549 (packagedb::categories): Ditto.
1550 * package_db.h: Update includes for String usage.
1551 (packagedb::packages): Update for String usage.
1552 (packagedb::categories): Ditto.
1553 * package_meta.cc: Update includes for String usage.
1554 (hash::add_subdirs): Update for String usage.
1555 (packagemeta::uninstall): Ditto.
1556 (packagemeta::SDesc): Ditto.
1557 (packagemeta::action_caption): Ditto.
1558 * package_meta.h: Update includes for String usage.
1559 (packagemeta::packagemeta): Update for String usage.
1560 (packagemeta::~packagemeta): Ditto.
1561 (packagemeta::uninstall): Ditto.
1562 (packagemeta::SDesc): Ditto.
1563 (packagemeta::action_caption): Ditto.
1564 (package_source.cc site::site): Ditto.
1565 (packagesource::set_canonical): Ditto.
1566 (packagesource::set_cached): Ditto.
1567 * package_source.h: Update includes for String usage.
1568 (site::site): Update for String usage.
1569 (packagesource::set_canonical): Ditto.
1570 (packagesource::set_cached): Ditto.
1571 (packagesource::packagesource): Ditto.
1572 (packagesource::sites): Ditto.
1573 (packagesource::cached): Ditto.
1574 * package_version.h: Update includes for String usage.
1575 (Dependency): Update for String usage.
1576 (packageversion): Ditto.
1577 * postinstall.cc: Update includes for String usage.
1578 (do_postinstall): Update for String usage.
1579 * res.rc (IDD_LOCAL_DIR): Fix typo again!
1580 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
1581 * rfc1738.h: Update includes for String usage.
1582 (rfc1738_escape_part): Update for String usage.
1583 * root.cc: Update includes for String usage.
1584 (check_if_enable_next): Update for String usage.
1585 (save_dialog): Ditto.
1587 (directory_is_absolute): Ditto.
1588 (directory_is_rootdir): Ditto.
1589 (directory_has_spaces): Ditto.
1590 (RootPage::OnInit): Ditto.
1591 (RootPage::OnNext): Ditto.
1592 * script.cc: Update includes for String usage.
1593 (init_run_script): Update for String usage.
1595 (run_script): Ditto.
1596 (try_run_script): Ditto.
1597 * script.h: Update includes for String usage.
1598 (run_script): Update for String usage.
1599 (try_run_script): Ditto.
1600 * site.cc site_list): Ditto.
1601 (all_site_list): Ditto.
1602 (other_url): Eliminate.
1603 (site_list_type::init): Update for String usage.
1604 (site_list_type::site_list_type): Ditto.
1605 (get_site_list): Ditto.
1606 (get_saved_sites): Ditto.
1607 (do_download_site_info_thread): Ditto.
1608 (SitePage::OnNext): Ditto.
1609 (SitePage::OnActivate): Ditto.
1610 (SitePage::PopulateListBox): Ditto.
1611 (SitePage::OnMessageCmd): Handle empty url's.
1612 * site.h: Update includes for String usage.
1613 (site_list_type::site_list_type): Update for String usage.
1614 (site_list_type::init): Ditto.
1615 (site_list_type::~site_list_type): Ditto.
1616 (site_list_type::url): Ditto.
1617 (site_list_type::displayed_url): Ditto.
1618 (site_list_type::key): Ditto.
1619 * source.cc (SourcePage::OnDeactivate): Ditto.
1620 * state.h: Update includes for String usage.
1621 (local_dir): Update for String usage.
1622 (trust_level): Remove.
1623 * version.cc: Update includes for String usage.
1624 (canonicalize_version): Update for String usage.
1625 * version.h: Update includes for String usage.
1626 (canonicalize_version): Update for String usage.
1628 2002-02-15 Christopher Faylor <cgf@redhat.com>
1630 * filemanip.c (parse_filename): Revert previous change.
1632 2002-02-14 Christopher Faylor <cgf@redhat.com>
1634 * filemanip.c (parse_filename): Don't treat '_' as a version number
1637 2002-01-29 Christopher Faylor <cgf@redhat.com>
1639 * configure: Regenerate.
1641 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1643 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
1644 <Hoeck@extern.lrz-muenchen.de>
1646 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1648 * README: Update Todo's.
1649 * list.h: Run indent.
1650 (list): New methods checksize and insert to reduce code duplication.
1651 (list::registerbykey): Use them.
1652 (list::registerbyobject): Ditto.
1653 (list::removebyindex): Copy each object individually - safe for non
1655 (list::checksize): Implement.
1656 (list::insert): Implement.
1658 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1660 * Makefile.in: Remove the dlmalloc object by default.
1661 * install.cc (do_install_thread): Remove the mallinfo call for 'working
1662 around' the crashing issue.
1663 * package_db.h: Include <string.h> - it's needed to parse this.
1664 * package_source.cc (site::site): Move here from the header file.
1665 * package_source.h (site): Stop the constructor being inlinable.
1667 2002-01-26 Robert Collins <rbtcollins@hotmail.com>
1669 * filemanip.cc (find_tar_ext): Add a descriptive comment.
1671 2002-01-25 Michael A Chase <mchase@ix.netcom.com>
1673 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
1674 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
1675 * install.cc (install_one_source): Add space between words in log()
1678 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1680 * log.cc (exit_setup): When saving to the download dir, explicity
1683 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1685 * archive.cc (extract_file): Separate out the prefix and the URL
1687 * archive.h (archive::extract_file): Ditto.
1688 * install.cc (install_one_source): Ditto. Use the new
1689 archive::extract_file syntax.
1690 (replace_one): Use the new syntax.
1691 (io_stream.cc): Add some log info for links.
1693 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1695 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
1696 (PickCategoryLine::paint): Use the new action method.
1697 (PickCategoryLine::click): Set the action for all children.
1698 (PickCategoryLine::set_action): New method.
1699 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
1700 (PickCategoryLine::current_default): Use packagemeta _actions class.
1701 * PickLine.h (PickLine::set_action): New abstract method that requires
1702 including package_meta.h.
1703 * PickPackageLine.cc (PickPackageLine::set_action): New method.
1704 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
1705 * list.h (getbykey): A const correctness fix.
1706 * package_meta.cc: Run indent.
1707 (packagemeta::Default_action): New const.
1708 (packagemeta::Install_action): Ditto.
1709 (packagemeta::Reinstall_action): Ditto.
1710 (packagemeta::Uninstall_action): Ditto.
1711 (packagemeta::_actions::caption): New method.
1712 (packagemeta::_actions::operator++): Ditto.
1713 (packagemeta::set_action): New overload.
1714 * package_meta.h (packagemeta::_actions): New class.
1715 (packagemeta::set_action): Declare this.
1717 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1719 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
1720 * choose.cc: Don't define alloca anymore, it's done in win32.h
1722 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1724 * PickPackageLine.cc: New file.
1725 * PickPackageLine.h: New file.
1726 * PickLine.cc: New file.
1727 * PickLine.h: New file.
1728 * PickCategoryLine.cc: New file.
1729 * PickCategoryLine.h: New file.
1730 * PickView.cc: New file.
1731 * PickView.h: New file.
1732 * Makefile.in: Add new objects to setup.exe.
1733 Backout -fno-exceptions option.
1734 * choose.cc: Include PickView.h.
1735 Remove view related defines and static variables.
1736 (_pkg_headers): Moved to PickView.cc.
1737 (_cat_headers): Ditto.
1738 (view::views::Unknown): Ditto.
1739 (view::views::PackageFull):
1740 (view::views::Package):
1741 (view::views::Category):
1742 (pkgtrustp): Moved to package_meta.cc.
1743 (add_required): Moved to package_meta.cc.
1744 (pick_category_line::empty): Moved to PickCategoryLine.cc
1745 (paint): Adjust for moved static variables.
1746 (view::scroll): Moved to PickView.cc.
1747 (list_vscroll): Adjust for moved static variables.
1748 (list_hscroll): Ditto.
1749 (list_click): Ditto.
1750 (note_width): Moved to PickView.cc.
1751 (view::view): Ditto.
1752 (view::set_view_mode): Ditto.
1753 (view::mode_caption): Ditto.
1754 (view::views::caption): Ditto.
1755 (view::set_headers): Ditto.
1756 (DoInsertItem): Ditto.
1757 (view::init_headers): Ditto.
1758 (view::insert_pkg): Ditto.
1759 (view::insert_category): Ditto.
1760 (view::clear_view): Ditto.
1761 (view::views::operator++): Ditto.
1762 (view::click): Ditto.
1763 (default_trust): Adjust for moved statics.
1764 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
1765 (pick_pkg_line::click): Ditto.
1766 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
1767 (pick_category_line::paint): Ditto.
1768 (pick_category_line::click): Ditto.
1769 (set_view_mode): Adjust for moved statics.
1770 (create_listview): Ditto.
1771 * choose.h: Remove Category and packagemeta forward defines - not needed.
1772 Don't include unneeded headers list and package_meta.
1773 (_header): Move to PickView.h.
1774 (pick_line): Move to PickLine.h.
1775 (pick_pkg_line): Move to PickPackageLine.h.
1776 (pick_category_line): Move to PickCategoryLine.h.
1777 (view): Move to PickView.h.
1778 * ini.h (trusts): Move to package_meta.h.
1779 * package_meta.h (trusts): New enum.
1780 (packagemeta::set_requirements): New helper method.
1781 (packagemeta::trustp): Ditto.
1783 2002-01-21 Christopher Faylor <cgf@redhat.com>
1785 * choose.h (view): Move forward declaration of views into public area
1786 or g++ v3 will complain.
1788 2002-01-21 Christopher Faylor <cgf@redhat.com>
1790 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
1791 * win32.h (alloca): Define as __builtin_alloca.
1792 * io_stream_memory.cc: Add include file.
1794 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
1796 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as destroyed.
1797 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
1798 * compress.cc (compress::~compress): Be less verbose.
1799 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
1800 Mark the stream as destroyed.
1801 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as destroyed.
1802 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not marked
1804 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
1805 stream as destroyed.
1806 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
1807 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
1809 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
1811 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
1812 (OBJS): Link in malloc objects.
1813 * category.cc (category): Use new char, not strdup.
1814 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
1815 (do_choose): Use new char, not malloc.
1816 * concat.cc (vconcat): Ditto.
1817 * cygpackage.cc (cygpackage): Use new char, not strdup.
1818 (set_canonical_version): Ditto.
1819 (cygpackage::destroy): Use delete[], not free.
1820 * desktop.cc (uexists): Ditto.
1821 * dialog.cc (egest): Use new char, not strdup.
1822 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
1823 * hash.cc (hash::hash): Use delete instead of free.
1824 (hash::add): Use new char, not strdup.
1825 * ini.cc (do_remote_ini): Use delete[] not free.
1826 * inilex.l: Use new char, not strdup.
1828 * iniparse.y: Ditto.
1829 Use a local package_db rather than a static one.
1830 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
1831 (do_install_thread): Call mallinfo to force a consistency check. Appears
1832 to fix a 'inuse' error in -DDEBUG builds.
1833 Use delete[] for strings.
1834 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new char,
1836 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
1837 (io_stream_cygfile::remove): Use new char, not strdup.
1838 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not strdup.
1839 (io_stream_file::io_stream_file): Use delete[], not free.
1840 (io_stream_file::remove): Use new char, not strdup.
1841 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
1842 * io_stream_memory.h (memblock): Use new char, not malloc.
1843 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
1844 * main.cc (WinMain): Use new char, not strdup.
1845 * mount.cc (find2): Use new char, not malloc.
1846 (read_mounts): Ditto.
1847 (cygpath): Use new char, not strdup.
1848 * netio.cc (NetIO::~NetIO): Use delete[], not free.
1849 (NetIO::set_url): Use new char, not strdup.
1850 (NetIO::get_ftp_auth): Use delete[], not free.
1851 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
1852 Use new char instead of strdup.
1853 * nio-http.cc (base64_encode): Use new char, not malloc.
1854 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
1855 * package_source.h (~ packagesource): Use delete[] instead of delete.
1856 * port.h (strdup): Deprecate the use of strdup.
1857 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
1858 * script.cc (init_run_script): Us delete[], not free.
1859 (run_script): Ditto.
1860 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
1861 (SimpleSocket::invalidate): Use delete[], not free.
1862 * site.cc (site_list_type::init): Use new char instead of strdup.
1863 * site.h (~site_list_type): Use delete[], not free.
1865 2002-01-20 Robert Collins <rbtcollins@hotmail.com>
1867 * Makefile.in (OBJS): Add win32.o - win32 support functions.
1868 * README: Update todos.
1869 * archive.cc (extract_file): Support a suffix for appending to extracted files.
1871 * choose.cc (set_view_mode): Use the new view::views class.
1872 (view::views::Unknown): New static for defaulting view::views variables.
1873 (view::views::PackageFull): New static for the current view.
1874 (view::views::Package): Ditto.
1875 (view::views::Category): Ditto.
1876 (topbucket::paint): Remove.
1877 (topbucket::empty): Rename to pick_category_line::empty.
1878 (topbucket::~topbucket): Remove.
1879 (paint): Use the new view::views class.
1880 Don't paint 'all' as a category when showing package categoies.
1881 (pick_category_line::actiontext): New method.
1882 (pick_category_line::paint): Make showing the category optional, and show the
1884 (pick_category_line::click): Make showing the category optional, and
1885 differentiate between the name being clicked, and the action description.
1886 (view::view): Use the new view::views class.
1887 (view::set_view_mode): Ditto.
1888 (view::mode_caption): Ditto.
1889 (view::views::caption): New method.
1890 (view::set_headers): Use the new view::views class.
1891 (view::clear_view): Ditto.
1892 (viewsplusplus): Replaced by
1893 (view::views::operator++): New operator.
1894 (set_view_mode): Use the new view::views class.
1895 (create_listview): Ditto.
1896 (dialog_cmd): Ditto.
1897 * choose.h (actions): Remove.
1899 (pick_line): Add a new convenience constructor.
1900 (top_bucket): Remove.
1901 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
1902 (view::views): New class.
1903 * ini.h: Don't include choose.h
1904 (is_download_action): Remove.
1905 (is_upgrade_action): Remove.
1906 (is_uninstall_action): Remove.
1907 (is_full_action): Remove.
1908 * install.cc (num_replacements): New static.
1909 (rebootneeded): Ditto.
1910 (replace_one): Handle upgrades separate from removal or new installs.
1911 (install_one_source): Handle in use files.
1912 (install_one): Don't repeat upgrades.
1913 (do_install_thread): Initialize new statics.
1914 Order actions as uninstall, replace, install.
1915 Warn about rebooting if needed.
1916 * res.rc (IDS_REBOOT_REQUIRED): New string.
1917 * resource.h (IDS_REBOOT_REQUIRED): Give value.
1918 * win32.h: Declare class Win32, and update copyright and intent message.
1919 * win32.cc: New file.
1921 2002-01-15 Corinna Vinschen <corinna@vinschen.de>
1923 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
1924 * package_meta.cc (packagemeta::uninstall): Check for additional
1925 Windows shortcut. Unset R/O file attribute before trying to delete
1928 2002-01-09 Robert Collins <rbtcollins@hotmail.com>
1930 * choose.cc (pkgtrustp): Fall back to installed if a package is not present in
1931 the current trust level. For prev, fall back via curr.
1932 (set_existence): Allow sources with no sites, but cached files to be
1934 (pick_category_line::paint): Start drawing clickable categories.
1935 * fromcwd.cc (found_file): Reinstate local file scanning.
1937 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1939 * fromcwd.cc: Run indent.
1940 (do_fromcwd): Reverse sense of comment. Set next_dialog
1941 to IDD_CHOOSER instead of IDD_CHOOSE.
1942 * ini.cc (find_routine): Remove "/" from "/setup.ini".
1944 2001-01-07 Robert Collins <rbtcollins@hotmail.com>
1946 * category.cc (Categorycmp): Add a const safe version.
1947 * category.h (Categorycmp): Add a const safe version.
1948 (Category): Add operator ==.
1949 * choose.cc (fill_missing_category): Add every package to "All".
1950 (pick_category_line::paint): Add support for hidden labels, and a tree depth.
1951 (pick_category_line::click): Ditto.
1952 (view::view): Pass in a top level category to use.
1953 (view::insert_pkg): Special case - skip category "All".
1954 (view::insert_category): Ditto.
1955 (view::clear_view): Set the contents label state.
1956 (create_listview): Pass in a top level category to view().
1957 * choose.h (topbucket): Make bucket available to derived classes.
1958 (pick_category_line): Add support for hidden labels, and a tree depth.
1959 Remove our second copy of bucket.
1960 (view): Pass in a top level category to the constructor.
1961 Use pick_category_line to allow three level display.
1963 2001-01-06 Robert Collins <rbtcollins@hotmail.com>
1965 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
1966 * iniparse.y (add_correct_version): Copy descriptions across.
1967 * package_meta.cc (SDesc): Iterate through versions, return the first with a
1969 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
1971 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
1973 * script.cc (run_script): Change cygpath:// to cygfile://.
1974 * install.cc (do_install_thread): Fix off-by-one errors.
1976 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
1978 * package_db.cc (packagedb::flush): Fix an off-by-one error.
1980 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
1982 * Makefile.in (realclean): more clean.
1983 (OBJS): Add script.o.
1984 * postinstall.cc (run_script_in_etc_postinstall): New function.
1985 (do_postinstall): Split off new funtion init_run_script ().
1988 (run_script): Move to script.cc. Replace some deprecated remove
1991 * script.cc: New file.
1992 * Forward port cygwin-20010707.jcn3.patch.
1993 * package_meta.cc (uninstall): Run pre- and postremove scripts.
1994 * install.cc: Typo fix.
1995 (do_install): Run script initialisation.
1997 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1999 * cistring.cc: Run d2u.
2000 * cistring.h: Run d2u.
2002 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
2003 from the generated /etc/profile. Bash will source this file
2004 automatically, and having this here merely results in .bashrc being
2005 executed twice. Run d2u.
2006 * desktop.h: Run d2u.
2008 * propsheet.cc: Run d2u.
2009 (PropSheetProc): New function. Add minimize box here instead of in
2010 PropertyPage::DialogProc.
2011 (PropSheet::Create): Change to use creation callback PropSheetProc.
2012 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
2014 * propsheet.h: Run indent, d2u.
2015 * proppage.h: Run indent, d2u.
2017 * proppage.cc: Run d2u.
2018 (PropertyPage::DialogProc): Remove minimize-box-adding
2019 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
2020 Add support for calling virtual OnMessageCmd. Add setting of fonts in
2021 WM_INITDIALOG handler.
2022 (resource.h): New include for resource IDs.
2024 * res.rc: Resize and rearrange property page dialog templates
2025 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
2026 specification. Run d2u.
2027 (IDD_SITE): Add an edit control and an "Add" button in order to
2028 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
2029 (IDD_OTHER_URL): Remove dialog template.
2030 (IDD_DLSTATUS): Remove dialog template.
2033 (SitePage::OnBack): Remove NEXT() macro invocation.
2034 (SitePage::OnActivate): New member function.
2035 (load_dialog): Remove. Functionality subsumed into
2036 SitePage::OnActivate.
2037 (save_dialog): Change to support both list and user URLs. Remove
2038 OTHER_IDX and mirror_idx logic.
2039 (SitePage::PopulateListBox): New member function.
2040 (SitePage::CheckControlsAndDisableAccordingly): New member function.
2041 (SitePage::OnMessageCmd): New override.
2042 (check_if_enable_next): Remove.
2043 (dialog_cmd): Remove.
2044 (do_download_site_info_thread): Remove calls to NEXT() macro.
2045 (SitePage::Create): Call the single-param PropertyPage::Create
2047 (other_url): New static taken from other.cc.
2048 (SitePage::OnNext): Remove mirror_idx logic.
2049 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
2050 list box populating code, now handled in SitePage::PopulateListBox.
2051 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
2052 (save_site_url): Fix potential buffer overflow problem. Switched to
2053 TCHAR in grossly premature preparation for multilingual support.
2055 (SitePage::OnActivate): New member function.
2056 (SitePage::CheckControlsAndDisableAccordingly) New member.
2057 (SitePage::OnMessageCmd): New override.
2058 (do_download_site_info_thread): Add MessageBox call on failure to
2061 * splash.cc: Run d2u.
2062 (SplashPage::OnInit): Set the font for the title.
2063 * splash.h: Run d2u.
2065 * threebar.cc: Run d2u.
2066 * threebar.h: Run d2u.
2068 * window.h: Run d2u.
2069 (Window::IsButtonChecked): New member function declaration.
2070 (Window::OnMessageCmd): New member function.
2071 (Window::SetDlgItemFont): New member function declaration.
2072 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
2074 * window.cc: Run d2u.
2075 (Window::IsButtonChecked): New member function definition.
2076 (Window::SetDlgItemFont): New member function definition.
2077 (Window::Window): Add initialization for FontCounter.
2078 (Window::~Window): Delete any fonts we created.
2080 * geturl.cc: Run d2u.
2081 (progress): Remove the "3" field width from the "%3d"
2082 percent-complete format indicator. Causes line to not start at
2083 beginning of text box, and does little to help with "jumping", since
2084 the "bytes downloaded so far" field is variable-width anyway. Change
2085 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
2086 painfully slow connections, or temporary slowdowns in faster
2087 connections should such more-instantaneous functionality become
2091 (NetPage::OnMessageCmd): New member function declaration.
2092 (NetPage::CheckIfEnableNext): New member function declaration.
2094 (NetPage::OnMessageCmd): New member function definition.
2095 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
2096 (check_if_enable_next): Remove.
2097 (NetPage::CheckIfEnableNext): New member function, subsumes
2098 check_if_enable_next.
2099 (propsheet.h): Add include.
2100 (NetPage::Init): Add call to CheckIfEnableNext.
2101 (load_dialog): Remove call to check_if_enable_next.
2102 (NetPage::Create): Call single-template-ID-parameter overload of
2103 PropertyPage::Create instead of three-parameter one.
2105 * Makefile.in (OBJS): Remove other.o.
2106 * other.cc: Remove file.
2108 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
2110 * README: Update TODO's.
2111 * choose.cc (set_existence): Delete non installed packages with no
2113 (fill_missing_category): Fix an off-by-one error.
2114 (default_trust): Ditto. Also delete any unused categories.
2115 (view::init_headers): Fix an off-by-one error.
2116 (set_view_mode): Ditto.
2117 (set_view_mode): Ditto.
2118 (create_listview): Ditto.
2119 (dialog_cmd): Ditto.
2121 * io_stream.cc: Indent.
2122 * io_stream.h: Ditto.
2123 * package_db.cc: Ditto.
2124 * package_meta.h: Const correctness for SDesc ();
2125 * proppage.cc: Run d2u and indent.
2126 * propsheet.cc: Run d2u and indent.
2127 * window.cc: Run d2u and indent.
2128 * window.h: Run d2u and indent.
2130 2001-12-28 Christopher Faylor <cgf@redhat.com>
2132 * Makefile.in (iniparse.o): Accommodate newer bisons.
2134 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2136 * window.h (Window): New file, new class.
2137 * window.cc (Window): New file, new class.
2139 * threebar.h (ThreeBarProgressPage): New file, new class.
2140 * threebar.cc (ThreeBarProgressPage): New file, new class.
2142 * splash.h (SplashPage): New file, new class.
2143 * splash.cc (SplashPage): Replace file with implementation of new
2146 * source.h (SourcePage): New file, new class.
2147 * source.cc: Run indent.
2148 (SourcePage): Add class implementation to this file.
2149 (do_source): Remove, functionality subsumed by SourcePage::Create()
2150 and SourcePage::OnDeactivate().
2151 (dialog_proc): Remove, functionality subsumed by
2152 SourcePage::OnActivate().
2154 * site.h: Run indent.
2155 (SitePage): Add class declaration.
2156 * site.cc: Run indent.
2157 (SitePage): Add class implementation.
2158 (do_download_site_info_thread): New function.
2159 (context): New var. Context info for do_download_site_info_thread().
2160 (do_download_site_info): New function.
2161 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
2162 (SitePage::OnBack): SitePage class implementation..
2163 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
2164 by SitePage members.
2165 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
2167 (do_site): Remove, now handled by do_download_site_info_thread() and
2168 SitePage::OnNext functionality.
2169 (get_site_list): Remove dismiss_url_status_dialog() call.
2171 * root.h (RootPage): New file, new class.
2172 * root.cc: Run indent.
2173 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
2174 (dialog_proc): Remove.
2176 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
2177 (RootPage::OnInit): New member function. Move get_root_dir() logic to
2178 here from do_root().
2179 (RootPage::Create): New member function.
2180 (RootPage::OnNext): New member function. Move IDOK logic from
2181 dialog_cmd() to here.
2182 (RootPage::OnBack): New member function.
2184 * propsheet.h (PropSheet): New file, new class.
2185 * propsheet.cc (PropSheet): New file, new class.
2187 * proppage.h (PropertyPage): New file, new class.
2188 * proppage.cc (PropertyPage): New file, new class.
2190 * postinstall.cc (do_postinstall): Add owner parameter.
2192 * other.cc (do_other): Add owner parameter.
2194 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
2195 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
2197 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
2200 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
2201 get_auth(), get_proxy_auth().
2203 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
2204 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
2205 NetIO::get_ftp_auth)
2206 (auth_common): Add owner param. Pass owner param to DialogBox.
2207 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
2208 owner param to auth_common().
2210 * net.h (NetPage): New file, new class.
2211 * net.cc: Run indent.
2212 (net.h, threebar.h): Add includes.
2213 (Progress): Add extern.
2214 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
2215 property sheet logic. Saved temporarily for reference.
2216 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
2217 NetPage::OnNext, NetPage::OnBack):
2218 New implementation of NetPage class members.
2220 (dialog_proc): Remove.
2222 * msg.h (fatal, note, yesno): Add owner param.
2223 * msg.c (fatal, note, yesno, mbox): Add owner param.
2224 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
2225 now that we have a parent.
2227 * main.cc: Run indent.
2228 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
2229 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
2231 (root_dialog_proc): extern into this file.
2232 (Progress): Progress dialog defined here, used in several other files.
2233 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
2234 Site, Chooser, Desktop pages and MainWindow sheet. Call
2235 InitCommonControls() to make sure Windows is set up for our use of
2236 property sheets. Add pages to sheet.
2237 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
2238 now handled by the PropSheet class.
2239 (root.h): Add include.
2241 * log.cc (log_save): Pass NULL parent to fatal().
2242 (exit_setup): Pass NULL parent to note().
2244 * localdir.h (LocalDirPage): New file, new class.
2245 * localdir.cc: Run indent.
2246 (localdir.h): New include.
2247 (threebar.h): New include.
2248 (Progress): extern into this file.
2249 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
2250 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
2252 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
2253 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
2254 (do_local_dir): Remove.
2255 (dialog_proc): Remove.
2256 (cwd): Remove, not used by anything.
2258 * install.cc: Run indent.
2259 (process.h, threebar.h): New includes.
2260 (Progress): extern into this file.
2261 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
2262 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
2263 ThreeBarProgressPage.
2264 (dialog_cmd, dialog_proc, dialog): Removed, handled in
2265 ThreeBarProgressPage.
2266 (init_dialog): Remove all mention of the above ins_* handles. Now
2267 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
2268 ThreeBarProgressPage instance Progress directly.
2269 (progress): Alter bar update logic to call ThreeBarProgressPage
2270 instance Progress directly.
2271 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
2272 instance Progress directly.
2273 (install_one_source): Alter SetWindowText()s to call
2274 ThreeBarProgressPage
2275 instance Progress directly. Pass NULL parent to note().
2276 (do_install_thread): Rename from do_install(), added owner param.
2277 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
2279 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
2280 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
2282 (do_install_reflector): New function.
2283 (do_install): New function.
2285 * ini.cc (process.h, threebar.h): New includes.
2286 (Progress): externed into this file.
2287 (find_routine): Pass NULL parent to note().
2288 (do_local_ini): Add owner param.
2289 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
2290 and note(). Remove call to dismiss_url_status_dialog().
2291 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
2292 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
2293 to IDD_CHOOSER on exit.
2294 (do_ini_thread_reflector): New function.
2295 (context): New var. Context for do_ini_thread.
2296 (do_ini): New function.
2298 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
2300 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
2302 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
2304 (threebar.h): New include.
2305 (Progress): externed into this file.
2306 (dialog_cmd, dialog_proc, dialog): Removed, handled by
2307 ThreeBarProgressPage now.
2308 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
2310 and bar setting SendMessage()s to call ThreeBarProgressPage instance
2311 Progress directly. Remove "one bar only" logic, this is now handled
2312 explicitly in the ThreeBarProgressPage class.
2313 (progress): Altered bar and text update logic to call
2314 ThreeBarProgressPage instance Progress directly. Changed kbps
2315 calculation to floating point and now print out a single decimal
2317 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
2318 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
2319 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
2320 update logic to call ThreeBarProgressPage instance Progress directly.
2321 (dismiss_url_status_dialog): Remove.
2323 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
2326 * download.cc: Run indent.
2327 (process.h, threebar.h): New includes.
2328 (Progress): externed into this file.
2329 (download_one): Add owner param. Pass it to get_url_to_file().
2330 (do_download_thread): Renamed from do_download. Add owner param. When
2331 calculating total_download_bytes, take binpicked and srcpicked into
2332 account. Remove call to dismiss_url_status_dialog(), no longer needed.
2333 Pass owner handle to download_one() and yesno().
2334 (do_download_reflector, do_download): New functions.
2335 (context): New var. Context for do_download_thread().
2337 * dialog.h (D(x)): Add owner param.
2339 * desktop.h (DesktopSetupPage): New file, new class.
2340 * desktop.cc: Run indent.
2341 (desktop.h): Add include.
2342 (dialog_proc, do_desktop): Remove, now handled in
2343 DesktopSetupPage::OnInit().
2344 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
2345 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
2347 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
2348 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
2349 of DesktopSetupPage.
2351 * cistring.h: New file, new class.
2352 * cistring.cc: New file, new class.
2354 * choose.h: Run indent.
2355 (Chooser): New class declaration.
2356 * choose.cc: Run indent.
2357 (do_choose): Add owner param. Pass it to DialogBox() and
2359 (Chooser): New class implementation.
2361 * res.rc (IDS_VERSION_INFO): New string.
2362 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
2363 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
2364 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
2366 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
2367 TAB control navigation etc. Give the controls a reasonable tab order.
2368 Grouped radio buttons. Something's still not right, can't tab away
2369 from back/next/cancel group reliably.
2370 * resource.h (IDD_CHOOSER): New dialog ID.
2372 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
2373 threebar.o, and window.o.
2375 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
2377 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
2378 (pick_pkg_line::paint): Clip columns to prevent overlap.
2380 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
2382 * Makefile.in: Add libcomctl32.a for setup.exe.
2383 * archive.h (archive): Prevent non-child direct creation of the class.
2384 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
2385 * choose.cc: Include commctrl for the choose header.
2386 (NEW_COL_SIZE_SLOP): Define without magic numbers.
2387 (pkgtrustp): Convert to function.
2388 (set_action): Remove.
2389 (add_required, fill_missing_category,default_trust): Use list syntax for
2392 (choose_caption): Remove.
2393 (topbucket::paint): New method.
2394 (topbucket::empty): Ditto.
2395 (topbucket::click): Ditto.
2396 (topbucket::~topbucket): Ditto.
2397 (paint): Remove i,ii and p as they are obsolete.
2398 Remove header drawing code.
2399 Use new chooser method to paint the chooser.
2400 Use new chooser itemcount method.
2401 (scroll_common): Rename to view::scroll.
2402 Scroll the header window separately.
2403 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
2404 (listview_proc): Look for header messages.
2405 (note_width): Accept stringless calls.
2406 (pick_line::set_line): Remove.
2407 (pick_line::paint): Remove.
2408 (pick_pkg_line::paint): Paint this one line, using the header column widths.
2409 (pick_category_line::paint): Paint this category, and anything in the bucket.
2410 (pick_line::click): Remove.
2411 (pick_pkg_line::click): Handle a click.
2412 (pick_category_line::click): Handle a click.
2413 (_view): Rename all to view.
2414 (view::view): Initialise the control contents.
2415 (view::set_headers): Work with the header control.
2416 (view::init_headers): Use list syntax for package list.
2417 Rearrange the width logic a little.
2418 (view::insert_pkg): Update to use the hierarchy.
2419 (view::insert_category): Ditto.
2420 (view::insert_at, view::insert_under): Remove.
2421 (view::clear_view): Update to use the hierarchy.
2422 (view::click): Update to use the hierarchy.
2423 (set_view_mode): Use list syntax for package list.
2424 Update for new chooser methods.
2425 (DoInsertItem): New helper function. (Needs a home somewhere).
2426 (create_listview): Remove choose control code and use the constructor instead.
2427 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
2428 * choose.h: Include newly required headers list and package_meta.
2429 (_voew): Rename to view.
2430 (pick_line): Convert to an ABC.
2431 (pick_pkg_line): New class.
2432 (pick_catgory_line): New class.
2433 (topbucket): New class.
2434 (view::scroll): New method created from listview_scroll function.
2435 * desktop.cc (make_passwd_group): Use list syntax for package list.
2436 * download.cc (do_download): Use list syntax for package list.
2437 * fromcwd.cc (found_file): Use list syntax for package list.
2438 * iniparse.y (pacakges): Use list syntax for package list.
2439 * install.cc (uninstall_one): Use list syntax for package list.
2440 (do_install): Use list syntax for package list.
2441 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
2442 Prevent inaccurate synthetic copy and assignment.
2443 * list.h: Include required header stdlib.
2444 Work on const correctness.
2445 * package_db.cc (packagedb::getpackagebyname): Remove.
2446 (packagedb::packagedb): Remove custom list code, and make db a local.
2447 (packagedb::getfirstpackage): Remove.
2448 (packagedb::getnextpackage): Remove.
2449 (packagedb::addpackage): Remove.
2450 (flush): Remove custom list code.
2451 (packagedb::registerpackage): Remove.
2452 (packagedb::packages): New static member.
2453 (packagedb::task): New static member.
2454 * package_db.h (PackageDBActions): New enum.
2455 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
2456 addpackage, registerpackage, packages, packagecount, curr_package, db.
2458 * pacakge_meta.cc: Include package_db.h.
2459 (packagemeta::action_caption): New method.
2460 (packagemeta::set_action): New method.
2461 * package_meta.h (CategoryPackage): Initialise key.
2462 (packagemeta): Initialise key.
2463 Add set_action and action_caption methods.
2464 Prevent inaccurate synthetic copy and assignment.
2465 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
2466 * source.cc: Include package_db for db manipulation.
2467 (save_dialog): Set the db task.
2468 * win32.h: Tell the w32 include headers what IE version to expect/require.
2470 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
2472 * README: Wishlist updates.
2474 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
2476 * package_db.cc (getnextpackage): Don't overrun the array.
2478 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
2480 * Makefile.in (OBJS): Add setup_version.o.
2481 (version.c): Rename to setup_version.
2482 * choose.cc (set_action): Prevent NULL pointer dereference.
2483 (package_sort): Remove.
2484 * fromcwd.cc (canonicalize_version): Moved to version.cc.
2485 (check_ini): New function for use with find to see if there is a cached setup.ini.
2486 (do_fromcwd): Check for a cached setup.ini from any mirror site.
2487 * ini.cc (find_routine): New function, for finding cached setup.ini's.
2488 (do_local_ini): New function, drives parsing of local ini's.
2489 (do_remote_ini): New function, drives parsing and caching of remote ini's.
2490 (do_ini): Move guts to do_remote_ini and do_local_ini.
2491 * list.h (removebyindex): New method.
2492 * other.cc (save_dialog): Use new site_list and all_site_list to add the
2493 new site to the site picklist.
2494 (dialog_cmd): Only save the dialog when exiting the dialog.
2495 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
2496 * site.cc (site_list_type): Move to site.h
2497 (site_list): New global, sites chosen by the user.
2498 (all_site_list): New global, all potential sites.
2499 (site_list_type::init): New method, parses a mirror.lst URL string into a
2500 site_list_type object.
2501 (site_list_type::site_list_type): New method.
2502 (check_if_enable_next): Examine the control, not a local variable.
2503 (load_dialog): Select all the user chosen sites by default.
2504 (save_dialog): Adjust for multiple selection semantics.
2505 (save_site_url): Save all user chosen sites.
2506 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
2508 Remove obsolete other_url reference.
2509 (dialog_proc): Use all_site_list instead of site_list.
2510 (site_sort): Remove.
2511 (get_site_list): Remove malloc use - use list template instead.
2512 Move site_list_type initialisation to site_list_type::init().
2513 (get_initial_list_idx): Renamed to ...
2514 (get_saved_sites): this. Also read in multiple sites to the site_list.
2515 (do_site): Use all_site_list not site_list.
2516 Log all chosen sites.
2517 * site.h: New file, defines site related class, functions and variables.
2518 * state.h: Add comment about use of state.h
2519 (mirror_site): Remove.
2520 (other_url): Remove.
2521 (MIRROR_SITE): Remove.
2522 * version.cc: New file, for version-handling and related functions.
2524 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
2526 * Makefile.in: Add filemanip.o to setup.
2527 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
2528 * archive_tar.h (archive_tar_file): Implement get_size virtual.
2529 (archive_tar): Ditto.
2530 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
2532 (_view::init_headers): Ditto.
2533 (_view::insert_pkg): Ditto.
2534 (set_view_mode): Ditto.
2537 (base): Moved to filemanip.cc.
2538 (find_tar_ext): Ditto.
2539 (parse_filename): Ditto.
2540 (_Info::_Info): Remove.
2541 * compress_bz.h (compress_bz): Implement get_size virtual.
2542 * compress_gz.h (compress_gz): Implement get_size virtual.
2543 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
2544 * download.cc (get_file_size): Move to filemanip.cc.
2545 (check_for_cached): Use [] operator instead of getnth - its more readable.
2546 (download_one): Ditto.
2547 * filemanip.cc: New file.
2548 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
2549 (get_url_to_membuf): New function - contains get_url_to_string worker code.
2550 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
2551 * geturl.h: Declare new prototype.
2552 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
2553 Tidy up the error code a little.
2554 * ini.h: Remove __cplusplus protection for ini_init.
2556 * inilex.l: Remove old globals.
2557 (ini_init): Use an io_stream for getting the characters.
2558 (ini_getchar): Ditto.
2559 * iniparse.y: Declare yylex as a C++ function.
2560 (add_correct_version): Use [] operator instead of getnth - its more readable.
2561 * io_stream.cc (io_stream::move_copy): Use the copy method.
2562 (io_stream::copy): New method to simply copy from one stream to another.
2563 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
2564 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
2565 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
2566 * io_stream_file.cc (io_stream_file::get_size): Implement this.
2567 * io_stream_file.h (io_stream_file::get_size): Declare this.
2568 * io_stream_memory.h: Include errno as it's neded to parse the header.
2569 (io_stream_memory::get_size): Implement this.
2570 (io_stream_memory::st_size): Delete this.
2571 * list.h: Change getnth into the [] operator.
2572 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
2573 (NetIO::set_url): Ditto.
2574 (NetIO::open): Ditto.
2575 * netio.h: As for netio.cc.
2576 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
2578 * nio-file.h: Ditto.
2579 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
2580 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
2581 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
2582 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
2583 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
2584 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
2585 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
2586 * package_source.cc (packagesource::set_canonical): Ditto.
2587 (packagesource::set_cached): Ditto.
2588 * package_source.h (site::~site): Ditto.
2589 * site.cc: Change site_list_type to a class, and search and replace sort_key to
2592 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
2594 * package_source.cc (packagesource::set_canonical): Filename was out by one.
2596 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
2598 * Makefile.in (OBJS): Remove category_list - it's not needed.
2599 * README: More wishlist updates.
2600 * category.cc (Category::Category): Initialise new members.
2601 (Categorycmp): New function.
2602 * category.h (Category): New member key for template use.
2603 * category_list.cc: Remove.
2604 * category_list.h: Remove.
2605 (Categorycmp): New function prototype.
2606 * choose.cc: Remove category_list - not needed.
2607 (set_action): Only show the 'source' option when the source is actually
2609 (add_required): Fix recursion limiter to 5.
2610 (fill_missing_category): Use list access.
2611 (default_trust): Ditto.
2612 (pick_line::paint): Ditto.
2613 (_view::init_headers): Ditto.
2614 (_view::insert_pkg): Ditto.
2615 (_view::insert_category): Ditto.
2616 (_view::click): Ditto.
2617 (set_view_mode): Ditto.
2619 * cygpackage.h: Remove category_list - not needed.
2620 * geturl.cc (get_url_to_string): Fix null byte insertion.
2621 * inipatse.y: Remove category_list - not needed.
2622 (categories): Use list access.
2623 * package_db.cc: Ditto.
2624 * package_db.h: Remove category_list - not needed.
2625 (packagedb): Use the list template for categories.
2626 * package_meta.cc (add_category): Ditto.
2627 * package_meta.h (CategoryPackage): Link to the category as well.
2628 (packagemeta): Use a list of CategoryPackages instead of Categories
2629 for more memory efficient cross-referencing.
2631 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
2633 * package_db.cc (packagedb::flush): Write a canonical version for all packages
2634 irrespective of the media they were installed from.
2636 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
2638 * Makefile.in (OBJS): Add package_source and rfc1738.
2639 * README: Wishlist update.
2640 * category_list.cc (register_category): Use references.
2641 * category_list.h (CategoryList): Ditto.
2642 * choose.cc (isinstalled): Remove.
2643 (pkgtrustp): New macro.
2644 (set_action): Use packagemeta.
2645 (add_required): Ditto.
2646 (choose_caption): Example package to choose caption, rather than state flags.
2647 (check_existence): Remove.
2648 (set_existence): Remove old code.
2649 (fill_missing_category): Use packagemeta.
2650 (keep_or_skip): Remove.
2651 (default_trust): Use packagemeta and set trust values directly.
2652 (pick_line::set_line): Use packagemeta.
2653 (_view::insert_pkg): Ditto.
2654 (_view::insert_category): Ditto.
2655 (_view::click): Ditto.
2656 (set_view_mode): Ditto. Also remove "exclude" code.
2657 (create_listview): Use packagemeta.
2658 (dialog_cmd): Ditto.
2659 (getpkgbyname): Remove
2660 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
2661 (read_installed_db): Remove.
2662 (package_sort): Use packagemeta.
2663 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
2664 * choose.h: Use packagemeta.
2665 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
2666 (cygpackage::cygpackage): Ditto.
2667 (cygpackage::set_canonical_version): Copy the passed string.
2668 (cygpackage::~cygpackage): Move cleanup code to destroy().
2669 (cygpackage::destroy): New function.
2670 (cygpackage::getfirstfile): Use a separate buffer.
2671 (cygpackage::getnextfile): Ditto.
2672 (cygpackage::Canonical_version): New function.
2673 (cygpackage::set_sdesc): Ditto.
2674 (cygpackage::set_ldesc): Ditto.
2675 * cygpackage.h (cygpackage::Canonical_version): New method.
2676 (cygpackage::set_sdesc): New method.
2677 (cygpackage::set_ldesc): New method.
2678 (cygpackage::SDesc): New method.
2679 (cygpackage::LDesc): New method.
2680 (cygpackage::set_canonical_version): New method.
2681 * desktop.cc: Include packagedb headers.
2682 (make_password_group): Use packagemeta.
2683 * download.cc: Include packagedb headers.
2684 (check_for_cached): New method to find any cached file and fill out the database
2686 (download_one): Take a packagesource, support multiple mirrors.
2687 (do_download): Use packagemeta.
2688 * from cwd.cc: Include packagedb headers.
2689 (found_file): Use packagemeta.
2690 * ini.cc (do_ini): Beginning of multiple-mirror support.
2691 * ini.h (CategoryPackage): Remove.
2692 (Dependency): Remove.
2694 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
2695 * inilex.l: Support multiple mirrors.
2696 * iniparse.y: Include packagedb headers.
2697 (parser): Use packagemeta.
2698 (new_package): Remove.
2699 (add_correct_version): New function.
2700 (new_requirement): Remove.
2701 (add_category): Remove.
2702 * install.cc (uninstall_one): Use packagemeta.
2703 (install_one_source): New function.
2704 (install_one): Use packagemeta.
2705 (do_install): Use packagemeta.
2706 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
2707 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
2708 after setting the mtime, it makes no sense, and results in 0 length files.
2709 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
2710 * list.h: New file, template class for a form of list.
2711 * package_db.cc (packagedb::registerpackage): New function.
2712 * package_db.h (packagedb::npackages ()): New method.
2713 * package_meta.cc (packagemeta::add_version): Use list template.
2714 (packagemeta::set_installed): Ditto.
2715 (packagemeta::add_category): New method.
2716 * package_meta.h: Include necessary headers to parse the class.
2717 (CategoryPackage): New class.
2718 (packagemeta): Initialise all members.
2719 (packagemeta::SDesc): New method.
2720 (packagemeta::Categories): New method.
2721 (packagemeta::add_category): Ditto.
2722 (packagemeta::versions): Change to be a list instance.
2723 * package_source.cc (packagesource::set_canonical): New method.
2724 (packagesource::set_cached): New method.
2725 * package_source.h: Include necessary headers to parse the class.
2727 (packagesource::packagesource): Initialize all members.
2728 (packagesource): Make this class non-abstract.
2729 * package_version.cc (packageversion::packageversion): New method.
2730 * package_version.h (Dependency): New class.
2731 (packageversion::Canonical_vesion): New method.
2732 (packageversion::SDesc): New method.
2733 (packageversion::LDesc): New method.
2734 (packageversion::new_requirement): Ditto.
2735 (packageversion::srcpicked, binpicked): What to install.
2736 (packageversion::src, bin): Installation source data.
2737 * rfc1738.cc: New file. Escapes special characters in URL's.
2740 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2742 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
2743 SimpleSocket::gets() returns a zero-length string, so that we
2744 don't end up eating the entire stream thinking it's all header info.
2746 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
2748 * install.cc (badrename): Remove.
2749 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
2750 * io_stream.cc (io_stream::move_copy): New method.
2751 (io_stream::move): New method.
2752 * io_stream.h (io_stream): New methods move and move_copy.
2753 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
2754 * io_stream_cygfile.h (io_stream_cygfile): New method move.
2755 * io_stream_file.cc (io_stream_file::move): New method.
2756 * io_stream_file.h (io_stream_file): New method move.
2757 * package_db.cc (packagedb::flush): New method.
2758 * package_db.h (packagedb): New method flush.
2760 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
2762 * Makefile.in (OBJS): Add package_version.
2763 * ategory.cc (Category::Category): Update constructors.
2764 * category_list.cc (CategoryList::register_category): Insert correctly.
2765 * choose.cc: Include package_version.h, not package.h.
2766 * cygpackage.cc: Ditto.
2767 (cygpackage::uninstall): New method.
2768 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
2769 New method uninstall.
2770 * hash.cc (add, has, enumerate): Change prototype to be accurate.
2771 * hash.h (hash): Change prototypes to be accurate.
2772 * ini.h (_Info): New parameterless constructor.
2773 (CategoryPackage): New constructor.
2775 * install.cc: Don't include unneeded headers.
2776 Include package database headers.
2777 (hash::add_subdirs): Remove.
2778 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
2779 Don't uninstall source packages.
2780 (do_install): Just can uninstall_one once as we ignore source packages now.
2781 Don't copy the installed.old database accross, instead iterate through the
2782 packagedb packages list and write the isntalled packages out.
2783 * package_db.cc: Include package_version.h, not package.h.
2784 (packagedb::packagedb): Never let db be undefined.
2785 Record the installation filename, so we can reconstruct installed.db.
2786 (packagedb::addpackage): Insert packages in alpha sorted order.
2787 (packagedb::categories): Initialise correctly.
2788 * package_meta.cc: Include win32 and mount headers as a workaround to
2789 current io_stream limitations. Include a TODO about that.
2790 (standard_dirs): New, from install.cc.
2791 (hash::add_subdirs): New, from install.cc.
2792 (packagemeta::set_installed): Rename genericpackage to packageversion.
2793 (packagemeta::uninstall): New method.
2794 * package_meta.h: Rename genericpackage to packageversion.
2795 (packagemeta): Update constructor.
2796 (add_version, set_installed): Rename genericpackage to packageversion.
2797 (uninstall): New method.
2798 (installed_from): New member.
2799 * package_source.cc: New file.
2800 * package_source.h: New file.
2801 * package_version.cc: New file.
2802 * package_version.h: New file.
2803 * package.cc: Removed.
2804 * package.h: Removed.
2806 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2808 * Makefile.in (OBJS): Add category.o and category_list.o.
2809 * category.h: New file.
2810 * category.cc: New file.
2811 * category_list.h: New file.
2812 * category_list.cc: New file.
2813 * choose.cc: Include category headers.
2814 (fill_missing_category): Use package_db to access global categories.
2815 (_view::insert_pkg): Ditto.
2816 (_view::insert_category): Ditto.
2817 (set_view_mode): Ditto.
2818 (getcategorybyname): Remove.
2819 * cygpackage.h: Include category_list.h to parse this correctly.
2820 (cygpackage): New virtual &Categories.
2821 * ini.h (_CategoryPackage): More C to C++ conversion.
2823 (getcategorybyname): Remove.
2824 (register_category): Remove.
2825 * iniparse.y: Include package db and category headers.
2826 (categories): Use package_db to access global categories.
2828 (ncategories): Remove.
2829 (register_category): Remove.
2830 * package.h: New virtual &Categories.
2831 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
2832 (packagedb::categories): Declare.
2833 * package_db.h (packagedb): New member categories for global categories list.
2835 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2837 * choose.h: Don't include ini.h
2838 * ini.h: Allow pure c++ in the header file.
2840 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2842 * install.cc (do_install): Write a version 2 installed.db file.
2843 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
2845 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2847 * Makefile.in (OBJS): Add package abstraction objects.
2848 * choose.cc: Include package abstraction headers.
2849 (read_installed_db): Use packagedb class and ignore installed sources.
2850 * cygpackage.cc: New file.
2851 * cygpackage.h: New file.
2852 * filemanip.h (get_file_size): Use unixy types.
2853 * package.h: New file.
2854 * package.cc: New file.
2855 * package_db.cc: New file.
2856 * package_db.h: New file.
2857 * package_meta.cc: New file.
2858 * package_meta.h: New file.
2860 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2862 * REAME: Updates to wishlist.
2864 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
2866 * README: Updated and added my list of wishlist and todo items.
2868 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
2870 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
2871 * archive_tar.cc (archive_tar::write): New prototype.
2872 (archive_tar::seek): New method.
2873 * archive.h (archive_tar_file): Update write() and add seek().
2874 (archive_tar): Ditto.
2875 * archive_tar_file.cc (archive_tar_file::write): New prototype.
2876 (archive_tar_file::seek): New method.
2877 * compress_bz.cc (compress_bz::write): New prototype.
2878 (compress_bz::seek): New function.
2879 * compress_bz.h (compress_bz): Update write() and add seek().
2880 * compress_gz.cc (compress_gz::write): New prototype.
2881 (compress_gz::seek): New function.
2882 * compress_gz.h (compress_gz): Update write() and add seek().
2883 * geturl.cc: Include io_stream headers.
2885 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
2886 * io_stream.h (io_stream_seek_t): New enum.
2887 (io_stream): Update write() and add seek().
2888 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
2889 (io_stream_cygfile::seek): New function.
2890 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
2891 * io_stream_file.cc (io_stream_file::write): New prototype.
2892 (io_stream_file::seek): New function.
2893 * io_stream_file.h (io_stream_file): Update write() and add seek().
2895 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
2897 * localdir.cc: Add headers unistd.h and port.h.
2898 (save_local_dir): Expand search logic to include local directory for
2899 location of file last-cache.
2900 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
2901 (do_local_dir): Expand search logic to include local directory for file
2903 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
2904 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
2906 (do_source): Default to Install from Internet on first entry or
2907 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
2909 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
2911 * choose.cc (find_tar_ext): Only match at the end of the string.
2912 (getpkgbyname): Prevent NULL pointer dereference.
2914 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
2916 * Makefile.in (CFLAGS): Add warnings and -Werr.
2917 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
2918 (OBJS): Add io_stream class' objects.
2919 (autoload.o): Use WARNONLY_FLAGS.
2921 (iniparse.o): Ditto.
2922 * archive.cc: New file.
2923 * archive.h: New file.
2924 * archive_tar.cc: New file.
2925 * archive_tar.h: New file.
2926 * archive_tar_file.cc: New file.
2927 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
2928 * choose.cc: Use io_stream.h, not mount.h.
2930 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
2931 (read_installed_db): Use io_streams.
2932 * choose.h: Run indent.
2933 * compress.cc: New file.
2934 * compress.h: New file.
2935 * compress_bz.cc: New file.
2936 * compress_bz.h: New file.
2937 * compress_gz.cc: New file.
2938 * compress_gz.h: New file.
2939 * concat.cc: Run indent.
2940 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2941 * concat.h: Run indent.
2942 * desktop.cc: Run indent.
2943 Include mklink2.h rather than redefining by hand.
2944 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2945 (etc_profile): Fix compiler warning (deprecated conversion).
2946 (make_link): Fix compiler warning (deprecated conversion).
2947 Tidy up use of args variable - consolidate into argbuf.
2948 (start_menu): Fix compiler warning (deprecated conversion).
2949 (desktop_icon): Fix compiler warning (deprecated conversion).
2950 (make_etc_profile): Fix compiler warning (deprecated conversion).
2951 (uexists): Fix compiler warning (deprecated conversion).
2952 (check_desktop): Fix compiler warning (deprecated conversion).
2953 (check_startmenu): Fix compiler warning (deprecated conversion).
2954 * dialog.cc: Run indent.
2955 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2956 (fatal): Fix compiler warning (deprecated conversion).
2957 * dialog.h: Run indent.
2958 * diskfull.cc: Run indent.
2959 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2960 * download.cc: Run indent.
2961 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2962 (download_one): Fix compiler warning (signed vs unsigned comparison).
2963 * filemanip.h: Run indent.
2964 * find.cc: Run indent.
2965 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2966 (find): Fix compiler warning (deprecated conversion).
2967 * find.h: Run indent.
2968 * fromcwd.cc: Run indent.
2969 * geturl.cc: Run indent.
2970 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2971 (dialog_cmd): Return a value.
2972 (dialog_proc): Remove unused variables.
2974 (get_url_to_file): Fix compiler warning (deprecated conversion).
2975 * geturl.h: Run indent.
2976 * hash.cc: Run indent.
2977 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2978 * hash.h: Run indent.
2979 * ini.cc: Run indent.
2981 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2982 (do_ini): Use io_streams for local io.
2983 * ini.h: Run indent.
2984 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
2985 Fix compiler warning (brackets for truth assignment).
2986 * install.cc: Run indent.
2987 Fix compiler warning (/* in comment).
2989 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2990 (dialog_cmd): Return a value.
2991 (dialog_proc): Return a value.
2992 (start_tics): Deleted - was unused.
2993 (badrename): Fix compiler warnings (unused, deprecated conversion).
2994 (standard_dirs): Fix compiler warning (deprecated conversion).
2996 (uninstall_one): Convert to io_streams.
2997 (install_one): Convert to io_streams.
2998 (do_install): Convert to io_streans.
2999 Fix compiler warning (deprecated conversion).
3000 * io_stream.cc: New file.
3001 * io_stream.h: New file.
3002 * io_stream_cygfile.cc: New file.
3003 * io_stream_cygfile.h: New file.
3004 * io_stream_file.cc: New file.
3005 * io_stream_file.h: New file.
3006 * localdir.cc: Run indent.
3008 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3009 (get_root_dir_now): Remove.
3010 (save_local_dir): Convert to io_streams.
3011 (dialog_cmd): Return a value.
3012 (do_local_dir): Convert to io_streams.
3013 (log.cc): Run indent.
3014 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3015 (log): Fix compiler warning (deprecated conversion).
3016 (log_save): Fix compiler warning (deprecated conversion).
3017 * log.h: Run indent.
3018 (log): Fix compiler warning (deprecated conversion).
3019 (log_save): Fix compiler warning (deprecated conversion).
3020 * main.cc: Run indent.
3021 Don't include "netio.h".
3022 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3023 (netio_test): Remove.
3024 (sid_auth): Fix compiler warning (partially bracketed initialiser).
3025 (WinMain): Return a value.
3026 * mkdir.cc: Run indent.
3027 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3028 * mklink2.c: Run indent.
3029 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3030 (mkcygsymlink): New function.
3031 * mklink2.h: New file.
3032 * mount.cc: Run indent.
3033 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3034 (create_mount): Remove unused variables.
3035 (cygpath): Fix compiler warning (signed vs unsigned comparison).
3036 * mount.h: Run indent.
3037 * msg.cc: Run indent.
3038 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3039 (msg): Fix compiler warning (deprecated conversion).
3040 (mbox): Fix compiler warning (deprecated conversion).
3041 * msg.h: Run indent.
3042 (msg): Fix compiler warning (deprecated conversion).
3043 * net.cc: Run indent.
3044 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3045 (dialog_cmd): Return a value.
3046 * netio.cc: Run indent.
3047 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3048 (auth_cmd): Return a value.
3049 * netio.h: Run indent.
3050 * nio-file.cc: Run indent.
3051 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3052 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
3053 * nio-file.h: Run indent.
3054 * nio-ftp.cc: Run indent.
3055 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3056 * nio-ftp.h: Run indent.
3057 * nio-http.cc: Run indent.
3058 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3059 * nio-http.h: Run indent.
3060 * nio-ie5.cc: Run indent.
3061 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3062 * nio-ie5.h: Run indent.
3063 * other.cc: Run indent.
3064 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3065 (dialog_cmd): Return a value.
3066 * port.h: Run indent.
3067 * postinstall.cc: Run indent.
3068 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3069 (cmd): Fix compiler warning (deprecated conversion).
3070 (eun): Fix compiler warning (deprecated conversion).
3071 * root.cc: Run indent.
3072 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3073 * simpsock.cc: Run indent.
3074 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3075 * simpsock.h: Run indent.
3076 * site.cc: Run indent.
3078 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3079 (get_root_dir_now): Remove.
3080 (save_site_url): Convert to io_streams.
3081 (dialog_cmd): Return 0.
3082 (get_initial_list_idx): Convert to io_streans.
3083 * source.cc: Run indent.
3084 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3085 (check_if_enable_next): Remove.
3086 (load_dialog): Remove unused variables.
3087 (save_dialog): Ditto.
3088 (dialog_cmd): Return a value.
3089 * splash.cc: Return a value.
3090 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3091 (dialog_cmd): Return a value.
3092 * state.cc: Run indent.
3093 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3094 * state.h: Run indent.
3098 2001-11-12 Christopher Faylor <cgf@redhat.com>
3100 * desktop.cc (start_menu): Change start menu name to "Cygwin".
3101 (check_startmenu): Ditto.
3103 2001-11-11 Christopher Faylor <cgf@redhat.com>
3105 * choose.cc (parse_filename): Finish reorganization by correctly
3106 decrementing p in memmove.
3108 2001-11-11 Christopher Faylor <cgf@redhat.com>
3110 * choose.cc (parse_filename): Reorganize code to work around gcc
3111 optimization problem.
3113 2001-11-09 Gareth Pearce <tilps@hotmail.com>
3115 * choose.cc (set_action): Allow skip as an option for installed
3116 packages that have version number not listed in setup.ini.
3118 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3120 * choose.cc (set_cation): Backout last change.
3121 (choose_caption): Ditto.
3123 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3125 * ini.h (actions): Remove - transferred to choose.h.
3127 * choose.h: Protect class's from "C" compilers.
3128 (actions): New enum, from ini.h. This may not be the 'right' place
3129 but that place doesn't exist yet.
3130 (_views): New enum, from ini.h.
3131 * choose.cc (set_action): Handle installed packages with a version not in
3133 (choose_caption): Ditto.
3134 * iniparse.y: Rearrange header order to handle new ini.h.
3136 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3138 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
3139 (registry_category): Fix compiler warning (deprecated conversion).
3140 * iniparse.y (registry_category): Ditto.
3141 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
3142 (add_requried): Remove unused variable.
3143 (choose_caption): Handle all enumeration values via a default.
3144 (paint): Fix compiler warnings (unused, deprecated conversion).
3145 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
3146 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
3147 (note_width): Fix compiler warnings (deprecated conversion).
3148 (keep_or_skip): Fix compiler warnings (unused).
3149 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
3150 (set_view_mode): Fix compiler warnings (unused).
3151 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
3153 (dialog_proc): Fix compiler warnings (unused).
3154 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
3155 * choose.h (_header): Fix compiler warnings (deprecated conversion).
3158 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
3160 * simpsock.h (SimpleSocket::invalidate): Declare new method.
3161 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
3162 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
3163 memory for buf in the constructor.
3164 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
3165 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
3166 (SimpleSocket::write): Check object consistency - return -1 on error.
3167 invalidate() the object on socket write error.
3168 (SimpleSocket::fill): Check object consistency - return -1 on error.
3169 invalidate() the object if socket read error is encountered and there
3170 is no more data available in the internal read buffer.
3171 Allocate memory for the internal read buffer.
3172 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
3173 during fill() and no more data is available in the internal read buffer.
3174 (SimpleSocket::read): Check object consistency - return -1 on error.
3175 invalidate() the object if socket read error is encountered.
3176 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
3177 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
3178 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
3179 (NetIO_FTP::read): Use NetIO_FTP::ok().
3180 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
3181 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
3183 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
3185 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3186 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
3187 (SimpleSocket::printf): Ditto.
3188 (SimpleSocket::write): Ditto.
3189 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
3191 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3192 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
3193 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3195 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
3197 * geturl.cc (get_url_to_string): clean up memory leak
3198 (get_url_to_file): ditto
3200 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3202 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
3203 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
3205 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
3207 * fromcwd.cc (found_file): Free() memory containing the version and
3208 filepath information for a given package, before replacing the pointers which
3209 reference this memory.
3211 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3213 * fromcwd: Fix compiler warnings for cvsid.
3214 (canonicalize_version): Fix compilter warnings.
3215 (do_fromcwd): Ditto.
3216 * version.h: Fix compiler warnings for canonicalize_version.
3218 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
3220 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
3222 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3224 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
3226 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3228 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
3230 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3232 * choose.cc (default_trust): Change the "Required" forced install category to
3235 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3237 * choose.cc: Ran indent.
3238 (set_action): When the requested trust level is missing and the level was not
3239 user requested, set the action to ACTION_SAME_CURR.
3241 2001-11-01 Christopher Faylor <cgf@redhat.com>
3243 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
3245 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3247 * choose.cc (_view::init_headers): Resync with the paint logic.
3249 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3251 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
3254 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3256 * choose.cc (default_trust): Autoset currently installed packages per the user's
3257 selection of prev/curr/exp.
3259 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3261 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
3263 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
3265 * geturl.cc (is_showing): Remove.
3266 (is_local_install): New static variable. Controls whether the
3267 progress dialog and the supporting thread will be created.
3268 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
3269 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
3270 This prevents the progress dialog to gain control over the
3271 application and fixes the "setup.exe going to background" problem.
3272 (progress): Use is_local_install.
3273 (get_url_to_string): Set is_local_install.
3274 (dismiss_url_status_dialog): Use is_local_install.
3275 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
3276 (init_dialog): Remove usage of SetForegroundWindow.
3277 This prevents the progress dialog to gain control over the
3278 application and fixes the "setup.exe going to background" problem.
3280 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3282 * choose.cc (list_click): Change r to row for clarity.
3283 When we shrink the list below 1 page, scroll to the top of the list.
3284 (_view::click): Return the actual change for contractions.
3285 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
3287 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3289 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3290 * localdir.cc: Ran indent.
3291 (get_root_dir_now): New function.
3292 (save_local_dir): New function.
3293 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
3294 (do_local_dir): If there is a saved local dir, read it in.
3295 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3296 * root.cc (dialog_cmd): Ditto.
3297 * source.cc (dialog_cmd): Ditto.
3299 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3301 * choose.cc(list_vscroll): Return 0 as required by win32.
3302 (list_hscroll): Ditto.
3303 (list_click): Ditto.
3305 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3309 * main.cc(WinMain): Use __argv to retrieve command line parameters.
3310 * Makefile,in: Remove argv.o.
3312 2001-11-01 Matt Hargett <matt@use.net>
3314 * geturl.cc (progress): Change int to unsigned int to eliminate
3316 * (get_url_to_string): Check for NULL pointer.
3317 * mount.cc (find2): Use free instead of delete for malloc'd
3319 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
3321 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3323 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
3324 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
3325 (read_installed_db): Bugfix for testing whether a package has a source tarball.
3326 Reported by Matt (matt@usa.net).
3327 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
3328 confusion and lint errors. Reported by Matt (matt@usa.net).
3330 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3332 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
3335 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
3336 Add mingw_getopt.o build rule.
3337 * main.cc(WinMain): Initialise argv and argc for use by getopt.
3339 2001-10-27 Christopher Faylor <cgf@redhat.com>
3341 * res.rc: Rearrange info on top line slightly.
3343 2001-10-27 Christopher Faylor <cgf@redhat.com>
3345 * desktop.cc (make_passwd_group): Move file creation earlier in the
3346 process to ensure that passwd-grp.bat reflects desired operation.
3348 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
3350 * postinstall.cc (each): Remove "*.done" file else rename will fail.
3352 2001-10-16 Christopher Faylor <cgf@redhat.com>
3354 * res.rc: Oops. Take 640x480 screen size into account.
3356 2001-10-16 Christopher Faylor <cgf@redhat.com>
3358 * res.rc: Enlarge chooser screen.
3360 2001-10-12 Christopher Faylor <cgf@redhat.com>
3362 * Makefile.in: Accomodate changes to w32api_include macro.
3364 2001-10-12 Christopher Faylor <cgf@redhat.com>
3366 * Makefile.in: Use correct flags for windres.
3368 2001-10-12 Christopher Faylor <cgf@redhat.com>
3370 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
3372 2001-10-12 Christopher Faylor <cgf@redhat.com>
3374 * choose.cc (pick_line::paint): Reorganize after botched patch.
3376 2001-10-12 Christopher Faylor <cgf@redhat.com>
3378 * choose.cc (pick_line::paint): Add missing declaration.
3380 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
3382 * choose.cc (pick_line::paint): Add package name to sdesc for display.
3384 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
3386 * choose.cc (_view::insert_pkg): Correctly exit loop.
3387 * iniparse.y (register_category): Always insert new categories.
3389 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
3391 * inilex.l (yylex): For comments, eat all characters up to, but not
3394 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
3396 * fromcwd.cc (found_file): Use correct package name when adding an
3397 unknown package rather than random stack garbage.
3399 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
3401 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
3403 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
3405 * desktop.cc (etc_profile): Leave environment variables untouched.
3407 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
3409 * autoload.c: Add dynamic load statements for NT/W2K
3410 advapi32 functions not available in 9x/ME.
3411 * main.cc (set_default_dacl): New function.
3412 (WinMain): Call `set_default_dacl' if running on NT/W2K.
3414 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
3416 * ini.h (_CategoryPackage): Change pkg field to pkgname for
3418 * choose.cc: Use pkgname field when referencing _CategoryPackage
3420 (fill_missing_category): Don't add excluded packages.
3421 (default_trust): Ditto.
3422 (_view::insert_pkg): Ditto.
3423 * iniparse.y (register_category): Use consistent variable name.
3425 2001-07-09 Egor Duda <deo@logos-m.ru>
3427 * choose.cc: Use system foreground color for text output.
3429 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
3431 * choose.cc (set_action): Use default trust for determining reinstall
3433 (default_trust): Set default trust.
3434 (pick_line::paint): Allow source selection when reinstalling or
3437 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
3439 * choose.cc (isinstalled): Modify to properly accomodate special case
3441 (set_action): Check downloaded components, not installed components if
3443 (set_existence): Always include full list of files when "download
3446 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
3448 * choose.cc (pick_line::paint): Properly display "na" field when no
3451 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
3453 * choose.cc (scan2): Ensure that older versions do not show up in
3456 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
3458 * choose.cc (set_action): Allow "Skip" action if trust != installed.
3459 * res.rc: Fix copyright.
3461 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
3463 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
3465 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
3467 * choose.cc: Restore some more changes from 2001-06-25, throughout.
3468 (paint): Wrap some excessively long lines.
3469 (pick_line::paint): Ditto. Move the arrow in the "Current" column
3470 right to where it belongs. Move the source checkbox slightly to the
3472 (do_choose): List categories and required packages in setup.log.full.
3474 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
3476 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
3478 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
3480 * ini.h (struct _Info): Add "derived" element.
3481 * choose.cc (scan2): Try to place unknown tar files into proper slot
3482 when package exists in setup.ini but tar file does not.
3484 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
3486 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
3487 (do_choose): Log the first category name.
3489 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
3491 *ini.h: Reapply 2001-06-25 changes.
3492 * choose.cc (add_required): Ditto. Default to "Keep" state if
3493 UNINSTALL and product is installed. Default to curr state if SKIP,
3495 (keep_or_skip): New function. Returns skip or keep state depending on
3496 installed state of package.
3497 (default_trust): Use keep_or_skip to set state.
3498 (_view::insert_pkg): Use calloc to allocate lines.
3499 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
3501 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
3503 * choose.cc: Remove globals full_list, headers, package_indexes and
3505 Add globals cat_headers, pkg_headers and chooser.
3506 (add_required): New function.
3507 (paint): Use the chooser for header details.
3508 Call into the chooser to paint each line.
3509 (list_click): Use new global variables.
3510 Call into the chooser to handle the click.
3511 Repaint the entire view if packages have been added or removed.
3512 (note_width): Get passed a headers struct rather than using a global
3514 (fill_missing_category): New function.
3515 (default_trust): Skip non-"Required" or "Misc" packages.
3516 (pick_line::set_line (Package *)): New function.
3517 (pick_line::set_line (Category *)): New function.
3518 (pick_line::paint): New function.
3519 (pick_line::click): New function.
3520 (_view::_view): New function.
3521 (_view::set_view_mode): New function.
3522 (_view::mode_caption): New function.
3523 (_view::set_headers): New function.
3524 (_view::init_header): New function.
3525 (_view::insert_pkg): New function.
3526 (_view::insert_category): New function.
3527 (_view::insert_at): New function.
3528 (_view::insert_under): New function.
3529 (_view::clear_view): New function.
3530 (viewsplusplus): New function.
3531 (_view::client): New function.
3532 (set_view_mode): Use new chooser functionality.
3533 (set_full_list): Use new global variables.
3534 (create_listview): Instantiate chooser.
3535 Remove all hardcoded headers[] code.
3536 (dialog_cmd): On trust changes, check dependencies.
3537 (getcategorybyname): New function.
3538 (getpackagecategorybyname): New function.
3539 (scan2): Use case-insensitive package comparison.
3540 (do_choose): Use fill_missing_category ().
3541 Show some category data.
3542 * ini.h: Protect against multiple inclusion.
3544 (_CategoryPackage): New struct.
3545 (_Category): New struct.
3546 (_Package): Change category to Category * from char *.
3547 (extern Category category): New global variable.
3548 (extern in ncategories): Ditto.
3549 (getcategorybyname): New prototype.
3550 (catpackagecategorybyname): New prototype.
3551 (register_category): New prototype.
3552 (add_category): New prototype.
3553 * iniparse.y: Parse multiple categories per package.
3554 (category): New global variable.
3555 (ncategories): New global variable.
3556 (new_package): Compare package against NULL, not 0.
3557 (new_requirement): Source formatting fix.
3558 (register_category): New function.
3559 (add_category): New function.
3560 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3561 IDC_CHOOSE_VIEWCAPTION: New control.
3562 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3563 IDC_CHOOSE_VIEWCAPTION: New control.
3564 Increment _APS_NEXT_CONTROL_VALUE.
3566 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
3568 * choose.cc (paint): Wrap excessively long lines.
3569 (list_click): Ditto.
3570 (create_listview): Ditto.
3571 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
3572 setup.log.full. Allow "Yes" for source exists in setup.log.full when
3573 installing from local directories.
3575 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
3577 * choose.cc (set_action): Only clear srcpicked when moving to next
3578 state. Allow source installation if it exists in the current "trust"
3579 state. Don't move to skip state when package is installed.
3580 (list_click): Don't allow source clicking when no source is available.
3581 (set_full_list): Display package when not is_full_action.
3582 * ini.h (is_full_action): Define.
3584 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
3586 * install.cc (check_for_old_cygwin): New function. First stab at
3587 checking for old cygwin versions.
3588 (do_install): Call check_for_old_cygwin if there were no errors during
3591 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
3593 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
3594 than zeroed "source" element.
3596 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
3598 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
3599 the highest available "hole" in the trust array.
3601 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
3603 * choose.cc (set_existence): Use pointer method for indexing in trust
3605 (create_listview): Ditto.
3606 (scan2): Ditto. Also, use consistent variable name for indexing into
3608 * ini.h (Package): Reorganize info array for easier scanning.
3610 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
3612 * choose.cc (isinstalled): Eliminate special download only test.
3613 (set_action): Don't move to next state if in ACTION_SAME range and not
3615 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
3617 (do_choose): Sort packages after all packages have been read.
3618 Accomodate the fact that first element in trust array is empty so that
3619 log files don't report the wrong trust value.
3620 * iniparse.y (new_package): Malloc space for package name or suffer
3623 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
3625 * ini.h (Dependency): New structure. Declare new function.
3626 * inilex.l (yylex): Detect new setup.ini options - category and requires.
3627 * iniparse.y: Declare new setup.ini token values.
3628 (yyparse): Parse new token values.
3629 (new_requirement): New function.
3631 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
3633 * choose.cc (read_installed_db): Eliminate obsolete code.
3635 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
3637 * choose.cc (set_action): Set trust on "redo".
3638 (_Info::_Info): New constructor.
3639 (read_installed_db): Use new constructor. Use trusts type for
3641 * ini.h (struct _Info): Label struct, add constructor.
3642 (Package): Make installed_ix a type 'trusts.'
3643 * install.cc (uninstall_one): Unset any installed info for current
3645 (install_one): Allocate new Info struct for installed reflecting new
3647 (do_install): Don't output line to installed.db if package is being
3650 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
3652 * choose.cc (getpkgbyname): Use consistent method for scanning package
3655 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
3657 * choose.cc: Add some comments.
3658 (getpkgbyname): Use strcasecmp for comparisons.
3660 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
3662 * install.cc (do_install): Avoid checking for download action if
3663 package wasn't currently retrieved.
3665 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
3667 * choose.cc: Eliminate extra array throughout. Use element in package
3668 structure instead. Use pointers rather than array indexes where
3670 (set_action): New function to set next action based on current.
3671 (choose_caption): New function. Returns display caption.
3672 (check_existence): Change arguments. Use pointer to 'info' structure.
3673 (set_existence): Use pointer rather than array index.
3674 (default_trust): Use trusts enum for second argument.
3675 (set_full_list): Honor exclude element in package structure.
3676 (build_labels): Eliminate.
3677 (base): Make global. Use const char * argument.
3678 (get_package_version): Eliminate.
3679 (getpkgbyname): New function.
3680 (read_installed_db): Use parse_filename to get version info.
3681 * desktop.cc (make_passwd_group): Use getpkgbyname function.
3682 * download.cc (get_file_size): const argument.
3683 (do_download): Use is_download_action to determine when something
3684 should be downloaded.
3685 * filemanip.h: Add some functions.
3686 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
3687 * ini.h: Use enums for actions and trusts.
3688 (is_download_action): New macro.
3689 (is_upgrade_action): Ditto.
3690 (is_uninstall_action): Ditto.
3691 (struct Package): Add new fields.
3692 * inilex.l (yylex): Detect new setup.ini options.
3693 * iniparse.y: Declare new tokens.
3694 (yyparse): Detect exclude keyword. Fill out version field even if
3696 (new_package): Use greater granularity when allocating package array to
3697 avoid repeated calls to realloc.
3698 * install.cc (exists): const argument.
3699 (uninstall_one): Take pkg argument.
3700 (install_one): Ditto. Eliminate unneeded arguments which can be
3701 derived from package info.
3702 (do_install): Iterate over package array using a pointer. Use
3703 is_download_action to control when package should be downloaded.
3704 * tar.cc (tar_open): const argument.
3705 * tar.h: Refloect const argument.
3707 2001-05-31 Michael Chase mchase@ix.netcom.com
3709 * main.cc (WinMain): Add setup version to starting setup.log entry
3711 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
3713 * inilex.l: Add + to list of valid string characters.
3715 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
3717 * Makefile.in: Remove more stuff in the clean target.
3719 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
3721 * Makefile.in: Correctly generate iniparse.h.
3723 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
3725 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
3726 * geturl.h: Change declaration of `get_url_to_file' accordingly.
3727 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
3728 Set member `ftp_auth'.
3729 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
3730 to constructors of derived classes.
3731 (NetIO::get_ftp_auth): New method.
3732 * netio.h: Change class definition accordingly.
3733 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
3734 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
3735 Add code for ftp authentication retry.
3736 * nio-ftp.h: Change class definition accordingly.
3737 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
3738 Add code for ftp authentication retry in case of proxy connection.
3739 * nio-http.h: Change class definition accordingly.
3740 * res.rc: Add FTP authentication dialog.
3741 * resource.h: Add new constants used in res.rc.
3742 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
3744 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
3746 * res.rc (IDD_SPLASH): Add a copyright year.
3748 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
3750 * Makefile.in: Make iniparse.y produce a c++ file.
3751 * choose.cc (set_existence): Revert 2001-05-27 change.
3752 * ini.cc: Remove "C" from declaration of yyparse.
3753 * iniparse.y (yyparse): Fill out version field by default when a binary
3754 install is detected and no version has been set yet.
3755 * install.cc (do_install): Mount things earlier so that we can use
3756 proper mount table settings. Don't remove mounts since they are now
3758 * mount.cc (create_mount): Reread the mount table after establishing a
3760 (read_mounts): Explicitly clear root_here to allow multiple uses of
3761 this function. Ensure that there is no garbage in the table when we've
3762 exhausted all of the mounts in the registry.
3763 (cygpath): Accomodate ./ in path.
3765 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
3767 Use parse_filename method to parse filenames throughout. Use
3768 get_root_dir to retrieve the current root directory throughout. Set
3769 const in argument list, where appropriate, throughout.
3770 * choose.cc (set_existence): Detect case of uninstalled package with no
3772 (parse_filename): New function.
3773 * filemanip.h (fileparse): New structure.
3774 * mount.cc (read_mounts): Remember where we found the root mount.
3775 (set_root_dir): New function.
3776 (get_root_dir): Ditto.
3777 * mount.h: Declare new functions.
3778 * site.cc (get_root_dir_now): Renamed from get_root_dir.
3779 (save_site_url): Use new function name.
3780 (get_initial_list_idx): Ditto.
3782 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
3784 * choose.cc: Use a constant throughout to deal with chooser icon
3786 * res.rc (IDD_CHOOSE): Increase size of chooser box.
3788 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
3790 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
3791 use when Redownload or Sources Only selected.
3793 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
3795 Reformat file after botched patch formatting.
3796 * choose.cc (which_trust): Eliminate variable.
3797 (default_trust): Don't set which_trust.
3798 (do_choose): Use selected trust when reinstalling or installing source.
3800 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
3802 Change concat to cygpath throughout.
3803 Change map_filename to cygpath throughout.
3804 * concat.cc (vconcat): New function.
3805 (concat): Use vconcat.
3806 * concat.h: Reflect above.
3807 * install.cc (map_filename): Eliminate.
3808 (install_one): Free dest_file.
3809 * mount.cc (find2): Expect input key to be pointing to mount record.
3810 (in_table): New function.
3811 (is_admin): Move from root.cc.
3812 (read_mounts): New function.
3813 (path_prefix_p): New function.
3814 (cygpath): New function.
3815 * mount.h: Define new functions and structure.
3816 * root.cc (in_table): Move to mount.cc.
3817 (do_root): Call read_mounts to initialize root stuff and mount table.
3818 * site.cc (get_root_dir): Ditto.
3820 2001-05-09 Matt Hargett <matt@use.net>
3822 * Makefile.in: Remove *.rc from clean.
3824 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
3826 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
3827 TRUST_PREV which produced "0" versions.
3829 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
3831 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
3832 _APS_NEXT_CONTROL_VALUE to account for addition of
3833 IDC_CHOOSE_INST_TEXT.
3834 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
3835 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
3836 hot keys to select Prev, Curr, Exp.
3837 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
3838 define for LOOP_PACKAGES to include new actions ACTION_REDO and
3840 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
3841 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
3842 source Checkbox to use.
3843 (build_labels): Add logic to allow for selection of Source only
3844 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
3845 current version binary.
3846 (dialog_proc): Add conditional display for file selection prompt based
3847 on download vs install using IDC_CHOOSE_INST_TEXT.
3848 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
3849 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
3850 handle the instance where Source Download/Install was selected. Modify
3851 log file to store appropriate information regarding Action selected and
3852 the new actions that were added (I.E.: ACTION_REDO and
3854 * download.cc: Add include for <unistd.h> and "port.h".
3855 (download_one): Modify parameter list to include the selected action
3856 for the file to be downloaded. Modify size check against expected size
3857 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
3858 .tmp file to also remove the destination file if exists due to ability
3859 to redownload source and binary now.
3860 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
3861 calculation of Download Bytes. Modify to also use ACTION_REDO and
3862 ACTION_SRC_ONLY in determining files selected for download.
3863 * install.cc (uninstall_one): Add check to treat a Reinstall like an
3864 upgrade so current version will be uninstalled prior to reinstall.
3865 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
3866 uninstalling and installing binary and source packages.
3867 * desktop.cc (make_passwd_group): Modify logic to account for a Source
3868 only cygwin install when checking for cygwin to determine need for
3869 mkpasswd and mkgroup.
3871 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
3873 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
3874 Removed WS_DISABLED from "OK" buttons to accomodate default focus
3875 changes in net.cc and source.cc.
3876 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
3877 a default is selected.
3878 * winsup/cinstall/source.cc (dialog_proc): Ditto.
3879 (check_if_enable_next): Removed. No longer needed since a radio button
3880 will always be selected.
3881 (load_dialog): Removed call to check_if_enable_next.
3882 (dialog_cmd): Ditto. Also added default to switch.
3884 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
3886 * res.rc: Resize affected text.
3888 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
3890 * net.cc (do_net): Default to direct download.
3891 * res.rc: Move default selections to the top.
3893 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
3895 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
3896 Must now include <windows.h> and not the pieces.
3897 * choose.cc (create_listview): Clean up type mismatch problems.
3898 * dialog.h (NEXT(id)): Ditto.
3899 * geturl.cc (dialog): Ditto.
3900 * install.cc (dialog): Ditto.
3901 * splash.cc (load_dialog): Ditto.
3903 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
3905 * tar.cc (class gzbz): Define dummy virtual functions.
3907 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
3909 * Makefile.in: Add bz2 include/library support.
3910 * filemanip.h: New file.
3911 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
3913 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
3914 (read_installed_db): Ditto.
3916 * fromcwd.cc (found_file): Ditto.
3917 (do_fromcwd): Ditto.
3918 * tar.cc (class gzbz): New super class for uncompression support.
3919 (gz): New class for gzip support.
3920 (bz): New class for bzip2 support.
3921 (tar_open): Use gzbz class to control file opening.
3922 (tar_ftell): Ditto for returning position in file.
3923 (skip_file): Ditto for reading file.
3924 (tar_next_file): Ditto.
3925 (tar_read_file): Ditto.
3926 (tar_close): Ditto for close.
3928 * zlib/configure.in: Force NM substitution.
3930 * source.cc (do_source): Default to "Install from Internet".
3932 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
3934 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
3936 * choose.cc (list_click): Correct inability to select source code for
3938 (scan2): Modify to skip source tarballs when scanning disk for
3939 installable packages.
3941 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
3943 * install.cc: install sources into /usr/src instead
3944 of /, also include the sizes of source tarballs
3946 * download.cc: include sizes of source tarballs in
3947 total_download_bytes.
3949 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
3951 * download.cc (get_file_size): Remove `static'.
3953 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
3955 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
3957 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
3959 * choose.cc (paint): Modify message for nothing to download vs
3960 nothing to install/update based on installation method.
3961 (list_click): Modify to skip versions in selection process if
3962 installing from local directory and installation file does not exist.
3963 Also leaves Source Action set to N/A if the source file does not exist
3964 and installing from local directory.
3965 (check_existence): New method to check current existence of installation
3966 files based on selected installation method.
3967 (set_existence): New method to set the current existence of installation
3968 files based on selected installation method.
3969 (best_trust): Modify decision process for best trust to base decision on
3970 current trust selected (IE: Prev, Curr, or Test), existence of file and
3971 installation method selected.
3972 (default_trust): Add logic to capture the current trust level and the
3973 trust selected for the given package.
3974 (set_full_list): Expand decision criteria for displaying a package in
3975 the selection list to include file existence/non-existence and selected
3976 installation method.
3977 (build_labels): Modify criteria for label addition to include
3978 installation method and file existence/non-existence.
3979 (create_listview): Modify to establish package trust level for each
3980 package before setting up the display list. Also modification to set
3981 current trust button as the default.
3982 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
3983 a reset of the selection list in addition to setting the default trust.
3984 (get_package_version): New method to provide reusable code for
3985 determining the package version from the file name for a specified
3987 (scan2): Modify to use new method get_package_version and
3988 also enhance handling of the build for the structures package and
3990 (read_installed_db): Modify to use the new method
3991 get_package_version and also enhance handling of the build for the
3992 structures package and extra.
3993 (do_choose): Add additional initialization of package and extra
3994 structures. Modify to use read_installed_db all the time despite
3995 install method. Modify output to setup.log.full log file to increase
3996 readability by adding additional spacing, expanded code and available
3998 * ini.h: Add new fields install_exists, source_exists and
3999 partial_list_display to the structure definition for package.
4000 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
4001 pushbuttons by replacing with Radio Buttons thus allowing the
4002 operator to better determine which is selected.
4004 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
4006 * download.cc (do_download): Add new variables total_download_bytes and
4007 total_download_bytes_sofar for download progress meter. Add loop
4008 to accumulate the total bytes to download from the selected packages.
4009 * geturl.cc: Add state.h and diskfull.h to include list. Add new
4010 variables gw_iprogress, gw_pprogress, gw_progress_text,
4011 gw_pprogress_text, and gw_iprogress_text to allow for addition of
4012 total packages download progress meter and disk full percent
4013 progress meter. Add variables total_download_bytes and
4014 total_download_bytes_sofar for use by progress meters.
4015 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
4016 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
4017 allow for addition of total packages download progress meter and disk
4018 full percent progress meter.
4019 (init_dialog): Ditto.
4021 (get_url_to_file): Ditto.
4022 * geturl.h: Add external definition for total_download_bytes and
4023 total_download_bytes_sofar.
4024 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
4025 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
4026 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
4028 * resource.h: Add new fields for progress meters and text and update
4029 _APS_NEXT_CONTROL_VALUE.
4031 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
4033 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
4036 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
4038 * download.cc (download_one): Add missing parenthesis.
4040 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
4042 * download.cc (get_file_size): New function. Eliminates the need
4044 (download_one): Call `get_file_size' instead of `stat'. This
4045 workarounds a problem with mingw's `stat' call.
4047 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
4049 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
4050 This is to allow cinstall to build with 2.95.2-7 and to make the
4051 use of headers consistent.
4053 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
4055 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
4057 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
4059 * winsup/cinstall/res.rc: Added accelerators and improved focus
4062 2000-12-10 Egor Duda <deo@logos-m.ru>
4064 * choose.cc (paint): Use system background color for text output.
4066 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
4068 * Makefile.in: Use CXX for linking and for compiling .cc files.
4069 * configure.in: Find correct c++ compiler.
4070 * configure: Regenerate.
4072 2000-11-17 DJ Delorie <dj@redhat.com>
4074 * splash.cc (load_dialog): Make message more obvious.
4077 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
4079 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
4080 necessary for newer compilers.
4082 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
4084 * desktop.cc: Include "ini.h" and "version.h".
4085 (make_passwd_group): Skip the function on 9x/ME boxes when an
4086 older version of Cygwin has been installed which doesn't
4087 support mkpasswd/mkgroup on 9x/ME.
4088 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
4091 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
4093 * desktop.cc (make_passwd_group): Don't exit when started
4094 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
4096 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
4098 * install.cc (do_install): Add call to set_cygdrive_flags to sync
4100 * mount.cc (set_cygdrive_flags): New function.
4101 (get_cygdrive_flags): Ditto.
4102 (default_cygdrive): Ditto.
4103 (set_cygdrive_flags): Ditto.
4104 * mount.h: Add prototype for set_cygdrive_flags.
4106 2000-10-23 DJ Delorie <dj@redhat.com>
4108 * ini.h: add source actions
4109 * fromcwd.cc: check for available sources
4110 * res.rc: add checkbox bitmaps
4113 * choose.cc: add source column
4114 * download.cc: download sources if called for
4115 * install.cc: [un]install sources too
4117 2000-10-22 DJ Delorie <dj@redhat.com>
4119 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
4120 ignore it wrt full_list if there's already a version installed.
4121 (do_choose): Sort the list.
4122 (package_sort): New.
4124 2000-10-12 DJ Delorie <dj@redhat.com>
4126 * res.rc: Add more error strings.
4127 * resource.h: Ditto.
4128 * iniparse.y (new_package): re-initialize if needed.
4129 * download.cc (do_download): Keep track of errors; notify and
4131 * install.cc (do_install): Ditto.
4133 2000-10-05 DJ Delorie <dj@redhat.com>
4135 * Makefile.in: fix %.cc rule
4137 2000-10-04 DJ Delorie <dj@redhat.com>
4139 * desktop.cc: quote HOME and USER, don't . ./.profile
4141 * choose.cc (build_labels): don't include in partial list just
4142 because there's a *previous* version available.
4144 * install.cc (do_install): if installing from local directory with
4145 setup.ini and the file isn't found, look in "." also. Note errors.
4147 2000-10-02 DJ Delorie <dj@redhat.com>
4149 * ini.cc (do_ini): save setup.ini locally
4151 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
4153 * desktop.cc: quote escapes in prompt
4155 2000-10-02 Jason Tishler <jt@dothill.com>
4157 * root.cc (is_admin): New function.
4158 (read_mount_table): Check for administrative priviledges and set
4159 installation scope as appropriate.
4161 2000-09-28 DJ Delorie <dj@redhat.com>
4163 * nio-ftp.cc (ftp_line): handle continuations more robustly
4165 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
4167 * res.rc: increased the size of the site dialog (IDD_SITE) & the
4168 corresponding list box to provide for more URL's to be listed.
4169 Modified the position of the Back, Next and Cancel buttons to
4170 correspond to the new size of the dialog.
4172 2000-09-13 DJ Delorie <dj@redhat.com>
4174 * install.cc (do_install): update disk fullness once per package
4175 to improve performance
4177 * choose.cc (create_listview): call ReleaseDC
4179 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
4181 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
4182 returned, as it seems Samba 2.0.6+ returns this instead of
4183 ERROR_PATH_NOT_FOUND
4185 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
4187 * site.cc (get_initial_list_idx): Don't default to saved URL if it
4190 2000-09-07 DJ Delorie <dj@redhat.com>
4192 * splash.cc: use version.h, not local decl
4193 * res.rc: add "old version" message
4196 * fromcwd.cc (canonicalize_version): make global
4197 * iniparse.y: add setup-version support, fix bug in blank line
4200 * inilex.l: add [exp] as alias for [test], add setup-version
4201 * Makefile.in (version.c): add setup-version tag
4203 * desktop.cc (do_desktop): remove 1.1 version number
4204 (do_desktop_setup): ditto
4206 * ini.cc (do_ini): zero out package list just in case we redo it.
4208 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
4210 * choose.cc (list_click): Check for nindexes==0; if so, return.
4212 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
4214 * localdir.cc: new, local package directory selection dialog; cd
4215 into selected directory
4216 * Makefile.in (OBJS): add localdir.o
4217 * dialog.h: add prototype for do_local_dir
4218 * main.cc (WinMain): initialize local_dir to cwd; add call to
4220 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
4221 * source.cc (dialog_cmd): ditto
4222 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
4223 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
4224 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
4225 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
4226 * state.h: add local_dir variable
4228 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
4230 * desktop.cc: added logic to handle to the new dialog and to
4231 default the setting for the new checkboxes based on whether the
4232 desktop icon or start menu link already exist.
4233 (desktop_icon): correction to desktop directories for desktop icon
4234 creation. Additional logic added for Win95 which does not appear
4235 to have Common Directories so if Common selected and null uses
4237 (start_menu): Additional logic added for Win95 which does not
4238 appear to have Common Directories so if Common selected and null
4239 uses normal directory.
4240 (do_desktop_setup): moved the saving of the icon, creation of the
4241 bat file, profile, passwd, Start Menu link and desktop shortcut to
4242 this method from do_desktop. Made the creation of the desktop
4243 icon and start menu link conditional on settings of new dialog
4244 created for desktop.
4245 * install.cc (do_install): changed next from IDD_S_DESKTOP to
4247 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
4248 * res.rc: added new resource to create a desktop dialog with 2
4249 checkboxes for creating the desktop icon and start menu link.
4250 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
4251 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
4252 * state.h: added root_menu and root_desktop for use in dialog.
4254 2000-08-29 DJ Delorie <dj@redhat.com>
4256 * choose.cc (scan_downloaded_files): scan for existing files, so
4257 that the user only sees new downloads.
4259 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
4260 * site.cc (do_site): if we can't download the mirror list, go back
4261 to the net setup box to choose another transport.
4262 * autoload.c: add more functions
4263 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
4264 * resource.h: add WININET message
4266 * net.cc (do_net): no longer default to IE5
4267 * simpsock.h (class SimpleSocket): new, simplify socket operations
4268 * simpsock.cc: ditto
4269 * nio-http.h: new, for direct http protocol
4270 * nio-http.cc: ditto
4271 * nio-ftp.h: new, for direct http protocol
4273 * netio.cc (set_url): move initialization here to handle redirections
4274 (open): add direct http/ftp
4275 * netio.h (NetIO::set_url): new
4277 * log.cc (log_save): create directory for log if needed
4279 * hash.cc, hash.h: new
4280 * Makefile: add hash.o
4281 * choose.cc: enable "uninstall" option
4282 * download.cc: invert action test to accomodate uninstalling
4283 * ini.h: add ACTION_UNINSTALL
4284 * install.cc: add uninstall functionality
4285 * res.rc: make install tag changeable
4286 * resource.h: add uninstall resources
4288 * res.rc: update mirror list URL
4290 2000-08-24 DJ Delorie <dj@redhat.com>
4292 * log.cc, log.h: new files
4293 * Makefile.in (OBJS): add log.o
4294 * tar.cc: use exit_setup instead of exit
4295 * dialog.cc (fatal): use exit_setup instead of ExitProcess
4296 * msg.cc (fatal): ditto
4297 * install.cc (dialog_cmd): ditto
4298 * ini.cc (do_ini): ditto
4299 * main.cc (main): add logging
4300 * source.cc (do_source): ditto
4301 * root.cc (do_source): ditto
4302 * site.cc (do_site): ditto
4303 * other.cc (do_other): ditto
4304 * net.cc (do_net): ditto
4305 * choose.cc (do_choose): ditto
4306 * download.cc (do_download): ditto
4307 * install.cc (do_install): ditto
4308 * msg.cc (fatal): ditto
4310 * res.rc: mark password boxes as *being* password boxes.
4312 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
4313 calls won't use the same buffer.
4314 * choose.cc (create_listview): don't default to full list if no changes
4315 (base): return computed value, not temporary :-(
4316 (do_choose): don't use installed.db if we're only downloading.
4318 2000-08-23 DJ Delorie <dj@redhat.com>
4320 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
4321 * nio-ie5.h (flush_io): new
4322 * netio.cc (load_dialog): note when we're initializing the dialog
4323 box, and ignore changes to the edit fields then.
4325 2000-08-21 DJ Delorie <dj@redhat.com>
4329 * fromcwd.cc (found_file): don't remember the canonicalized version
4331 * choose.cc (paint): print "nothing to do" message when list is empty.
4332 (build_labels): Use version "0.0" if no version is available.
4333 (create_listview): default to full list if nothing to install/update.
4334 (base): new, returns basename of file
4335 (read_installed_db): compare base names, not full paths
4337 2000-08-11 DJ Delorie <dj@redhat.com>
4339 * choose.cc: add new chooser dialog
4340 * fromcwd.cc: use IDD_CHOOSE
4341 * ini.cc: use IDD_CHOOSE
4342 * main.cc: use IDD_CHOOSE
4343 * ini.h: cosmetic changes
4344 * res.rc: add choose dialog, bitmaps
4345 * choose-spin.bmp: new
4346 * choose-rtarrow.bmp: new
4347 * resource.h: add choose dialog controls
4349 * mount.cc: remove debug statement
4351 2000-08-08 DJ Delorie <dj@redhat.com>
4353 * Makefile.in (version.c): make version checking more robust
4354 * splash.cc (load_dialog): handle case where there's no version
4356 2000-08-07 DJ Delorie <dj@redhat.com>
4358 * (all): add cvsid tags
4359 * Makefile.in: generate version.c from ChangeLog, add splash.o
4361 * res.rc: add splash screen
4363 2000-08-02 DJ Delorie <dj@redhat.com>
4365 * net.cc: remove proxy password code
4366 * res.rc: remove proxy user/pass from net, add auth dialogs
4367 * netio.cc,h: add sys/proxy auth methods
4368 * nio-ie5: use them, check for http status codes
4369 * state.h: add system authorization
4371 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
4374 2000-08-02 Norman Vine <nhv@yahoo,com>
4376 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
4378 2000-08-01 DJ Delorie <dj@redhat.com>
4380 * postinstall.cc (each): don't rename files we ignore
4381 (do_postinstall): set CYGWINROOT to root_dir, chdir there
4383 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
4385 2000-07-31 DJ Delorie <dj@redhat.com>
4387 * desktop.cc: reverse PATH so /usr/bin precedes /bin
4389 2000-07-18 DJ Delorie <dj@redhat.com>
4391 * autoload.c: new, autoload dlls that might not be available.
4392 * Makefile.in (OBJS): add autoload.o
4394 * res.rc: rewrite root options (text/binary, system/user) to be
4397 * site.cc (get_site_list): trim displayed URL, sort by domain
4399 * net.cc (do_net): make IE5 default to checked, for now
4401 * choose.cc (do_choose): sort packages correctly
4402 * ini.cc (do_ini): handle parse errors more gracefully
4404 (fprintf): line buffer output
4405 (do_ini): if we can't load setup.ini, go back to the site list.
4406 * ini.h: add "unknown" trust level
4407 * inilex.l: absorb unknown trust levels and key/value pairs,
4408 add line number logic
4409 * iniparse.y: handle parse errors more gracefully.
4410 * install.cc: skip packages with no valid install entry
4412 2000-07-17 DJ Delorie <dj@cygnus.com>
4414 * coding standards fixups, many files
4415 * mkdir.cc: warn about deletions *before* deleting them
4417 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
4419 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
4421 * other.cc (dialog_cmd): save download site URL
4422 * site.cc (get_root_dir): new
4423 (save_mirror_site): new
4424 (dialog_cmd): save download site URL
4425 (get_site_list): make list big enough to add prev site
4426 (get_initial_list_idx): new, read last-used URL from file and
4427 append it to site_list
4428 (do_site): call get_initial_list_idx
4430 * concat.cc (concat): avoid segfault when first parm is null
4432 2000-07-13 DJ Delorie <dj@cygnus.com>
4434 * postinstall.cc: new
4435 * Makefile.in: add postinstall.o
4436 * concat.h: add backslash ()
4438 * desktop.cc (etc_profile): don't do postinstall
4439 (backslash): moved to concat.cc
4441 (make_postinstall_script): run directly
4442 (do_desktop): chain to do_postinstall
4443 * dialog.h: add exit_msg, do_postinstall
4444 * download.cc: use exit_msg
4446 * main.cc: add postinstall, exit_msg
4447 * resource.h: add postinstall
4448 * README: add more to-do items
4450 2000-07-12 DJ Delorie <dj@cygnus.com>
4452 * desktop.cc: add /etc/postinstall/ support
4453 * install.cc: add more "standard" directories
4455 2000-07-11 DJ Delorie <dj@cygnus.com>
4457 * desktop.cc: create /etc/profile
4458 * desktop.cc: fix include syntax
4459 * Makefile.in: add auto-dependencies
4460 * root.cc: support system vs user
4468 * desktop.cc: make sure we use backslashes, not slashes.
4469 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
4470 * geturl.cc: change math for percentage to avoid overflow
4472 * download.cc: post "download complete" message.
4473 * root.cc: pre-fill in defaults if needed, don't start
4474 browse at root_dir unless it's set.
4475 * desktop.cc: quote $PATH in case it has spaces in it
4477 2000-07-10 DJ Delorie <dj@cygnus.com>
4479 * Makefile.in: add desktop.o and mklink2.o
4480 * dialog.h: add do_desktop
4481 * install.cc: create standard directories, call do_desktop
4482 * res.rc: add cygwin.ico as a file also
4483 * desktop.cc: new, do shortcuts, batch files, and icons
4484 * mklink2.c: new, for COM
4485 * README: update to-do list
4487 2000-07-10 DJ Delorie <dj@cygnus.com>
4489 * ini.cc (do_ini): don't worry about timestamps if we're not
4490 actually installing.
4492 2000-07-09 DJ Delorie <dj@cygnus.com>
4494 * Makefile.in: add -I$(srcdir) for ini.h
4496 2000-07-06 DJ Delorie <dj@cygnus.com>
4498 * Replace everything with a new GUI version
4499 * zlib/gzio.c: add gzctell() for progress displays
4501 2000-06-22 DJ Delorie <dj@cygnus.com>
4503 * setup.c (tarx): re-add call to write_pkg()
4505 2000-06-07 DJ Delorie <dj@cygnus.com>
4507 * cygcalls.c: new, call cygwin1.dll functions directly
4508 * cygcalls.h: header for same
4509 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
4510 exes, fix cinstall.rc dependencies.
4511 * path.c: remove unneeded code
4512 * setup.c: use cygcalls instead of xcreate_process.
4513 uncompress embedded files with zlib
4514 add "-d" for "download only"
4516 postpone mount changes until very end
4517 add download progress indicators
4518 pack multi-column listings more
4519 auto-delete temp files
4520 customize banner message according to options
4521 prompt user for text/binary mounts
4522 add warnings about empty setup directory, root installs, etc
4524 2000-05-24 DJ Delorie <dj@cygnus.com>
4526 * tar.c: New file; built-in tar using zlib.
4527 * tar.h: New file; header for same.
4528 * ctar.c: New file; test program for same.
4529 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
4530 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
4531 * setup.c (tarx): add support for built-in tar
4532 (main): accept unix-style slashes, check root dir for drive letters,
4533 warn about installing in /, make sure cwd is empty for internet installs,
4534 defer mounts to end of install, support built-in tar.
4536 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
4538 Fix compiler warnings throughout.
4539 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
4541 * setup.c: Make 'root' global.
4542 (istargz): Return pointer to "stem" of matched .tar.gz file.
4543 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
4544 bogus check_for_installed check.
4545 (recurse_dirs): Add preliminary support for .bat file execution.
4546 (create_uninstall): Eliminate unneeded parameter.
4547 (do_start_menu): Ditto.
4549 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
4550 scanning for the version number. Eliminate unneeded argument to
4552 (getdownloadsource): Add 'name' to list of names rather than url.
4553 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
4554 unneeded argument in mkmount and do_start_menu.
4556 2000-05-18 DJ Delorie <dj@cygnus.com>
4558 * setup.c (optionprompt): allow multi-column, clean up message
4559 about more options, be more robust about user input.
4560 (getdownloadsource): make the mirror URL a macro.
4561 (main): do mounts after done prompting user.
4563 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
4565 * setup.c (cleanup): Inverse order of deletion stands a better chance
4566 of deleting cygpath.exe. Still seems to suffer from occasional races,
4568 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
4570 (output_file): Defend against an unlikely handle leak.
4571 (main): Don't set up signal handling until we have something special to
4574 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
4576 * path.c (kill_cygpath): Delete function.
4577 (exit_cygpath): Make more defensive so that it can be called at any
4579 (cygpath_pipe): Don't set up signal here. Do it in main().
4580 * setup.c (istargz): New function.
4581 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
4582 inexplicably fails on samba mounted partitions. Use istargz to match
4584 (processdirlisting) Use istargz to match tar.gz tail.
4585 (cleanup): Renamed from filedel.
4586 (cleanup_on_signal): New function. Called on CTRL-C.
4587 (main): Record handle of main thread so that it can be suspended when
4588 CTRL-C occurs. Set up cleanup_on_signal signal handler.
4590 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
4592 * setup.c (do_start_menu): Don't concatenate paths to already built
4595 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
4597 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
4598 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
4600 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
4602 * setup.c (filedel): Call exit_cygpath here so that we can be assured
4603 that cygpath subprocess has died. This allows us to delete cygpath.exe
4605 (optionprompt): Initialize response to -1 so that second screen of
4606 mirrors will appear.
4607 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
4608 * setup.h: Reflect init_pkgs prototype change.
4610 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
4612 * pkg.c (init_pkgs): Accept an argument to control what root registry
4614 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
4615 * setup.h: Reflect init_pkgs prototype change.
4617 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
4619 * error.c (winerror): Respond to gcc warning.
4620 * path.c (cygpath_pipe): Ditto.
4621 * setup.c (filedel): Call sa_cleanup on deleteme.
4622 (create_shortcut): Coerce argument to eliminate compiler warning.
4623 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
4624 (refmatches): New function. Tests if ref is contained in a list of
4625 packages to install.
4626 (filematches): New function. Tests if filename matches one of a list
4627 of packages to install.
4628 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
4629 test to accomodate _tar.gz.
4630 (prompt): Ensure that stdout is flushed prior to asking for input.
4631 (findhref): Initialize variables to quiet a compiler warning.
4632 (processdirlisting): Accept list of packages to install. Special case
4633 cygwin tar file version number.
4634 (downloaddir): Accept list of packages to install.
4635 (downloadfrom): Ditto.
4636 (create_uninstall): Eliminate unneeded variables. Quote arguments to
4638 (do_start_menu): Don't create uninstall bat file if updating or user
4639 specified a list of packages.
4640 (mkmount): Eliminate unneeded variables.
4641 (get_pkg_stuff): New function. Checks for previous unversioned
4643 (main): Accept -u and -f options and package names on the command line.
4644 Use get_pkg_stuff to initialize package information. Umount /etc.
4645 Call recurse_dirs and downloadfrom with list of package to install.
4646 Ensure that all /usr/local directories are created. Output
4647 installation time to setup.log.
4648 * setup.h: Add some prototypes.
4649 * xsystem.c (xcreate_process): Eliminate unneeded variable.
4651 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
4653 * setup.c (optionprompt): Don't overlap display of already seen options
4655 (geturl): Print name of site which we're connecting to rather than "ftp
4657 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
4658 test too simplistic?
4659 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
4660 problems when user chooses x:\ as their root.
4661 (main): For now, default to "non-update" mode. Allow -u option to
4664 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
4667 * setup.c (tarx): Skip already installed or older packages. Report
4668 when a package has been updated.
4669 (processdirlisting): Skip already installed or older packages.
4670 (main): Detect -f option for forced installation. Initialize pkg stuff
4672 * setup.h: Add pkg definitions.
4674 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
4676 * setup.c (findhref): Return NULL on empty string. Eat any trailing
4678 (processdirlisting): Attempt to limit recursively processing the same
4681 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
4683 * setup.c (filedel): New function.
4684 (output_file): Keep track of files extracted from setup.exe for
4685 subsequent deletion.
4686 (tarx): Close process handle of child tar process or suffer handle
4688 (getdownloadsource): Close mirror file so that it can be unlinked.
4689 (processdirlisting): Return total number of files extracted.
4690 (main): Initialize array of files to delete. Ensure that files are
4691 closed on exit. Make the directory that setup.exe is started from ==
4692 the directory where temporary files are placed. Issue an error if no
4693 files were found to download.
4694 * xsystem.c (xcreate_process): Close the thread handle. Close the
4695 process handle if we waited for it to exit.
4697 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
4699 * setup.c (main): Change version number output.
4701 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
4703 * setup.c (tarx): Use full path name to tar executable.
4704 (main): Build full pathname to tar executable. Create /usr/local/etc
4707 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
4709 * setup.c (findhref): Change method for scanning for href= to choose
4710 the last one on the line. This is still not foolproof and probably
4711 will need to be changed eventually. Don't abort if no "size" field is
4713 (processdirlisting): Fix boolean algebra.
4715 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
4717 * main.c (tarx): Add some code for future task of unmounting
4718 directories encountered in tar file.
4720 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
4722 * setup.c (findhref): Decode file size, when appropriate.
4723 (needfile): New function. Returns 1 when file should be
4725 (processdirlisting): Always download if file size does not
4726 match. Prompt when download fails for some reason.
4727 (getdownloadsource): Accomodate findhref argument changes.
4729 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
4731 Throughout, use global session handle rather than reinitializing for
4732 each connect. Don't pass session as an argument to setup.c functions.
4733 * setup.c (geturl): Only issue "Connecting to.." message when using
4734 http or first time for ftp since subsequent connections will be fast.
4735 (processdirlisting): Allocate space for "N" when user has specified
4736 "N"ever option so that it can be subsequently freed.
4737 (main): Abort if we can't get the list of mirrors.
4739 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
4741 * setup.c (main): Umount /bin and /lib.
4743 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
4745 * setup.c (main): Create an empty /var/run/utmp.
4747 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
4749 * Makefile.in: Add umount to list of files to include in setup.exe.
4750 * setup.c (xumount): New function for unmounting directories.
4751 (main): Unmount /usr.
4752 (mkmount): Unmount "unix directory" before trying to figure out where
4753 to create the directory.
4755 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
4757 * setup.c (mkmount): Use xcreate_process to start mount process,
4759 (main): Don't do buffering on stdout or prompts won't be displayed
4760 correctly if running in a cygwin shell with CYGWIN=tty.
4762 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
4764 * setup.c (main): Remove the CYGWIN environment variable before
4765 starting any cygwin programs.
4767 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
4769 * setup.c (geturl): Use alternative method for finding filename part of
4771 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
4772 (downloaddir): Unlink file containing dir listing.
4773 (downloadfrom): Ditto.
4775 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
4777 * setup.c (main): Disallow running setup.exe from the "root".
4779 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
4781 Use "warning" function, where appropriate, to output warnings.
4782 * setup.c (warning): New function -- outputs warning to console and log
4784 (tarx): Fix index used to reset file protection.
4785 (main): Open the log file earlier so that more stuff can be sent to it.
4787 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
4789 * setup.c (processdirlisting): Make "N" option a little less aggressive.
4791 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
4793 * setup.c (tarx): Wait to after tar has completed to reset protections
4794 or suffer races with tar process.
4796 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
4798 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
4799 * setup.c (create_uninstall): Create the uninstall .bat file in the
4800 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
4801 list of files to be deleted. Fix directory detection for determining
4802 when to use 'rmdir'.
4803 (do_start_menu): Add /usr/local/bin to the path.
4804 (main): Add slop to files.array allocation so that we don't have to
4805 worry about reallocating the array when it grows too large when doing
4806 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
4809 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
4811 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
4814 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
4816 * path.c (kill_cygpath): New cleanup function.
4817 (exit_cygpath): New cleanup function.
4818 (cygpath_pipe): New function. Sets up cygpath in the background for
4819 translating filenames.
4820 (pathcvt): Use background cygpath for file translation.
4821 * setup.c (tarx): New function. Called to extract tar files, capture
4822 logging output, and translate it to Windows format.
4823 (recurse_dirs): Use 'tarx' function to extract files.
4824 (create_uninstall): Use file list built up by tarx rather than reading
4826 (mkmount): Add ability to mount root.
4827 (main): Track elapsed install time. Mount root.
4828 * starry.h: Add index field to strarry for tracking of tarx's usage of
4830 * xsystem.c (xcreate_process): Return proces handle when not waiting.
4832 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
4835 (pathfp): New function. Preliminary work for new -f cygpath
4837 * Makefile.in: Add new file.
4838 (pathcvt): Move to new file.
4842 * setup.c (processdirlisting): Always open file in text mode.
4843 (create_uninstall): Ditto.
4844 (getdownloadsource): Ditto.
4847 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
4849 * xsystem.c: New file.
4850 * Makefile.in: Accomodate new file.
4851 * setup.c (xsystem): Move to new file.
4852 (recurse_dirs): Accept handle to output log file. Don't use ">"
4853 redirection to trap tar output. Use supplied handle instead.
4854 (create_uninstall): Accept FILE pointer to opened log file. Don't
4855 unlink log file here.
4856 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
4857 (main): Open log file here and pass it to various functions. Unlink
4860 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
4862 Change occurrences of .usr.bin to .bin throughout.
4863 * setup.c (geturl): Increase number of retries to 20. Let user know
4864 what's going on during long connects.
4865 (processdirlisting): Accept "A"lways and "N"ever as update options.
4866 (create_uninstall): Load cygwin1.dll from the current directory rather
4868 (main): Add some expository text.
4870 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
4872 * Makefile.in: Change method for compressing cygwin1.dll to avoid
4873 creating a cygwin1.dll in the current directory. Ensure the addition
4874 of -nostdinc to MINGW_CFLAGS.
4876 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
4878 * Makefile.in: Augment clean target.
4880 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
4882 * README: Added info about non-working mingw implementation
4883 * gzip.exe.gz: Replace with a version from the same build as the other
4885 * tar.exe.gz: Replace with a version from the same build as the other
4887 * mount.exe.gz: Add to repository until, mingw can build setup.
4888 * cygpath.exe.gz: ditto
4889 * cygwin1.dll.gz: ditto
4890 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
4891 for Win9x. Display only a screenfull of options at a time. Call all
4892 tools with an absolute path.
4893 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
4898 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
4900 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
4901 cygwin1.dll from ../cygwin subdirectory.
4902 * gzip.exe.gz: Update.
4903 * tar.exe.gz: Update.
4905 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
4907 * Makefile.in: Use ZLIB variable as a target.
4909 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
4911 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
4912 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
4914 * configure.in: Locate correct objcopy.
4915 * configure: Regenerate.
4917 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
4919 * Makefile.in: New file.
4920 * configure.in: New file.
4921 * configure: New file.
4922 * zlib/Makefile.am: New file.
4923 * zlib/configure.in: New file.
4924 * zlib/aclocal.m4: New file.
4925 * zlib/acinclude.m4: New file.
4926 * zlib/configure: Regenerate from configure.in.
4927 * zlib/Makefile.in: Regenerate from Makefile.am