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