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