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