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