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