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