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