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