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