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