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