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