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