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