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