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