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