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