1 2006-03-30 Max Bowsher <maxb1@ukf.net>
3 * String++.cc, String++.h: Remove String(int) constructor, which
4 was causing dangerously bizarre implicit conversions, and was a point
5 of disparity between String and std::string.
6 (stringify): New function to replace functionality removed above.
8 * PickView.cc (PickView::init_headers),
9 archive_tar.cc (archive_tar::next_file_name),
10 cygpackage.cc (cygpackage::setCanonicalVersion):
11 Make explicit and call out with a FIXME some bizarre behaviour.
13 * ScanFindVisitor.cc (ScanFindVisitor::visitFile),
14 filemanip.cc (base), iniparse.y,
15 threebar.cc (ThreeBarProgressPage::SetBar2):
16 Make simple adaptations to the changed API.
18 2006-03-14 Igor Peshansky <pechtcha@cs.nyu.edu>
20 * PickView.cc (PickView::setViewMode): Auto-expand category if
21 its name starts with a dot.
23 2006-03-14 Dave Korn <dave.korn@artimi.com>
25 * String++.cc (new_cstr_char_array): Handle null input correctly.
27 2006-03-10 Christopher Faylor <cgf@timesys.com>
29 * res.rc: Update copyright.
30 (IDS_MIRROR_LST): Use cygwin.com for mirror list, not
32 * site.cc (NOSAVE1): Use preferred name of sourceware site.
33 (NOSAVE2): sourceware.cygnus.com -> sources.redhat.com.
34 (NOSAVE1_LEN): Use just-defined name to determine length.
38 2006-03-10 Bas van Gompel <patch-cygsup.buzz@bavag.tmfweb.nl>
40 * res.rc (IDD_DROPPED): New dialog.
41 * resource.h (IDD_DROPPED): New dialog-id.
42 (IDC_DROP_MIRRORS, IDC_DROP_NOWARN): New control-ids.
43 * site.cc: Add enum for response on dropped mirrors.
44 (cache_is_usable, cache_needs_writing): New bools.
45 (cache_warn_urls): New string.
46 (cached_site-list, dropped_site_list): New SiteLists.
47 (site_list_type::init, site_list_type::site_list_type): Change to four
49 (site_list_type::site_list_type, site_list_type::operator=) Copy
50 servername, area and location.
51 (load_site_list): New function, broken out of get_site_list. Support
52 four-parameter site_list_type.
53 (get_site_list): Break out load_site_list. Move reading cache earlier.
54 Don't write new cache. Set flags to record cache state. Load both
55 all_site_list and cached_site_list.
56 (SiteSetting::registerSavedSite): Use four-parameter site_list_type.
57 (drop_proc, check_dropped_mirrors, write_cache_list, save_cache_file):
59 (SitePage::OnNext): Check for dropped mirrors and save cache as
61 (SitePage::OnMessageCmd): Use four-parameter site_list_type.
63 (site_list_type::init, site_list_type::site_list_type): Change to four
65 (site_list_type): Add servername, area and location members.
67 2006-03-09 Igor Peshansky <pechtcha@cs.nyu.edu>
69 * script.cc (Script::run): Fix inverted test for abnormal exit.
71 2006-03-09 Bas van Gompel <patch-cygsup.buzz@bavag.tmfweb.nl>
72 Max Bowsher <maxb1@ukf.net>
74 Provide indication of site that a file is being downloaded from.
76 * geturl.cc: Use std::string instead of String throughout.
77 (init_dialog): Put more information into GUI.
78 Remove unused 'owner' parameter and change all callers.
79 (progress): Remove spurious \n characters from GUI.
80 * geturl.h: Use std::string instead of String throughout.
81 * res.rc (IDD_INSTATUS): Use SS_ENDELLIPSIS.
83 2006-03-09 Max Bowsher <maxb1@ukf.net>
85 * Makefile.am (EXTRA_DIST): Add tree-minus.bmp and tree-plus.bmp.
87 2006-01-20 Bryan Thrall <bryan.thrall@flightsafety.com>
89 * source.cc (SourcePage::OnActivate): Command line takes precedence
90 over last user selection.
92 2005-11-30 Max Bowsher <maxb1@ukf.net>
94 * res.rc (IDD_ROOT, IDD_LOCAL_DIR): Rearrange some controls a little,
95 in response to suggestion from Carl Karsten.
97 2005-11-30 Max Bowsher <maxb1@ukf.net>
99 * site.h, site.cc: Use std::string in preference to String.
100 (site_list_type::init): Convert some painful raw C string work to
101 STL std::string work. Stop totally ignoring the result of this
102 calculation, implementing the (somewhat weird) sort order for sites
103 that was apparently indented for ages.
105 2005-10-14 Igor Pechtchanski <pechtcha@cs.nyu.edu>
107 * io_stream.cc (url_scheme_not_registered): New macro.
108 (io_stream::open): Better log message on error.
109 (io_stream::mkpath_p,io_stream::remove,io_stream::mklink): Ditto.
110 (io_stream::move,io_stream::exists): Ditto.
112 2005-10-13 Igor Pechtchanski <pechtcha@cs.nyu.edu>
114 * site.cc (get_site_list): Default to empty mirror list if
115 server unavailable and none cached, to allow using preferred
118 2005-09-29 Igor Pechtchanski <pechtcha@cs.nyu.edu>
120 * package_db.cc (packagedb::packagedb): Remember missing package
123 2005-09-29 Igor Pechtchanski <pechtcha@cs.nyu.edu>
125 * site.cc (get_site_list): Store mirror list locally.
126 Use local copy if unable to download.
128 2005-09-27 Igor Pechtchanski <pechtcha@cs.nyu.edu>
130 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile):
131 Better log message on error.
133 2005-09-27 Igor Pechtchanski <pechtcha@cs.nyu.edu>
135 * script.cc (Script::isAScript): Fix string comparison.
137 2005-09-27 Igor Pechtchanski <pechtcha@cs.nyu.edu>
139 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Reconnect on FTP timeout.
141 2005-09-11 Masayuki FUJII <boochang@m4.kcn.ne.jp>
143 * package_meta.cc (packagemeta::ScanDownloadedFiles): Don't use an
144 invalid iterator. Fix whitespace.
146 2005-09-09 Brian Dessent <brian@dessent.net>
148 * CHANGES: Document recent updates.
149 * choose.cc (ChooserPage::OnInit): Add new tooltip.
150 * res.rc (IDD_CHOOSE): Remove 'administrative' from description.
151 (IDS_HIDEOBS_TOOLTIP): Add new string for tooltip.
152 * resource.h (IDS_HIDEOBS_TOOLTIP): Define.
153 * window.cc (Window::ActivateTooltips): Fix whitespace. Set tooltip
156 2005-09-09 Igor Pechtchanski <pechtcha@cs.nyu.edu>
158 * PickView.cc (PickView::paint): Set background mode to transparent.
159 * PickCategoryLine.cc (PickCategoryLine::paint): Use bitwise AND to
161 * PickPackageLine.cc (PickPackageLine::paint): Ditto.
163 2005-09-01 Brian Dessent <brian@dessent.net>
165 * package_meta.cc (packagemeta::uninstall): Remove support for
166 undocumented and dangerous postremove script.
168 2005-09-01 Igor Pechtchanski <pechtcha@cs.nyu.edu>
170 * script.cc (run): Change to return the exit code or negative error.
171 (Script::run): Ditto.
172 (try_run_script): Receive both filename and extension and run only
173 one script. Also return the exit code.
174 * script.h (try_run_script): Change signature.
175 (Script::run): Ditto.
176 * postinstall.cc (RunScript::operator()): Change to return the exit
177 code or negative error.
178 * install.cc (Installer::preremoveOne): Pass extension to
181 2005-09-01 Eric Blake <ebb9@byu.net>
183 * script.cc (shells): Use /bin/bash, not sh, to allow upgrades to
186 2005-09-01 Igor Pechtchanski <pechtcha@cs.nyu.edu>
188 * PickView.h (PickView::size_col): New instance variable.
189 * PickView.cc (pkg_headers, cat_headers): Add size column.
190 (PickView::set_headers): Initialize size_col.
191 (PickView::init_headers): Include width of size column.
192 * PickPackageLine.cc (PickPackageLine::paint): Handle size_col.
193 * String++.cc (format_1000s): New function.
194 * String++.h (format_1000s): Declare new function.
196 2005-09-01 Brian Dessent <brian@dessent.net>
198 * Makefile.am (BASECXXFLAGS): Add -Wno-uninitialized to work around
199 spurious warnings with gcc 3.4.4.
201 2005-05-22 Brian Dessent <brian@dessent.net>
203 * res.rc (IDD_CHOOSE): Change description to include administrative
204 packages in addition to obsolete.
206 2005-05-21 Brian Dessent <brian@dessent.net>
208 * prereq.cc: New file.
210 * tree-minus.bmp: Ditto.
211 * tree-plus.bmp: Ditto.
212 * Makefile.am: Add prereq.cc and prereq.h to build.
213 * PickCategoryLine.cc (PickCategoryLine::paint): Add new parameter and
214 refactor. Use bitmap for '+' and '-' indicators. Draw package lines
215 column-wise for better drawing efficiency.
216 (PickCategoryLine::click): Use previously calculated x value.
217 * PickCategoryLine.h (PickCategoryLine::paint): Update prototype. Add
219 * PickLine.h (PickLine:paint): Update prototype.
220 * PickPackageLine.cc (PickPackageLine::DrawCheck): Remove.
221 (PickPackageLine::DrawIcon): New function.
222 (PickPackageLine::paint): Add parameter. Refactor completely for more
224 * PickPackageLine.h (PickPackageLine::DrawIcon): Add prototype.
225 (PickPackageLine::paint): Update prototype.
226 (PickPackageLine::DrawCheck): Remove.
227 * PickView.cc (pkg_headers): Remove unused 'slen' field, add new
228 'needs_clip' field to signify if clipping is necessary for this column.
229 (PickView::note_width): Fold long line. Refactor slightly for
231 (PickView::set_view_mode): Remove.
232 (PickView::cycleViewMode): New function.
233 (PickView::setViewMode): Refactor completely. Incorporate functionality
234 of clear_view() here instead. Simplify package selection into a single
235 'for' loop rather than repeating code for each type.
236 (isObsolete): New function, with second overloaded version.
237 (PickView::setObsolete): New function.
238 (PickView::insert_pkg): Do not show obsolete packages. Move
239 declaration of 'db' lower. Fix whitespace.
240 (PickView::insert_category): Do not show obsolete packages.
241 (PickView::clear_view): Remove. Moved logic into 'setViewMode'.
242 (PickView::scroll): Add additional parameter 'howmany' with default
243 value of 1. Scroll by 'howmany' lines for SB_LINEDOWN and SB_LINEUP.
244 (NUM_CATEGORY_COL_WIDTH): Define.
245 (PickView::init_headers): Fix whitespace. Add comments. Ignore
246 obsolete packages in width calculations. Add functionality to size
247 'Category' column so that at least NUM_CATEGORY_COL_WIDTH categories
248 are displayed for every package. Ensure that 'new_col' takes into
249 account all possible labels.
250 (PickView::PickView): Initialize showObsolete to false.
251 (PickView::init): Remove unused bitmap bm_rtarrow. Add new bitmaps
252 bm_treeplus and bm_treeminus. Use a macro for better readability.
253 Fix whitespace formatting. Remove header computation from here, call
255 (PickView::registerWindowClass): Remove unnecessary background brush.
256 (PickView::WindowProc): Add support for WM_MOUSEWHEEL message
257 processing. Fix indentation. Reformat for readability.
258 (PickView::paint): Get the update region before calling BeginPaint.
259 Fill the update region with the default colors. Do not do clipping
260 here. Pass update region to the PickLine paint function instead.
261 Free the update region when finished.
262 (PickView::Create): Fix indentation.
263 (PickView::defaultTrust): Ditto.
264 (PickView::refresh): Add column recalculation logic here.
265 * PickView.h: Fix indentation.
266 (RTARROW_WIDTH): Remove unused define.
267 (NEW_COL_SIZE_SLOP): Ditto.
268 (TREE_INDENT): Define.
269 (PickView::get_view_mode): Remove.
270 (PickView::set_view_mode): Rename to setViewMode for consistency.
271 (PickView::cycleViewMode): Add new function.
272 (PickView::setObsolete): Ditto.
273 (PickView::clear_view): Remove.
274 (PickView::bm_treeplus): Define new member.
275 (PickView::bm_treeminus): Ditto.
276 (PickView::scroll): Add parameter.
277 (PickView::Header::slen): Remove unused member.
278 (PickView::Header::needs_clip): Define new member.
279 (PickView::showObsolete): Ditto.
280 (isObsolete): Add prototype, and for overloaded version as well.
281 * choose.cc: Add include.
282 (ChooserControlsInfo): Allow new checkbox to be resized.
283 (ChooserPage::OnInit): Start dialog with 'Hide obsolete' checked.
284 (ChooserPage::OnNext): Call the dependency checker, act accordingly.
285 (ChooserPage::changeTrust): Notify dependency checker of current trust
286 level when it changes.
287 (ChooserPage::OnMessageCmd): Just call cycleViewMode instead when
288 changing the view. Update the chooser when the user toggles the
289 'hide obsolete' checkbox.
290 (ChooserPage::OnMouseWheel): New function. Pass mouse wheel message
292 * choose.h (OnMouseWheel): Add prototype.
293 * main.cc: Add include.
294 (main): Define and initialize the PrereqPage object. Add it into
295 the property sheet list.
296 * PropPage.cc (PropertyPage::DialogProc): Add support for WM_MOUSEWHEEL
297 message processing in derived classes.
298 (PropertyPage::OnMouseWheel): New function.
299 * PropPage.h (PropertyPage::OnMouseWheel): Add prototype.
300 * res.rc (IDD_LOCAL_DIR): Shorten edit box so that pushbutton is not
302 (IDD_SITE): Provide static text with an ID so that it can be resized
303 properly. Move pushbutton slightly to right so that it doesn't crowd
305 (IDD_SPLASH): Change copyright displayed on spash screen to be generic
306 since the actual list of contributors is long.
307 (IDD_CHOOSE): Add checkbox. Resize other controls to accomodate.
308 (IDD_PREREQ): New dialog.
309 (SPIN): Delete duplicated bitmap resource.
310 (IDB_RTARROW): Remove unused bitmap resource.
311 (IDB_TREE_PLUS): Add.
312 (IDB_TREE_MINUS): Ditto.
313 (IDS_TRUSTPREV_TOOLTIP): Revise wording to be more concise.
314 (IDS_TRUSTCURR_TOOLTIP): Ditto.
315 (IDS_TRUSTEXP_TOOLTIP): Ditto.
316 (IDS_VIEWBUTTON_TOOLTIP): Ditto.
317 * resource.h (IDD_PREREQ): Define.
318 (IDB_RTARROW): Remove.
319 (IDB_TREE_PLUS): Add, and renumber.
320 (IDB_TREE_MINUS): Ditto.
321 (IDC_SITE_USERURL): Define.
322 (IDC_CHOOSE_HIDE): Ditto.
323 (IDC_PREREQ_TEXT): Ditto.
324 (IDC_PREREQ_EDIT): Ditto.
325 (IDC_PREREQ_CHECK): Ditto.
326 * site.cc (SiteControlsInfo): Ensure that 'User URL' static text is
329 2005-05-14 Max Bowsher <maxb@ukf.net>
331 "Type" field of packageversions was not even being filled in. Fix.
333 * cygpackage.h, cygpackage.cc (cygpackage::createInstance):
334 Make "type" a mandatory parameter of the constructor.
335 * IniDBBuilderPackage.cc: Adjust callers.
337 2005-05-14 Bas van Gompel <patch-cygsup.buzz@bavag.tmfweb.nl>
339 Fix behaviour of hardlinks in source packages.
341 * archive.cc (archive::extract_file):
342 Use prefixPath for link target on hardlinks.
344 2005-05-14 Max Bowsher <maxb@ukf.net>
346 Hopefully, solve the "preremove DLL dependency" bug, by running all
347 preremove scripts before actually removing any files.
350 (Installer::preremoveOne): New method. Run preremove scripts here.
351 (Installer::replaceOne): Remove method.
352 (num_replacements): Remove variable.
353 (do_install_thread): Significantly rewrite.
354 * package_meta.cc (packagemeta::uninstall):
355 Do not run preremove script here.
357 2005-05-14 Max Bowsher <maxb@ukf.net>
359 * download.cc (do_download_thread):
360 Do not use packageversion::changeRequested().
361 * package_version.cc (packageversion::Type):
362 Implement declared but previously unimplemented method.
363 (packageversion::changeRequested, _packageversion::changeRequested):
366 (packageversion::changeRequested, _packageversion::changeRequested):
368 * install.cc (Installer::replaceOne): Simplify, return void, not int.
369 (installOneSource): Rename to...
370 (installOne): ...this. Change arguments and return type. Refactor.
371 (install_one): Remove.
372 (do_install_thread): Tidying up.
374 2005-05-07 Max Bowsher <maxb@ukf.net>
376 * download.cc (validateCachedPackage): Remove all MD5 checking code.
377 It is not acceptable to check MD5 sums as part of simply answering
378 whether a package exists in the local cache or not. It is too slow.
379 MD5 sums always have been - and will continue to be - checked at
381 (NoMD5Option): Remove this option, as the code it controls has been
384 2005-05-07 Max Bowsher <maxb@ukf.net>
386 * install.cc (md5_one): Make the MD5 checking done at install time
387 display a progess GUI, as the MD5 checking done at other times does.
389 2005-05-07 Max Bowsher <maxb@ukf.net>
391 * resource.h, res.rc: Followup to recent de-MSVC-ification of
392 resource.h, by removing a lot from res.rc, and the last few bits
395 2005-05-05 Brian Dessent <brian@dessent.net>
397 * choose.cc (ChooserPage::OnInit): Initialize tooltips for this
400 * proppage.h (PropertyPage::makeClickable): Update prototype to
401 reflect same argument name as function.
403 * proppage.cc (PropertyPage::DialogProc): Remove redundant 'break'
404 statements that follow 'return's. Add missing braces to case
405 statements. Call handler for TTN_GETDISPINFO.
407 * res.rc (IDS_TRUSTKEEP_TOOLTIP): Add new STRINGTABLE entry for
409 (IDS_TRUSTPREV_TOOLTIP): Ditto.
410 (IDS_TRUSTCURR_TOOLTIP): Ditto.
411 (IDS_TRUSTEXP_TOOLTIP): Ditto.
412 (IDS_TRUSTPREV_TOOLTIP): Ditto.
413 (IDS_VIEWBUTTON_TOOLTIP): Ditto.
415 * resource.h: Likewise, add identifiers for tooltip resources.
417 * window.h: Add includes.
418 (Window::TooltipHandle): Add new private data structure.
419 (Window::TooltipStrings): Ditto.
420 (Window::ActivateTooltips): Define new function to support tooltip
422 (Window::SetTooltipState): Ditto.
423 (Window::AddTooltip): Ditto.
424 (Window::TooltipNotificationHandler): Ditto.
426 * window.cc (Window::Window): Initialize handle to NULL.
427 (Window::~Window): Call DestroyWindow on tooltip control if it was
429 (Window::ActivateTooltips): New function to activate the tooltip
431 (Window::SetTooltipState): New function to allow toggling of
433 (Window::AddTooltip): New function that adds a tooltip to a given
434 control in a given window. Also implement overloaded versions that
435 provide simpler interface and the ability to use a string resource.
436 (Window::TooltipNotificationHandler): New function to handle
437 TTN_GETDISPINFO notification messages.
439 2005-05-05 Brian Dessent <brian@dessent.net>
441 * resource.h: Reorganize. Group by type, and give each its own
442 range of IDs. Regenerate IDs accordingly.
443 (IDD_CHOOSER): Remove obsolete and unused symbol.
445 2005-05-05 Brian Dessent <brian@dessent.net>
447 * root.h (class RootPage): Add missing virtual to OnMessageCmd.
449 2005-05-05 Brian Dessent <brian@dessent.net>
451 * root.cc (dialog_cmd): Remove. Use OnMessageCmd instead.
452 (RootPage::Create): Accomodate above change.
454 * root.h (class RootPage): Add prototype for OnMessageCmd.
456 * res.rc (IDD_ROOT): Fix broken button groups. Correct the order of
457 the controls and use of WS_GROUP so that the radio buttons act
460 2005-05-05 Max Bowsher <maxb@ukf.net>
462 Bulk rename of String++ member cstr_oneuse () to c_str () for
463 similarity to std::string.
466 * IniDBBuilderPackage.cc
467 * IniParseFindVisitor.cc
469 * PickCategoryLine.cc
486 * io_stream_cygfile.cc
503 2005-05-05 Max Bowsher <maxb@ukf.net>
505 Some String++ refactoring, setting out in the general direction of
506 eventually just using the STL std::string, not our own class.
508 * String++.cc (String::cstr, String::cstr () const): Remove.
509 (new_cstr_char_array): New function.
510 * String++.h: Sync with above.
511 Remove irrelevant "class io_stream;" declaration.
513 * cygpackage.h: Add "class io_stream;" declaration, now no longer
514 being supplied by side-effect.
516 * filemanip.cc: Remove unneeded includes, add "using namespace std;".
517 (parse_filename): Exchange some awkward pointer manipulation for
518 std::string usage. Use new_cstr_char_array ().
519 * filemanip.h: Sync with above.
520 (fileparse): Improve style of declaration.
522 * io_stream_cygfile.cc (io_stream_cygfile::normalise):
523 Use new_cstr_char_array ().
524 * site.cc (site_list_type::init, get_site_list): Ditto.
526 2005-05-05 Brian Dessent <brian@dessent.net>
528 * ControlAdjuster.h (enum ControlPosition): Declare new resizing
529 methods CP_STRETCH_LEFTHALF and CP_STRETCH_RIGHTHALF, and their
532 * ControlAdjuster.cc (ControlAdjuster::ControlInfo::adjust):
533 Implement CP_STRETCH_LEFTHALF and CP_STRETCH_RIGHTHALF, which are
534 designed to resize elements in a two-column layout.
536 * localdir.h (class LocalDirPage): Remove constructor implementation
539 * localdir.cc (LocalDirPage::LocalDirPage): ...to here, and call
540 AddControlsInfo on initialization.
541 (static LocaldirControlsInfo): Add. Define sizing rules for dialog
544 * proppage.h: Add includes.
545 (PropertyPage::ClickableURL):
546 Declare new storage type for internal use by class.
547 (PropertyPage::urls): Likewise.
548 (PropertyPage::urlWinProc): Add declaration.
549 (PropertyPage::makeClickable): Likewise.
551 * proppage.cc: Add includes.
552 (PropertyPage::DialogProc): Implement handler for WM_CTLCOLORSTATIC
553 message. Supports static controls that have been turned into
554 clickable hyperlinks.
555 (static PropertyPage::urls): Declare.
556 (PropertyPage::makeClickable): Implement new member function that
557 provides user interface for making text into clickable URLs.
558 (PropertyPage::urlWinProc): Implement new private member function used
559 as a windowproc for subclassing a static control.
561 * resource.h (IDC_SPLASH_URL, IDC_FILEMODES_LINK, IDC_ROOTDIR_GRP,
562 IDC_INSTALLFOR_GRP, IDC_ALLUSERS_TEXT, IDC_JUSTME_TEXT, IDC_MODE_GRP,
563 IDC_MODE_TEXT, IDC_MODE_BIN, IDC_LOCALDIR_GRP, IDC_SPLASH_TEXT,
564 IDC_SPLASH_ICON, IDC_SPLASH_COPYR): Add. Replaces anonymous
565 IDC_STATIC ids, so that controls can be referenced by the resizer.
567 * res.rc (IDD_LOCAL_DIR): Rearrange controls to match top-down order
568 in the dialog. Fold long lines. Replace anonymous IDC_STATIC ids.
569 (IDD_ROOT): Reorder in same manner. Replace anonymous IDC_STATIC ids.
570 Add descriptive text of each option, and hyperlink for more
571 information. Mark suggested choice as "(RECOMMENDED)". Swap order of
572 'unix'/'dos' radio buttons so that recommended choice is first in both
574 (IDD_SPLASH): Reorder elements to match top-down order of dialog, fold
575 long lines. Add descriptive paragraph, remove anonymous ids. Update
576 copyright text, replace sources.redhat.com with cygwin.com.
578 * root.h (class RootPage): Remove constructor implementation from
581 * root.cc: ...to here, and call AddControlInfo.
582 (static RootControlsInfo): Add. Populate with resizing data.
583 (RootPage::OnInit): Make text a clickable hyperlink.
585 * splash.h (class SplashPage): Likewise, move constructor from
588 * splash.cc: ...to here. Call AddControlInfo.
589 (static SplashControlsInfo): Add and populate.
590 (SplashPage::Create): Make link on splash page a clickable hyperlink.
592 * window.h: Add include.
593 (class Window): Store allocated fonts with a vector instead of fixed
594 array. Change indentation of setParent to be consistent.
596 * window.cc (Window::Window): Remove FontCounter.
597 (Window::~Window): Likewise. Iterate over vector of fonts instead.
598 (Window::SetDlgItemFont): Use vector.
600 2005-05-05 Max Bowsher <maxb@ukf.net>
602 * Makefile.am (EXTRA_DIST, inilint_SOURCES):
603 Sync with several recent changes.
605 2005-05-05 Brian Dessent <brian@dessent.net>
607 * res.rc: (CREATEPROCESS_MANIFEST_RESOURCE_ID): Include section
610 2005-05-05 Brian Dessent <brian@dessent.net>
612 * res.rc: (IDC_CHOOSE): Widen 'view' button by 6px horizontally and
613 4px vertically. Adjust other controls to accomodate.
614 (CREATEPROCESS_MANIFEST_RESOURCE_ID): Define so that manifest is
615 included in the binary.
617 * setup.exe.manifest: New file. Results in common controls with
618 themed appearance on modern versions of Windows.
620 2005-05-05 Brian Dessent <brian@dessent.net>
622 * main.cc (WinMain): Change conditional to avoid spurious error
623 message on success. Include reason for failure in log message.
625 2005-05-04 Max Bowsher <maxb@ukf.net>
627 * state.cc, state.h (net_method, net_proxy_host, net_proxy_port,)
628 (net_user, net_passwd, net_proxy_user, net_proxy_passwd,)
629 Inet_ftp_user, net_ftp_passwd):
630 Move these global variables to be static variables of the NetIO class.
632 * netio.h, netio.cc (net_method, net_proxy_host, net_proxy_port,)
633 (net_user, net_passwd, net_proxy_user, net_proxy_passwd,)
634 net_ftp_user, net_ftp_passwd):
637 * ConnectionSetting.cc, net.cc:
638 Change include, refer to variables in new location.
640 2005-05-04 Max Bowsher <maxb@ukf.net>
642 * PickLine.cc: Remove file - redundant.
643 * Makefile.am (setup_SOURCES): Adjust.
645 2005-05-04 Max Bowsher <maxb@ukf.net>
647 * package_version.h (packageversion::set_requirements):
648 Remove deftrust argument default value.
650 2005-05-04 Max Bowsher <maxb@ukf.net>
652 * package_version.cc (DependencyProcessor): Remove trivial class.
653 (select, processOneDependency): Do not use DependencyProcessor, just
654 pass parameters normally.
656 2005-05-04 Brian Dessent <brian@dessent.net>
658 Fix bug #820: Clicking Curr, etc., causes some dependencies to not
661 * choose.cc (ChooserPage::changeTrust):
662 Add a missing "packagedb.markUnVisited ()".
664 2005-05-03 Max Bowsher <maxb@ukf.net>
666 * PickCategoryLine.cc (PickCategoryLine::click):
667 * PickPackageLine.cc (PickPackageLine::click):
668 Abandon use of trivial packagemeta::PrepareForVisit() wrapper.
670 * package_meta.h (packagemeta::PrepareForVisit): Remove.
671 * package_meta.cc (packagemeta::PrepareForVisit): Remove.
673 2005-05-03 Max Bowsher <maxb@ukf.net>
675 * choose.h (ChooserPage::ifChecked): Remove.
676 (ChooserPage::changeTrust): Convert from template to ordinary function.
677 * choose.cc (ChooserPage::changeTrust): As above, plus avoid the use
678 of custom class SetRequirement, when bind2nd(mem_fun(...),...) can
679 achieve the same effect.
680 * package_meta.h (SetRequirement): Remove, now unused.
682 2005-05-03 Max Bowsher <maxb@ukf.net>
684 * package_meta.h (packagemeta::set_requirements):
685 Remove default argument which seems inappropriate.
686 * PickPackageLine.cc (PickPackageLine::click):
687 Make an argument explicit, and not that it seems like the wrong value.
689 2005-05-03 Brian Dessent <brian@dessent.net>
691 Fix part of bug #853 - proxy port not remembered.
693 * net.cc (doing_loading): New static boolean.
694 (load_dialog): Use the boolean to prevent save_dialog() from taking
695 action due to field changes due to initialization.
696 (save_dialog): Check the boolean and respond appropriately.
698 2005-04-19 Max Bowsher <maxb@ukf.net>
700 * postinstall.cc (RunFindVisitor::visitFile): Fix crash on
701 encountering a postinstall script with a name of 4 characters or less.
702 Bug introduced on 2004-12-25.
704 2005-04-05 Max Bowsher <maxb@ukf.net>
706 The Big Cleanup: Phase "rfc1738"
708 * rfc1738.cc, rfc1738.h: Delete.
709 * csu_util/rfc1738.cc: Reimport latest version from upstream source.
710 Make thread-safe. Rewrite C++ wrapper in terms of std::string.
711 Document the divergences from the upstream source.
712 * csu_util/rfc1738.h: Recreate for the std::string version of the
715 * Makefile.am (setup_SOURCES): Sync with added/removed files.
716 * IniParseFindVisitor.cc: Modify #includes.
717 (IniParseFindVisitor::visitFile): Change function name, as the new
718 C++ wrapper does not contain an irregularity that the old one did.
719 * download.cc: Modify #includes.
720 * ini.cc: Modify #includes.
722 2005-04-05 Max Bowsher <maxb@ukf.net>
724 Remove setup's internal compression libraries, instead relying on the
725 mingw-foo packages which have been part of the Cygwin net distribution
726 for some time now. At the same time, reorganize the README file to
727 inform about the change, and make some additional tidy-ups there whilst
730 * GUIDELINES: Remove, contents transferred to README.
731 * README: Add build instructions. Delete unconfirmed and fixed bugs
732 sections. Incorporate the former contents of GUIDELINES.
736 * Makefile.am (DIST_SUBDIRS, SUBDIRS):
737 * configure.in: Remove AC_CONFIG_SUBDIRS for removed subdirs.
738 * compress_bz.h: Remove complex _WIN32 preprocessor conditional.
739 * compress_gz.h: Fix #include file name.
740 * archive_tar_file.cc: Remove unused #include.
741 * install.cc: Remove unused #include.
743 2005-01-27 Max Bowsher <maxb@ukf.net>
745 Set CYGWIN=nontsec, for postinstall scripts.
747 * main.cc (main): putenv("CYGWIN=nontsec").
749 2005-01-27 Bas van Gompel <patch-cygsup.buzz@bavag.tmfweb.nl>
751 Fix corrupt display of ini parse percentage in log file.
753 * ini.cc (GuiParseFeedback): Use a sensible data type for lastpct.
755 2004-12-29 Max Bowsher <maxb@ukf.net>
757 * site.cc (get_site_list): Filter the incoming mirrors list to contain
758 only URL schemes that we can read.
760 2004-12-28 Max Bowsher <maxb@ukf.net>
762 The Big Cleanup: Phase "hash"
764 * hash.cc, hash.h: Delete.
765 * Makefile.am (setup_SOURCES): Sync with deleted files.
767 * package_mets: Modify includes.
768 (standard_dirs): Remove.
769 (hash::add_subdirs): Remove.
770 (packagemeta::uninstall): Re-implement using STL set instead of
773 2004-12-28 Max Bowsher <maxb@ukf.net>
775 * String++.h (operator std::string): Take care to never do
776 std::string((char*)NULL) - it causes a hang!
778 2004-12-27 Max Bowsher <maxb@ukf.net>
780 The Big Cleanup: Phase "log"
782 * log.cc, log.h: Delete old C-style compatibility wrapper around the
784 * Makefile.am (setup_SOURCES): Sync with deleted files.
786 * AntiVirus.cc, archive_tar_file.cc, ini.cc, install.cc,
787 * io_stream_cygfile.cc, localdir.cc, msg.cc, net.cc, netio.cc,
788 * netio.h, nio-ftp.cc, nio-ftp.h, root.cc, source.cc:
789 Throughout, refine includes, and update code using the old
790 compatibility wrapper to C++ streams style code.
792 2004-12-27 Max Bowsher <maxb@ukf.net>
794 * compress.cc: Refine includes. Remove placeholder function
795 definitions. Make destructor an empty function.
796 * compress.h: Refine includes. Make placeholder functions pure
797 virtual. Add missing const on buffer argument to write function,
798 to match derived classes.
799 * compress_bz.cc, compress_gz.cc: Refine includes. Throw exception,
800 rather than logging and returning an error, when an unimplemented
802 * compress_bz.h, compress_gz.h: Refine includes.
804 2004-12-26 Max Bowsher <maxb@ukf.net>
806 The Big Cleanup: Phase "version"
808 * String++.h (operator std::string): Add.
809 * desktop.cc, fromcwd.cc: Remove irrelevant include.
811 * version.cc, version.h: Delete, replacing all functionality in new
814 * setup_version.h: Add, taking over declaration of generated version
815 symbol functionality.
817 * Makefile.am (setup_SOURCES): Sync with new/deleted files.
818 (setup_version.c): Rename the symbol 'version' to 'setup_version'.
819 * main.cc: Modify includes.
820 (main): Adapt to setup_version rename.
821 * splash.cc: Modify includes.
822 (SplashPage::OnInit): Adapt to setup_version rename.
824 * csu_util/version_compare.cc, csu_util/version_compare.h: Add,
825 containing a completely rewritten replacement for canonical_version().
827 * IniDBBuilderPackage.cc: Modify includes.
828 (IniDBBuilderPackage::buildVersion): Use new version_compare API.
829 * ini.cc: Modify includes.
830 (setup_version): Rename...
831 (ini_setup_version): ...to this.
832 (do_local_ini, do_remote_ini): Adapt to above change.
833 (do_ini_thread): Adapt to above change. Use new version_compare API.
835 2004-12-25 Max Bowsher <maxb@ukf.net>
837 * install.cc (Installer::installOneSource): Remove a stray "break;"
838 left over from the switch-case -> if-else conversion in the previous
841 2004-12-25 Max Bowsher <maxb@ukf.net>
843 The Big Cleanup: Phase "win32"
845 * win32.h: Major overhaul. Document why we use _WIN32_IE. Move out
846 fragment dealing with alloca() to the single file in which it is used.
847 Remove fragment dealing with _MAX_PATH, and convert all uses of it
848 elsewhere to MAX_PATH. Remove random include of <stdarg.h>. Remove
849 NOCOMATTRIBUTE, as setup contains no code which it affects. Remove
850 includes of <wininet.h> and <windowsx.h> - see later in this log.
851 (IsWindowsNT): New inline function, a much simpler implementation of
856 * Makefile.am (setup_SOURCES): Remove "win32.cc".
858 * AntiVirus.cc (detect), PickPackageLine.cc (PickPackageLine::paint),
859 * install.c (Installer::installOneSource):
860 Use IsWindowsNT(), not Win32::OS().
861 * main.cc (main): Use IsWindowsNT(), not locally defined iswinnt.
863 * PickView.cc (PickView::WindowProc), netio.cc (auth_proc),
864 * proppage.cc (PropertyPage::DialogProc):
865 Avoid using obfuscating macros from <windowsx.h>.
867 * archive.cc: Include or #define alloca() in the only file in which
870 * nio-ie5.h: Include <wininet.h> here, where it is actually needed,
871 rather than in "win32.h" which is included almost everywhere.
873 * archive_tar.cc, archive_tar.h, cygpackage.cc, cygpackage.h,
874 * desktop.cc, find.cc, install.cc, main.cc, mklink2.c, mount.cc,
875 * script.cc: Use MAX_PATH, not _MAX_PATH.
877 2004-12-25 Max Bowsher <maxb@ukf.net>
879 Remove some overcomplications.
881 * Makefile.am (setup_SOURCES): Remove FilterVisitor.{cc,h}.
882 * FilterVisitor.cc, FilterVisitor.h: Delete.
883 * String++.cc (strmatch, String::matches): Remove.
884 * String++.h (String::matches): Remove.
885 * postinstall.cc: Do not include "FilterVisitor.h".
886 (RunFindVisitor): Exclude items with the extension ".done".
887 (do_postinstall_thread): Remove overcomplicated exclusion of items
888 with the extension ".done".
890 2004-12-24 Max Bowsher <maxb@ukf.net>
892 * String++.cc, String++.h: Remove unused and incomplete code.
893 * LogFile.cc (LogFile::log_save): Don't leak memory.
894 * filemanip.cc, geturl.cc, root.cc, version.cc:
895 Don't pointlessly create temporary copies strings.
897 2004-12-23 Max Bowsher <maxb@ukf.net>
899 * choose.cc (ChooserPage::OnNext): Relegate some overly verbose
900 logging to an #ifdef DEBUG section.
901 * geturl.h (dismiss_url_status_dialog): Remove stale function
902 declaration, for which there is no definition.
903 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile):
904 Motivated by the recent unexplained hang bug, add some extra logging.
906 2004-11-22 Max Bowsher <maxb@ukf.net>
908 * MD5++.cc, MD5++.h: Remove this class.
909 * csu_util/MD5Sum.cc, csu_util/MD5Sum.h: New more complete MD5 class.
910 * Makefile.am (setup_SOURCES): Adjust to new files.
911 * download.cc (validateCachedPackage): Simplify, using the new class.
912 * install.cc (md5_one): Ditto.
913 * package_source.h (packagesource::md5): Change to be an object of the
916 2004-11-22 Max Bowsher <maxb@ukf.net>
918 * main.cc (main): Fix bug in one of the 2004-11-19 commits.
919 Avoid referring to the theLog pointer before it is set.
921 2004-11-20 Max Bowsher <maxb@ukf.net>
923 * res.rc (IDD_SOURCE): Clarify the radio-button option descriptions.
924 Re-layout the radio buttons.
926 2004-11-20 Max Bowsher <maxb@ukf.net>
928 Repair the broken detection of wrongly-sized package files.
930 * download.cc (validateCachedPackage): Make static, since not used
931 elsewhere. Improve logging. Migrate file-size tests to here, alongside
933 (check_for_cached): Remove broken testing of file-size, now covered by
934 the above. Code cleanups.
936 2004-11-19 Max Bowsher <maxb@ukf.net>
938 * package_version.cc (dumpAndList): Make dependencies much more
939 readable in full log output.
941 2004-11-19 Max Bowsher <maxb@ukf.net>
943 * proppage.cc (PropertyPage::DialogProc): Wrap in a TOPLEVEL_CATCH
944 block, since allowing exceptions to unwind into the guts of Windows is
947 2004-11-19 Max Bowsher <maxb@ukf.net>
949 * main.cc (main): Move option parsing code earlier - it must execute
950 before any significant object creations, which might test options in
951 their initialization.
953 2004-11-19 Max Bowsher <maxb@ukf.net>
955 * main.cc (main): Remove some junk code - either commented out, or
956 contained within unreachable preprocessor conditional sections.
958 2004-11-19 Max Bowsher <maxb@ukf.net>
960 * install.cc (Installer::installOneSource): Avoid leaking the open
961 file handles of every tarball that is installed.
963 2004-11-19 Max Bowsher <maxb@ukf.net>
965 * package_source.h (packagesource::Canonical, packagesource::Base)
966 (packagesource::Filename): Add "const" specification to accessor
969 2004-11-18 Max Bowsher <maxb@ukf.net>
971 * archive.h (archive::~archive): Define a pure virtual destructor to
972 enforce the abstract nature of this class.
973 * archive.cc (archive::~archive): Pure virtual destructors require an
974 implementation! Add one.
975 * io_stream.h (io_stream::destroyed): Remove this severely
976 brain-damaged implementation of a weakly-enforced abstract class.
977 The pure virtual destructor was strongly enforcing the abstract nature
979 * io_stream.cc (io_stream::~io_stream): Empty out horribly pointless
980 code from the pure virtual destructor.
981 * archive_tar.cc (archive_tar::~archive_tar): Remove all
982 reference to the removed "destroyed" member.
983 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
984 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
985 * compress_gz.cc (compress_gz::~compress_gz): Ditto.
986 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Ditto.
987 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
988 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
990 2004-11-17 Max Bowsher <maxb@ukf.net>
992 * mount.cc (create_mount): Fix operator precedence error introduced in
993 first 2004-11-11 commit - warned of by gcc 3.3.3 but not 3.4.1 !
995 2004-11-13 Max Bowsher <maxb@ukf.net>
997 Miscellaneous cleanup.
999 * geturl.cc (getUrlToStream): Make static.
1000 * geturl.h (getUrlToStream): Remove declaration.
1002 * geturl.cc, geturl.h, netio.cc, netio.h, nio-ftp.cc, nio-ftp.h,
1003 nio-http.cc, nio-http.h:
1004 Remove unused "allow_ftp_auth" flag throughout.
1006 2004-11-11 Max Bowsher <maxb@ukf.net>
1008 * libmd5-rfc: New directory, to hold code imported from the libmd5-rfc
1009 project in a clearly delineated fashion.
1010 * libmd5-rfc/README: New file.
1011 * md5.c, md5.h: Delete...
1012 * libmd5-rfc/md5.c, libmd5-rfc/md5.h: ...and replace with pristine
1013 versions from upstream (only change is restoration of upstream CVS
1014 keyword expansions).
1015 * libmd5-rfc/md5main.c: New file.
1016 * Makefile.ami (setup_SOURCES): Edit file paths.
1017 * download.cc, install.cc: Edit include paths.
1019 2004-11-11 Max Bowsher <maxb@ukf.net>
1021 * dialog.cc (fatal): Make capable of handling a passed-in error code,
1022 as an alternative to calling GetLastError().
1023 * dialog.h (fatal): Adjust prototype as above.
1024 * mount.cc (create_mount): Use the above to correctly report errors.
1026 2004-10-28 Max Bowsher <maxb@ukf.net>
1028 * LogFile.cc (LogFile::getFileName), splash.cc (SplashPage::Create),
1029 threebar.cc (ThreeBarProgressPage::SetBar2):
1030 Migrate from cistring and string resources
1031 to String and string literals.
1032 * localdir.cc: Remove unneeded #include of "cistring.h".
1033 * cistring.cc, cistring.h: Remove this now-redundant class.
1034 * Makefile.am: Remove mention of the above removed files.
1035 * res.rc, resource.h: Remove obsolete strings and IDs, both those
1036 obseleted by and obselete before the above changes.
1037 * res.rc: Merge the 2 adjacent STRINGTABLEs.
1039 2004-10-27 Max Bowsher <maxb@ukf.net>
1041 * Makefile.am (setup_SOURCES): Add "RECTWrapper.h". It was missing.
1043 2004-10-25 Bas van Gompel <cygsup-patch.buzz@bavag.tmfweb.nl>
1045 * package_source.cc (packagesource::set_canonical):
1046 Fix one-off in 'base' when ini is in same dir as package.
1048 2004-10-25 Max Bowsher <maxb@ukf.net>
1050 * main.cc (next_dialog): Remove this legacy global variable.
1051 * download.cc (do_download_thread): Return a value instead of setting
1052 a global variable, then returning void.
1053 (do_download_reflector): Look for the next dialog code as a return
1054 value instead of a global variable.
1056 2004-10-25 Max Bowsher <maxb@ukf.net>
1058 * port.h: Remove this redundant file - all contained definitions are
1059 duplicated in "win32.h".
1060 * Makefile.am, UserSetting.cc, UserSettings.cc, archive.cc,
1061 archive_tar.cc, archive_tar_file.cc, choose.cc, compress.cc,
1062 compress_bz.cc, compress_gz.cc, desktop.cc, find.cc, fromcwd.cc,
1063 iniparse.y, install.cc, io_stream_cygfile.cc, io_stream_file.cc,
1064 main.cc, netio.cc, site.cc, version.cc:
1065 Remove all references to "port.h".
1067 2004-10-25 Max Bowsher <maxb@ukf.net>
1069 Fix compilation with w32api 3.1 and later.
1071 * ControlAdjuster.h, RECTWrapper.h, cistring.h, propsheet.h,
1072 window.cc, window.h: Include "win32.h" not <windows.h> directly.
1073 * win32.h (WINBASEAPI): Define to empty string.
1075 2004-09-13 Igor Pechtchanski <pechtcha@cs.nyu.edu>
1077 * script.cc (run): Kill stdin when running scripts.
1079 2004-09-01 Max Bowsher <maxb@ukf.net>
1081 * Makefile.am: Oops. Unwanted keyword expansion ate the code of the
1082 previous commit. Restore the code, escaped to not look like a keyword.
1084 2004-09-01 Max Bowsher <maxb@ukf.net>
1086 * Makefile.am: Simplify the shell incantation for getting the revision
1087 of ChangeLog from grep-and-sed to just sed.
1089 2004-08-31 Max Bowsher <maxb@ukf.net>
1091 Attain GCC 3.4 compatibility.
1093 * PackageSpecification.h (PackageSpecification): Make the
1094 unnecessarily private copy-constructor public.
1096 2004-08-30 Max Bowsher <maxb@ukf.net>
1098 Rework the implementation of not including -Werror for specific files,
1099 to a way that does not require hardcoding modified automake output back
1102 * Makefile.am (AM_CXXFLAGS, BASECXXFLAGS): Seperate out -Werror.
1103 (autoload.o): Drop this rule, -finline-functions is no longer required
1104 and -Werror is acceptable here now we have __attribute__ ((used)).
1105 (WARNONLY_CFLAGS, inilex.o): Drop these.
1106 (EXTRA_PROGRAMS): Add a fake "warnonly" program.
1107 (warnonly_CXXFLAGS): Set to the $(BASECXXFLAGS).
1108 (warnonly_SOURCES): Set to "inilex.cc".
1109 (EXTRA_setup_SOURCES): Set to $(warnonly_SOURCES).
1110 (setup_SOURCES): Remove "inilex.cc".
1111 (setup_LDADD): Add "warnonly-inilex.o".
1113 2004-08-30 Max Bowsher <maxb@ukf.net>
1115 Move closer to GCC 3.4 compatibility.
1117 * IOStreamProvider.h, io_stream_cygfile.cc, io_stream_cygfile.h,
1118 io_stream_file.cc: Do not incorrectly use "enum" after it has been
1119 hidden inside a typedef.
1120 * archive.h: In "virtual func() = 0;", the 0 is a language construct,
1121 not some symbol that might evaluate to 0, and gcc 3.4 enforces this.
1122 * autoload.c (DllInfo.name): Silence warning by making const.
1123 (DLL, autoload_common): __attribute__ ((used)) is now required to
1124 prevent gcc being over-eager in it's optimization, and removing these
1125 seemingly-unused (used only from assembly) functions.
1126 Silences some warnings, too.
1127 * Makefile.am (AM_CXXFLAGS, AM_CFLAGS): The options
1128 -Wstrict-prototypes -Wmissing-prototypes do not apply to C++ and
1129 g++ 3.4 complains about them.
1131 2004-08-29 Max Bowsher <maxb@ukf.net>
1133 * Exception.h: Reformatting, #include more, remove incorrect and
1134 less-than-useful comments.
1135 (TOPLEVEL_CATCH): New preprocessor macro.
1137 * LogFile.cc (LogFile::operator()): Throw an exception object, not a
1140 Wrap the top-level of each thread (including the main thread) in a
1141 try...catch block, in order to display a useful error message if an
1142 exception is not caught.
1143 * download.cc (do_download_reflector): Here ...
1144 * ini.cc (do_ini_thread_reflector): ... and here ...
1145 * install.cc (do_install_reflector: ... and here ...
1146 * main.cc (main): ... and here ...
1147 * postinstall.cc (do_postinstall_thread): ... and here ...
1148 * site.cc (do_download_site_info_thread): ... and here!
1150 * msg.h: Include a missing header requirement.
1151 * res.rc (IDS_UNCAUGHT_EXCEPTION, IDS_UNCAUGHT_EXCEPTION_WITH_ERRNO):
1153 * resource.h (IDS_UNCAUGHT_EXCEPTION)
1154 (IDS_UNCAUGHT_EXCEPTION_WITH_ERRNO): New IDs.
1156 2004-08-28 Max Bowsher <maxb@ukf.net>
1158 * res.rc (IDS_WINDOW_INIT_BADMSG): New string.
1159 * resource.h (IDS_WINDOW_INIT_BADMSG): New string resource ID.
1160 * window.cc (Window::FirstWindowProcReflector): Convert an abort()
1161 into a descriptive error.
1163 2004-08-24 Max Bowsher <maxb@ukf.net>
1165 The Doug Lee replacement malloc was no longer hooked up with the
1166 buildsystem in any way. Pruning the remaining unused file.
1168 * dlmalloc.c: Removed.
1170 2004-08-18 Max Bowsher <maxb@ukf.net>
1172 "librsync is not wire-compatible with rsync 2.x, and is not likely
1173 to be in the future." -- librsync.sourceforge.net
1175 So, it is of no practical use to setup. Therefore, removing all
1176 rsync related files and code from setup.
1178 * rsync: Directory removed.
1179 * Makefile.am: Remove rsync support from the buildsystem.
1180 * configure.in: Ditto.
1181 * README: Since it seems vanishingly unlikely that it will ever happen,
1182 remove rsync support from the wishlist.
1183 * io_stream_rsync.cc: Remove.
1184 * io_stream_rsync.h: Remove.
1186 2004-04-25 Robert Collins <rbtcollins@hotmail.com>
1188 * package_meta.cc (packagemeta::set_requirements): fix problem with
1189 libpcre0 not being pulled in automatically.
1191 2004-04-25 Robert Collins <rbtcollins@hotmail.com>
1193 * IniDBBuilderPackage.cc (dumpAndList):
1194 Move out to packageversion for reuse.
1195 * package_meta.cc (packagemeta::logAllVersions): log dependencies.
1196 * package_version.cc (packageversion::depends):
1197 provide a const accessor.
1198 (dumpAndList): Moved from INIDBBuilder.cc.
1199 * package_version.h: declare new method and function.
1201 2003-12-21 Robert Collins <rbtcollins@hotmail.com>
1203 * main.cc (main): Update to head libgetopt++ syntax.
1205 2003-11-2 Robert Collins <rbtcollins@hotmail.com>
1207 * ControlAdjuster.h (ControlPosition::CP_MIDDLE): Rename to
1209 * ControlAdjuster.cc: Ditto.
1211 2003-10-31 Frank Richter <frichter@gmx.li>
1213 * localdir.cc (OnNext): When SelectDirectoryA() fails, display a
1214 message with the error returned from the system instead of just
1215 'could not change dir'. Also, offer the user to 'Retry', 'Ignore' the
1216 error or 'Abort' the directory change.
1218 2003-10-31 Frank Richter <frichter@gmx.li>
1220 * propsheet.cc (PropSheetWndProc): Don't do child resizing if a the
1221 window gets minimized. Otherwise some glitches (e.g. wrong child
1223 Added support for WM_GETMINMAXINFO. Prevents the property sheet from
1224 getting smaller than the original size.
1226 2003-11-1 Robert Collins <rbtcollins@hotmail.com>
1228 * ControlAdjuster.h (ControlDimension): Add.
1229 (ControlAdjuster): Factor adjust functionality into ControlInfo.
1230 * ControlAdjuster.cc (ControlAdjuster::adjust): Ditto.
1231 (ControlAdjuster::ControlInfo::adjust): Ditto.
1233 2003-10-31 Igor Pechtchanski <pechtcha@cs.nyu.edu>
1235 * ControlAdjuster.h (ControlPosition): New enum type.
1236 (ControlInfo::horizontalPos, ControlInfo::verticalPos): New
1238 (ControlInfo::anchorLeft, ControlInfo::anchorTop,
1239 ControlInfo::anchorRight, ControlInfo::anchorBottom): Remove.
1240 * ControlAdjuster.cc (ControlAdjuster::AdjustControls): Switch to
1241 using position specifiers instead of anchors.
1242 * choose.cc (ChooserControlsInfo): Ditto.
1243 * proppage.cc (DefaultControlsInfo): Ditto.
1244 * propsheet.cc (PropSheetControlsInfo): Ditto.
1245 * site.cc (SiteControlsInfo): Position specifiers for site
1246 selection dialog controls.
1247 * threebar.cc (ThreeBarControlsInfo): Position specifiers for
1248 progress dialog controls.
1250 2003-10-27 Ralf Habacker <ralf.habacker@freenet.de>
1252 * main.cc (HelpOption): New instance.
1253 (main): Added help command line option handling.
1254 * localdir.cc (LocalDirOption): New instance.
1255 (LocalDirSetting::load): allow setting localdir from command line.
1257 2003-10-16 Frank Richter <frichter@gmx.li>
1259 * ControlAdjuster.cc: New file, helper to move elements of a dialog
1260 along when the it's resized.
1261 * ControlAdjuster.h: Ditto.
1262 * Makefile.am: Add new source files.
1263 * proppage.cc (PropertyPage::DialogProc): Adjust some common
1264 controls (Cygwin icon top right, separator below) when a page is
1266 (PropertyPage::PropertyPage): Dito.
1267 * propsheet.cc (IsDialog): New. Test whether a window is a dialog.
1268 Used internally by resize logic.
1269 (EnumPages): New. Used internally by resize logic: resizes the
1270 property sheet's individual pages.
1271 (PropSheetWndProc): New. Hook for the propery sheet window proc.
1272 (PropSheetProc): More style tweaks, add maximize box and thick border
1273 as well. Hook into the property sheet's window proc.
1274 (PropSheet::AdjustPageSize): New. Adjust the metrics of a single page
1275 to fit nicely into the property sheet. Part of resize logic.
1276 * res.rc (All dialogs): The top-right Cygwin icon and top separator
1277 now have IDs distinct from IDC_STATIC, so their metrics can be
1278 adjusted upon a resize. Also, all those Cygwin icons are at the exact
1280 * choose.cc (ChooserPage::ChooserPage): Now the controls on the
1281 chooser page move/size when the page size is changed.
1284 2003-10-23 Jerry D. Hedden <jerry@hedden.us>
1286 * ConnectionSetting.cc (ConnectionSetting::load): Load proxysettings.
1287 (ConnectionSetting::save): Save proxy settings.
1289 2003-10-07 Robert Collins <rbtcollins@hotmail.com>
1291 * proppage.h (PropertyPage::wantsActivation): const correctness fix.
1293 2003-08-19 Max Bowsher <maxb@ukf.net>
1295 * win32.h: Define NOMINMAX only if not already defined - because
1296 libstdc++-v3 3.3.1 defines NOMINMAX itself.
1298 2003-08-03 Max Bowsher <maxb@ukf.net>
1300 * ChangeLog: Fix broken line-wrapping throughout. Clarify that
1301 "Ran automake" in 2003-07-26 entry was in bz2lib and zlib subdirs.
1303 2003-08-03 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1305 * propsheet.cc (Copyright): Update copyright dates.
1306 (PropSheet::PropSheet): Remove NumPropPages initialization.
1307 (PropSheet::CreatePages): Use PropertyPages.size() instead of
1309 (PropSheet::Create): Ditto.
1310 (PropSheet::AddPage): Change to use new PropertyPages std::vector<>.
1311 * propsheet.h (Copyright): Update copyright dates.
1312 (File Scope): Include <vector>.
1313 (PropSheet::PropertyPages): Change from array to vector<>.
1314 (PropSheet::NumPropPages): Remove.
1316 2003-08-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1318 Changes modified by Max Bowsher <maxb@ukf.net>
1319 * splash.cc (Copyright): Update copyright dates.
1320 (SplashPage::OnInit): Remove call to SetDlgItemFont(). Now handled in
1322 * proppage.h (PropertyPage::setTitleFont): Declare.
1323 * proppage.cc (Copyright): Update copyright dates.
1324 (PropertyPage::DialogProc WM_INITDIALOG): Move all font setting code,
1325 including that from splash.cc into new function...
1326 (PropertyPage::setTitleFont): Create, using moved code. Change font
1327 "MS Sans Serif" to "MS Shell Dlg" in line with recent res.rc change.
1328 Set font for IDC_STATIC_WELCOME_TITLE here, to allow easy re-use of
1329 style for future "Finished" page.
1331 2003-08-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1333 * propsheet.cc: Include "resource.h".
1334 (PropSheet::Create): Add the Cygwin icon in the left of the title bar.
1336 2003-08-01 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1338 * proppage.cc (PropertyPage::FirstDialogProcReflector): Modify comment.
1340 2003-08-01 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1342 * proppage.h (Copyright): Update copyright dates.
1343 (PropertyPage): Document OnNext and OnBack.
1345 2003-07-31 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1347 * proppage.cc (PropertyPage::Create): Use more self-documenting
1348 MAKEINTRESOURCE() instead of cast to LPCSTR.
1350 2003-07-31 Robert Collins <rbtcollins@hotmail.com>
1352 * README: Mark completed items complete.
1354 2003-07-31 Pierre Humblet <pierre.humblet@ieee.org>
1356 * main.cc (set_default_sec): Set token owner from token user.
1357 Always try to set the token primary group to Users or Admins.
1359 2003-07-30 Igor Pechtchanski <pechtcha@cs.nyu.edu>
1361 * String++.h (String::replace): New instance functions.
1362 * String++.cc (String::replace): Implement.
1363 * filemanip.cc (backslash): Change to use String::replace.
1364 * desktop.cc (make_cygwin_bat): Escape '%' in path.
1366 2003-07-30 Igor Pechtchanski <pechtcha@cs.nyu.edu>
1368 * String++.h (TOSTRING): New macro.
1369 * UserSettings.cc (UserSettings::deRegisterSetting): Fix
1370 erroneous __LINE__/__FILE__ usage.
1371 * download.cc (validateCachedPackage, check_for_cached): Ditto.
1372 * geturl.cc (getUrlToStream): Ditto.
1373 * install.cc (md5_one): Ditto.
1375 2003-07-30 Max Bowsher <maxb@ukf.net>
1377 * ini.cc (do_ini_thread): Return bool.
1378 (do_ini_thread_reflector): Put returned bool in lParam.
1379 * threebar.cc (WM_APP_SETUP_INI_DOWNLOAD_COMPLETE): Rework for new
1380 meaning of lParam. Replace erroneous use of do_fromcwd with
1381 SetActivePageByID (IDD_SOURCE).
1383 2003-07-30 Robert Collins <rbtcollins@hotmail.com>
1385 * ConnectionSetting.cc: New file, persist connection type selection.
1386 * ConnectionSetting.h: Ditto.
1387 * net.cc: Hold a ConnectionSetting instance to trigger the logic.
1388 (NetPage::OnInit): Don't force net_method to any value.
1389 * Makefile.am: Add new source files.
1391 2003-07-30 Robert Collins <rbtcollins@hotmail.com>
1393 * SourceSetting.cc: New file, persist source selection.
1394 * SourceSetting.h: Ditto.
1395 * source.cc: Hold a Source setting instance to trigger the logic.
1396 * Makefile.am: Add new source files.
1398 2003-07-30 Robert Collins <rbtcollins@hotmail.com>
1400 * UserSettings.h (UserSettings::settingFileForLoad): Extracted method
1401 from LocalDirSetting::load().
1402 * UserSettings.cc (UserSettings::settingFileForLoad): Ditto.
1403 * UserSettings.h (UserSettings::settingFileForSave): Extracted method
1404 from LocalDirSetting::save().
1405 * UserSettings.cc (UserSettings::settingFileForSave): Ditto.
1406 * localdir.cc (LocalDirSetting::load): Extract location logic to
1408 (LocalDirSetting::save): Extract location logic to UserSettings.
1409 * site.cc (SiteSetting::getSavedSites): Use
1410 UserSettings::settingFileForLoad.
1411 (SiteSetting::save): Use UserSettings::settingFileForSave.
1413 2003-07-30 Robert Collins <rbtcollins@hotmail.com>
1415 * PickView.cc: Adjust ::GetClientRect(..) to the inherited one
1418 2003-07-29 Max Bowsher <maxb@ukf.net>
1420 Based on a patch by Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>.
1421 * AntiVirus.cc (AntiVirusPage::wantsActivation): Define.
1422 * AntiVirus.h (AntiVirusPage::wantsActivation): Declare.
1423 * localdir.cc (LocalDirPage::OnBack): Remove logic subsumed by
1424 RootPage::wantsActivation.
1425 * proppage.cc (PropertyPage::DialogProc): Call wantsActivation(),
1426 and skip to next page in sequence if activation is refused.
1427 * proppage.h (PropertyPage::wantsActivation): Default implementation.
1428 * root.cc (RootPage::wantsActivation): Define.
1429 * root.h (RootPage::wantsActivation): Declare.
1430 * source.cc: Don't include "AntiVirus.h".
1431 (SourcePage::OnNext): Remove logic subsumed by
1432 RootPage::wantsActivation.
1433 (SourcePage::OnBack): Remove logic subsumed by
1434 AntiVirusPage::wantsActivation.
1435 * splash.cc: Don't include "AntiVirus.h" or "dialog.h".
1436 (SplashPage::OnNext): Remove - subsumed by
1437 AntiVirusPage::wantsActivation.
1438 * splash.h (SplashPage::OnNext): Remove declaration.
1440 2003-07-29 Robert Collins <rbtcollins@hotmail.com>
1442 * PickView.h (PickView::refresh): New method.
1443 * PickView.cc (PickView::refresh): Extracted from various
1444 ChooserPage callers.
1445 * choose.cc: Use PickView::refresh wherever possible.
1447 2003-07-29 Robert Collins <rbtcollins@hotmail.com>
1449 * choose.h (ChooserPage::createListView): Remove last parameter.
1450 (ChooserPage::getDefaultListViewSize): Extracted method.
1451 * choose.cc (ChooserPage::createListView): Remove last parameter.
1452 (ChooserPage::getDefaultListViewSize): Extracted method.
1454 2003-07-29 Robert Collins <rbtcollins@hotmail.com>
1456 * choose.cc (ChooserPage::createListView): Remove unneeded
1460 2003-07-29 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1462 * dialog.h (do_fromcwd): Change function declaration.
1463 * fromcwd.cc (do_fromcwd): Change return type to bool. Eliminate
1464 use of next_dialog, return true or false instead.
1465 * localdir.cc (LocalDirPage::OnNext): Use do_fromcwd()'s return
1466 value instead of next_dialog.
1468 2003-07-29 Robert Collins <rbtcollins@hotmail.com>
1470 * package_db.h (packagedb::fillMissingCategory): Move from ChooserPage.
1471 * choose.h (ChooserPage::fillMissingCategory): Delete.
1472 * package_db.cc (packagedb::fillMissingCategory): Move from ChooserPage.
1473 * choose.cc (ChooserPage::fillMissingCategory): Delete and adjust
1476 2003-07-29 Robert Collins <rbtcollins@hotmail.com>
1478 * PickView.h (CATEGORY_EXPANDED): Move from choose.h
1479 (CATEGORY_COLLAPSED): Move from choose.cc.
1480 (PickView::setViewMode): Move from ChooserPage.
1481 * choose.h (CATEGORY_EXPANDED): Delete.
1482 (CATEGORY_COLLAPSED): Delete.
1483 (ChooserPage::setViewMode): Delete.
1484 * PickView.cc (PickView::setViewMode): Move from ChooserPage.
1485 * chooser.cc (ChooserPage::setViewMode): Delete, and adjust callers
1488 2003-07-28 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1490 * AntiVirus.cc (AntiVirusPage::OnNext): Do not explicitly specify the
1491 page to display next, since it follows in the default page ordering
1494 2003-07-28 Max Bowsher <maxb@ukf.net>
1496 * dialog.h: (NEXT): Remove obsolete macro.
1497 * site.cc (save_dialog): Remove use of NEXT(), and non-functional
1498 unnecessary error handler.
1500 2003-07-28 Robert Collins <rbtcollins@hotmail.com>
1502 * package_meta.h (packagemeta::addToCategoryAll): Declare.
1503 * package_meta.cc (packagemeta::addToCategoryAll): New method,
1504 separated to allow clear iteration.
1505 * choose.cc (ChooserPage::fillMissingCategory): BUGFIX: "all" is
1506 meant to be added unconditionally.
1508 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
1510 * Generic.h: New file, home for generic programming tools.
1511 (visit_if): Move here from package_meta.cc.
1512 Adjust to be fully parameterised.
1513 * package_meta.h (packagemeta::hasNoCategories): Query for generic
1515 (packagemeta::setDefaultCategories): set categories for packages
1517 * package_meta.cc: Move visit_if out. Adjust users for
1518 full paramterised operation.
1519 (packagemeta::hasNoCategories): Implement.
1520 (packagemeta::setDefaultCategories): Implement.
1521 * choose.cc (ChooserPage::fillMissingCategory): Use visit_if to
1522 reduce duplicate code.
1523 (ChooserPage::setExistence): Delete.
1524 * choose.h (ChooserPage::setExistence): Rename to
1525 packagedb::setExistence.
1526 * package_db.h (packagedb::setExistence): Declare.
1527 * package_db.cc (packagedb::setExistence): Copy from choose.cc
1529 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
1531 * localdir.h (LocalDirPage::OnInit): Remove.
1532 * localdir.cc (LocalDirPage::OnInit): Move to LocalDirSetting
1534 (LocalDirSetting::load): Copied from LocalDirPage::OnInit.
1535 * site.h (SitePage::OnInit): Remove.
1536 (SitePage::getSavedSites): New member, replaces get_saved_sites.
1537 (SitePage::registerSavedSite): New member, replaces
1538 register_saved_site.
1539 * site.cc (SitePage::OnInit): Move to SiteSetting::load().
1540 (SiteSetting::load): Copied from SitePage::OnInit.
1541 (SitePage::getSavedSites): Renamed from get_saved_sites.
1542 (SitePage::registerSavedSite): Renamed from register_saved_site.
1543 (do_download_site_info_thread): Don't look at the list size for
1544 determining if the download was successful.
1546 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
1548 * choose.h (ChooserPage::setViewMode): Remove HWND from
1550 (ChooserPage::defaultTrust): Ditto.
1552 (ChooserPage::ifChecked): Use Window helper function
1554 * choose.cc (ChooserPage::setViewMode): Use chooser->GetHWND()
1556 Update all callers with new signature.
1557 (ChooserPage::defaultTrust): Ditto.
1559 * PickView.h (PickView::defaultTrust): Declare.
1560 * PickView.cc (PickView::defaultTrust): Copy from chooser.cc.
1562 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
1564 * PickView.h (PickView::lv): Eliminate.
1565 * PickView.cc (PickView::init): Replace use of lv with
1567 (PickView::list_click): Ditto.
1568 * choose.h (ChooserPage::lv): Eliminate.
1569 * choose.cc: Replace lv with chooser->GetHWND()
1572 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
1574 * PickView.h (PickView::chooser): Eliminate.
1575 (PickView::list_vscroll): Make non-static.
1576 (PickView::list_hscroll): Ditto.
1577 (PickView::list_click): Ditto.
1578 (PickView::paint): Ditto.
1579 * PickView.cc (PickView::list_vscroll): Eliminate use
1580 of PickView::chooser.
1581 (PickView::list_hscroll): Ditto.
1582 (PickView::list_click): Ditto.
1583 (PickView::paint): Ditto.
1584 * choose.cc (Chooser::createListView): Eliminate use
1585 of PickView::chooser.
1587 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
1589 * PickView.h (PickView): Inherit from Window.
1590 (PickView::RegisterWindows): Move from ChooserPage.
1591 (PickView::listview_proc): Likewise.
1592 (PickView::paint): Ditto.
1593 (PickView::list_click): Ditto.
1594 (PickView::list_hscroll): Ditto.
1595 (PickView::list_vscroll): Ditto.
1596 (PickView::lv): Ditto.
1597 (PickView::chooser): Ditto.
1598 (PickView::Create): Override Windows::Create as we migrate.
1599 (PickView::registerWindowClass): Renamed RegisterWindows.
1600 (PickView::WindowClassAtom): Prevent double registration.
1601 (PickView::init): Declare.
1602 * PickView.cc: Adjust for new inheritance.
1603 (PickView::RegisterWindows): Move from ChooserPage.
1604 (PickView::listview_proc): Likewise.
1605 (PickView::paint): Ditto.
1606 (PickView::list_click): Ditto.
1607 (PickView::list_hscroll): Ditto.
1608 (PickView::list_vscroll): Ditto.
1609 (PickView::lv): Ditto.
1610 (PickView::chooser): Ditto.
1611 (PickView::Create): Introduce stub.
1612 (PickView::RegisterWindows): Rename
1613 (PickView::init): Extracted from constructor to allow
1615 * chooser.h (ChooserPage::registerWindows): Rename to
1616 PickView::RegisterWindows.
1617 (ChooserPage::listview_proc): Likewise.
1618 (ChooserPage::paint): Ditto.
1619 (ChooserPage::list_click): Ditto.
1620 (ChooserPage::list_hscroll): Ditto.
1621 (ChooserPage::list_vscroll): Ditto.
1622 (ChooserPage::lv): Duplicate into PickView, observe
1624 (ChooserPage::chooser): Ditto.
1625 * chooser.cc (ChooserPage::registerWindows): Delete.
1626 (ChooserPage::listview_proc): Ditto.
1627 (ChooserPage::paint): Ditto.
1628 (ChooserPage::list_click): Ditto.
1629 (ChooserPage::list_hscroll): Ditto.
1630 (ChooserPage::list_vscroll): Ditto.
1631 (ChooserPage::createListView): Create() on PickView.
1632 * window.h (Window::RegisterWindowClass): Make virtual
1633 to allow Create to become a Template Method, and rename
1634 to registerWindowClass as it's not static.
1635 * window.cc (Window::registerWindowClass): Ditto.
1636 (Window::FirstWindowProcReflector): BUGFIX: Set window
1637 handle to prevent races with the window procedure.
1639 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
1641 * choose.cc (set_view_mode): Rename to ChooserPage::setViewMode.
1642 (default_trust): Rename to ChooserPage::defaultTrust.
1643 (fill_missing_category): Rename to ChooserPage::fillMissingCategory.
1644 (set_existence): Rename to ChooserPage::setExistence.
1645 (register_windows): Rename to ChooserPage::registerWindows.
1646 (listview_proc): Rename to ChooserPage::listview_proc.
1647 (paint): Rename to ChooserPage::paint.
1648 (list_click): Rename to ChooserPage::list_click.
1649 (list_hscroll): Rename to ChooserPage::list_hscroll.
1650 (list_vscroll): Rename to ChooserPage::list_vscroll.
1651 (lv): Rename to ChooserPage::lv.
1652 (chooser): Rename to ChooserPage::chooser.
1653 * choose.h (ChooserPage::setViewMode): Declare.
1654 (ChooserPage::defaultTrust): Declare.
1655 (ChooserPage::fillMissingCategory): Declare.
1656 (ChooserPage::setExistence): Declare.
1657 (ChooserPage::registerWindows): Declare.
1658 (ChooserPage::listview_proc): Declare.
1659 (ChooserPage::paint): Declare.
1660 (ChooserPage::list_click): Declare.
1661 (ChooserPage::list_hscroll): Declare.
1662 (ChooserPage::list_vscroll): Declare.
1663 (ChooserPage::lv): Declare.
1664 (ChooserPage::chooser): Declare.
1666 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
1668 * choose.cc (create_listview): Use for_each instead of explicit
1670 (create_listview): Rename to ChooserPage::createListview.
1671 * package_meta.h (packagemeta::set_requirements): Explicitly separate
1672 the 1 and 2 parameter versions.
1674 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
1676 * String++.h (String::operator !=): Declare for char * and String.
1677 * String++.cc (String::operator !=): Implement.
1678 * package_meta.cc(StringConcatenator): Move above all users.
1679 (_visit_if): Predicate support for visitors.
1680 (packagemeta::getReadableCategoryList): Refactor to use
1681 StringConcatenator with a predicate.
1682 * choose.h: Remove unneeded c++ guards.
1684 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
1686 * choose.cc (scan_downloaded_files): Rename to
1687 packagemeta::ScanDownloadedFiles.
1688 (scanAVersion): Rename to packageversion::scan.
1689 (GetParentRect): Rename to ChooserPage::getParentRect.
1690 * choose.h (ChooserPage::getParentRect): Declare.
1691 * package_meta.h (packagemeta::ScanDownloadedFiles): Declare.
1692 * package_version.h (packageversion::scan): Declare.
1693 * package_version.cc (packageversion::scan): Move from choose.cc
1694 * package_meta.cc (packagemeta::ScanDownloadedFiles): Move from
1697 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
1699 * choose.cc (ChooserPage::OnNext): log before starting activity threads.
1700 (ChooserPage::OnInit): Remove temporary variable frame.
1701 (ChooserPage::setPrompt): Extract method from OnInit.
1702 (choose_inst_text): Remove unused variable.
1703 * choose.h(ChooserPage::setPrompt): Declare
1704 * res.rc (IDD_CHOOSE): Bugfix: the chooser was setting a non-present
1707 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
1709 Remove package specific code from choose.cc.
1710 Update copyrights where appropriate.
1711 * choose.cc(ChooserPage::OnNext): Extract logging to
1712 packagemeta::logSelectionStatus.
1713 * package_meta.cc(packagemeta::logSelectionStatus): Extract from
1714 ChooserPage::OnNext.
1715 (StringConcatenator): helper for logSelectionStatus.
1716 (action_caption): Make const.
1717 * package_meta.h(packagemeta): Declare logSelectionStatus.
1718 (packagemeta::action_caption): Make const.
1719 * package_version.cc(packageversion::sourcePackage): Make const.
1720 * package_version.h(packageversion::sourcePackage): Make const.
1722 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
1724 * choose.cc: Update copyright.
1725 (ChooserPage::keepClicked): Extracted from OnMessageCmd.
1726 (ChooserPage::changeTrust): Ditto.
1727 * choose.h (ChooserPage): Declare keepClicked and changeTrust.
1728 (ChooserPage::ifChecked): Extracted from OnMessageCmd.
1729 * package_meta.h (SetRequirement): Adapter for visiting package
1732 2003-07-26 Max Bowsher <maxb@ukf.net>
1734 * tests/.cvsignore: New file, listing Makefile.in.
1736 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
1738 Save used local cache dir from initial run of setup, so the user doesn't
1740 * localdir.h (LocalDirSetting): UserSetting class for the local cache
1742 * localdir.cc (LocalDirSetting::save): Replace save_local_dir, and
1745 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
1747 Save used site from initial run of setup, so the user doesn't need to
1749 * main.cc (main): Load and save all user settings.
1750 * site.cc (SiteSetting::save): Migrate logic from save_site_url.
1751 (SitePage::OnNext): Use ChosenSites.save() to remove uneeded
1753 (save_site_url): Delete.
1754 * site.h (save_site_url): Remove declaration.
1755 * .cvsignore: Update autoconf generated files.
1757 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
1759 * tests/Makefile.am: Driver for test suite.
1760 * tests/UserSettingTest.cc: Test UserSetting interface.
1761 * tests/UserSettingsTest.cc: Test UserSettings interface.
1762 * Makefile.am: Add the tests dir to recurse into.
1763 * configure.in: Ditto.
1764 * UserSetting.h: Add load and save methods to allow global
1766 Add explicit copy and assignment operators to prevent synthetics.
1767 Make the constructor protected to prevent direct instantiation.
1768 * UserSettings.h (UserSettings::loadAllSettings): New method.
1769 (UserSettings::savedAllSettings): New method.
1770 * UserSettings.cc: Implement new methods.
1771 * site.cc: Implement stubs for new required UserSetting methods.
1772 * site.h (ChosenSite): Ditto.
1773 * bz2lib/: Ran automake.
1774 * zlib/: Ran automake.
1776 2003-07-23 Max Bowsher <maxb@ukf.net>
1778 * desktop.cc (DesktopSetupPage::OnBack): Remove obsolete use of NEXT().
1779 * root.cc (RootPage::OnNext): Ditto.
1780 (RootPage::OnBack): Ditto.
1781 * install.cc (do_install_thread): Remove obsolete use of next_dialog.
1782 * main.cc (main): Ditto.
1783 * postinstall.cc (do_postinstall_thread): Ditto.
1785 2003-07-23 Max Bowsher <maxb@ukf.net>
1787 * dialog.h (do_choose, do_desktop, do_local_dir, do_net, do_other)
1788 (do_root, do_site, do_source, do_splash): Remove declarations, since
1789 these functions no longer exist.
1791 2003-07-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1793 * choose.cc (initialized): Remove obsolete file scope variable.
1795 2003-07-18 Max Bowsher <maxb@ukf.net>
1797 * res.rc: Make caption of every dialog page begin with "Cygwin Setup".
1798 This aids recognition when minimized.
1799 Prompted by Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>.
1801 2003-07-10 Jeremy White <jwhite@codeweavers.com>
1803 * mount.cc, root.cc, site.cc: Make StringOptions required,
1804 thereby making --longopt <parm> behave as a newbie would expect.
1806 2003-07-08 Max Bowsher <maxb@ukf.net>
1808 * LogFile.h, cistring.h, dialog.h, diskfull.h, filemanip.h, geturl.h,
1809 hash.h, log.h, mkdir.h, mklink2.h, mount.h, msg.h, netio.h, nio-file.h,
1810 nio-ftp.h, nio-http.h, nio-ie5.h, port.h, simpsock.h, state.h,
1811 version.h: Add inclusion guard.
1812 * root.h: Standardize naming of inclusion guard.
1814 2003-06-23 Max Bowsher <maxb@ukf.net>
1816 * AntiVirus.h, Exception.h, FilterVisitor.h, FindVisitor.h,
1817 IOStreamProvider.h, IniDBBuilder.h, IniDBBuilderPackage.h,
1818 IniParseFeedback.h, IniParseFindVisitor.h, LogSingleton.h, MD5++.h,
1819 PackageSpecification.h, PackageTrust.h, PickCategoryLine.h, PickLine.h,
1820 PickPackageLine.h, PickView.h, RECTWrapper.h, ScanFindVisitor.h,
1821 String++.h, UserSetting.h, UserSettings.h, archive.h, archive_tar.h,
1822 category.h, choose.h, compress.h, compress_bz.h, compress_gz.h,
1823 cygpackage.h, desktop.h, download.h, find.h, ini.h, io_stream.h,
1824 io_stream_cygfile.h, io_stream_file.h, io_stream_memory.h,
1825 io_stream_rsync.h, localdir.h, net.h, package_db.h, package_meta.h,
1826 package_source.h, package_version.h, proppage.h, propsheet.h, script.h,
1827 site.h, source.h, splash.h, threebar.h, win32.h, window.h:
1828 Standardize naming and placement of inclusion guards.
1830 2003-06-22 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
1832 * res.rc (all dialogs): Change font from "MS Sans Serif" to
1835 2003-06-22 Max Bowsher <maxb@ukf.net>
1837 * Makefile.am: Clarify comment.
1838 Derive AM_CFLAGS from AM_CXXFLAGS, rather than the other way around.
1839 (AM_CXXFLAGS): Remove -Wmissing-declarations - it is a C-only warning.
1840 (AM_CFLAGS): Add -Winline, and -Wmissing-declarations.
1842 2003-06-22 Max Bowsher <maxb@ukf.net>
1844 * rfc1738.cc (rfc1738_do_escape): Eliminate redundant conditional.
1846 2003-06-05 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1848 * window.h (SETUP_WINDOW_H): Rename multi-include guard.
1849 (Copyright): Update.
1850 (RECTWrapper): New forward declaration.
1851 (Window::Create): Move.
1852 (Window::MoveWindow): New overload declaration.
1853 * window.cc: (RECTWrapper.h) Include.
1854 (Copyright): Update.
1855 (Window::FirstWindowProcReflector): Use reinterpret_cast<> instead
1857 (Window::MoveWindow): New overload.
1859 2003-05-31 Max Bowsher <maxb@ukf.net>
1861 * res.rc: Resize title controls to fully fill available width.
1863 2003-05-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1865 * RECTWrapper.h: New file.
1867 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
1869 * script.cc (Script::extension): Extract method from Script::run.
1870 (Script::run): Extract extension generation to Script::extension.
1871 * script.h (Script::extension): Declare.
1873 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
1875 * script.cc (run_script): Remove.
1876 (try_run_script): Inline method run_script.
1877 * script.h (run_script): Remove.
1879 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
1881 * postinstall.cc (RunScript::operator()): Use new run syntax.
1882 * script.h (Script::run): Eliminate to_log parameter.
1883 * script.cc (Script::run): Ditto.
1884 (run_script): Use new run syntax.
1886 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
1888 * script.cc (Script::run): Eliminate temp variable 'f2'.
1889 Rename temp variable 'f2' to 'windowsName' for increased clarity.
1891 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
1893 * script.cc (Script::run): Eliminate temp variable 'fname'.
1895 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
1897 * script.cc (Script::run): Eliminate temp variable 'dir'.
1899 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
1901 * script.cc (run_script): Always pass TRUE to Script::run.
1902 * script.h (run_script): Remove optional to_log parameter.
1904 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
1906 * script.cc (run_script): Move functionality into Script.
1907 (Script::run): Absorb run_script.
1909 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
1911 * PickCategoryLine.cc (PickCategoryLine::click): Tell packagemeta we
1912 are about to perform a visit.
1913 * PickPackageLine.cc (PickPackageLine::click): Tell packagemeta we
1914 are about to perform a visit.
1915 * package_db.cc (packagedb::markUnVisited): Convenience wrapper -
1916 mark all packages as unvisited.
1917 * package_db.h (packagedb::markUnVisited): Declare.
1918 * package_meta.cc (packagemeta::PrepareForVisit): New static method
1919 to prepare for a loop-free visit.
1920 (packagemeta::packagemeta): Adjust for new member.
1921 (packagemeta::set_requirements): Only visit a node once.
1922 (packagemeta::visited): Get and Set methods for new member visited_.
1923 * package_meta.h (packagemeta::PrepareForVisit): Declare.
1924 (packagemeta::visited): Declare.
1925 (packagemeta::visited_): Declare.
1927 2003-04-07 Max Bowsher <maxb@ukf.net>
1929 * download.cc: Add command line option to suppress MD5 checks.
1930 (validateCachedPackage): Test option and possibly skip.
1932 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
1934 Merge in setup-200303-troubleshooting fixes.
1936 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
1938 * main.cc (NTSecurity::setDefaultDACL): Reinstate commented code.
1939 (NTSecurity::setDefaultSecurity): Ditto.
1941 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
1943 * main.cc (NTSecurity::setDefaultDACL): Use MS calculations for ACL
1946 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
1948 * main.cc (NTSecurity::setDefaultDACL): Sanity check memory allocation.
1950 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
1952 * main.cc (NTSecurity::setDefaultDACL): Adjust commented code for
1955 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
1957 * main.cc (NTSecurity::NoteFailedAPI): Helper function.
1958 Use throughout NTSecurity routines.
1959 (NTSecurity::setDefaultDACL): Use dynamic memory for ACL storage.
1961 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
1963 * main.cc (NTSecurity::setDefaultDACL): Disable ~ 50% of remaining
1966 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
1968 * main.cc (NTSecurity::GroupInfo): Extract group query code.
1969 (NTSecurity::setDefaultDACL): Disable ~ 50% of code.
1971 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
1973 * main.cc (NTSecurity::setDefaultSecurity): Disable ~ 50% of security
1976 2003-04-01 Robert Collins <rbtcollins@hotmail.com>
1978 * main.cc (NTSecurity::setDefaultSecurity): Remove double declaration of
1979 sz. User TokenGroupCollection to abstract token searching logic,
1980 eliminate isadmin and isuser temporary variables.
1981 (TokenGroupCollection): New class for querying token group information.
1983 2003-04-01 Robert Collins <rbtcollins@hotmail.com>
1985 * main.cc (NTSecurity::setDefaultSecurity): Extract esid initialisation.
1986 Move local variables to just before first use.
1987 SetTokenInformationFailures where being handled inconsistently.
1988 Remove assignments from if statements.
1989 (NTSecurity::esid): Rename to everyOneSID.
1990 (NTSecurity::initialiseEveryOneSID): new method.
1991 (NTSecurity::setDefaultDACL): Extract method for default DACL logic.
1993 2003-04-01 Robert Collins <rbtcollins@hotmail.com>
1995 * main.cc (SIDWrapper): Manage SID memory.
1996 (HANDLEWrapper): Likewise for HANDLES.
1997 (NTSecurity): Worker class for set_default_sec().
1998 (set_default_sec): Move body into NTSecurity::setDefaultSecurity().
1999 (NTSecurity::setDefaultSecurity): Eliminate goto out: via memory
2002 2003-04-01 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2004 * cygwin.ico: Added two new resolutions, 64x64 and 72x72.
2006 2003-03-29 Robert Collins <rbtcollins@hotmail.com>
2008 * GUIDELINES: New file documenting code guidelines.
2010 2003-03-26 Max Bowsher <maxb@ukf.net>
2012 * .cvsignore: Add cfgaux.
2014 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
2016 * package_version.cc (_defaultversion::accessible): Override and make
2018 (_packageversion::accessible): Fix a couple of logic bugs resulting in
2020 * package_version.h (_packageversion::accessible): Make virtual.
2022 2003-03-25 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2024 * threebar.h (WM_APP_START_POSTINSTALL): New message.
2025 (WM_APP_POSTINSTALL_THREAD_COMPLETE): New message.
2026 * threebar.cc (ThreeBarProgressPage::OnMessageApp):
2027 Add handling for WM_APP_START_POSTINSTALL and
2028 WM_APP_POSTINSTALL_THREAD_COMPLETE.
2029 * install.cc (do_install_thread): Set next_dialog to
2031 * desktop.cc (DesktopSetupPage::OnFinish): Move the
2032 do_postinstall call to ThreeBarProgressPage::OnMessageApp.
2033 * script.h (Script::fullName): New member function.
2034 (Script::run): New member function.
2035 (Script::ETCPostinstall): New static member constant.
2036 * script.cc (Script::fullName): Implement.
2037 (Script::run): Implement.
2038 (Script::ETCPostinstall): Define.
2039 (Script::isAScript): Use ETCPostinstall instead of a
2040 hardcoded string constant.
2041 (run): Enable "#if 0"'d code.
2042 * postinstall.cc (Progress): New extern variable.
2043 (RunFindVisitor::visitFile): Add script to vector
2045 (RunFindVisitor::_scripts): New member variable.
2046 (RunScript): New helper class for use in for_each.
2047 (do_postinstall_thread): Rename do_postinstall to. Add
2048 Progress bar and text setting. Add package count.
2049 (do_postinstall_reflector): New static function.
2050 (do_postinstall): Rename to do_postinstall_thread.
2051 Create a thread instead.
2053 2003-03-18 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2055 * script.cc (run): Add file_out parameter.
2056 Redirect output of subprocess to file, creating the
2057 path if necessary. Minimize the script window.
2058 (run_script): Add optional to_log boolean parameter.
2059 If to_log, redirect output to temporary file and then
2060 import it into LOG_BABBLE.
2061 (OutputLog): New helper class.
2062 (operator<<): New operation on OutputLog.
2063 * script.h (run_script): Add optional to_log parameter.
2064 * postinstall.cc (RunFindVisitor::visitFile): Instruct
2065 run_script() to log script output.
2066 (do_postinstall): Ditto.
2068 2003-03-20 Robert Collins <rbtcollins@hotmail.com>
2070 * package_meta.cc (packagemeta::set_action): The logic
2071 test for the default action was reversed.
2073 2003-03-18 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2075 * postinstall.cc (do_postinstall): Filter out '*.done'.
2076 * FilterVisitor.h: New header file. Declare the
2077 FilterVisitor, Filter, and ExcludeNameFilter classes.
2078 * FilterVisitor.cc: New file. Implement FilterVisitor,
2079 Filter, and ExcludeNameFilter.
2080 * String++.h (String::matches): New instance function.
2081 * String++.cc (String::matches): Implement.
2082 (strmatch) Import and adapt for <buf,len> strings.
2083 * Makefile.am (setup_SOURCES): Add FilterVisitor.cc and
2084 FilterVisitor.h to value.
2086 2002-03-18 Max Bowsher <maxb@ukf.net>
2088 * LogFile.cc (LogFile::exit): Use CRT exit() instead of ExitProcess().
2089 Use passed exit_code even if been_here.
2090 Remove incorrect _CYGWIN_ preprocessor conditional.
2092 2003-03-16 Robert Collins <rbtcollins@hotmail.com>
2094 * package_db.h (PackageDBConnectedIterator): Typedef
2095 for connected loop detection collection iterator.
2096 * package_db.cc (ConnectedLoopDetector): An
2097 implementation of R.E. Tarjans strongly connected
2098 set visitor algorithm.
2099 * postinstall.cc (do_postinstall): Use the new iterator
2100 for visiting postinstall scripts.
2102 2003-03-16 Robert Collins <rbtcollins@hotmail.com>
2104 * install.cc: Introduce Installer class.
2105 (init_dialog): Rename to Installer::initDialog.
2106 (progress): Rename to Installer::progress.
2107 (standard_dirs): Rename to Installer::StandardDirs.
2108 (uninstall_one): Rename to Installer::uninstallOne.
2109 (replace_one): Rename to Installer::replaceOne.
2110 (log_ror_failure): Rename to
2111 Installer::replaceOnRebootFailed.
2112 (log_ror_success): Rename to
2113 Installer::replaceOnRebootSucceeded.
2114 (install_one_source): Rename to Installer::installOneSource.
2115 Note script files as they are installed.
2116 * package_version.cc (packageversion::addScript): Implement.
2117 (packageversion::scripts): Implement.
2118 * package_version.h (packageversion::addScript): Record the
2119 presence of a script.
2120 * script.h (Script): New class to track scripts.
2121 * postinstall.cc (do_postinstall): Iterate through the
2122 package listed scripts before searching for scripts.
2123 * String++.cc (String::substr): Second argument needed to
2125 * String++.h (String::substr): Second argument needed to
2128 2003-03-16 Max Bowsher <maxb@ukf.net>
2130 * .cvsignore: Create, to ignore configure, aclocal.m4, Makefile.in and
2133 2003-03-16 Max Bowsher <maxb@ukf.net>
2135 * UserSettings.cc (UserSettings::Instance): Remove premature return.
2137 2003-03-15 Robert Collins <rbtcollins@hotmail.com>
2139 * script.cc (run): Rename variable b to createSucceeded.
2141 2003-03-15 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2143 * script.cc (run): Close unneeded handles.
2145 2003-03-15 Robert Collins <rbtcollins@hotmail.com>
2147 * configure: Remove.
2148 * aclocal.m4: Remove.
2149 * Makefile.in: Remove.
2151 * cfgaux/compile: Remove.
2152 * cfgaux/config.guess: Remove.
2153 * cfgaux/config.sub: Remove.
2154 * cfgaux/depcomp: Remove.
2155 * cfgaux/install-sh: Remove.
2156 * cfgaux/ltmain.sh: Remove.
2157 * cfgaux/missing: Remove.
2158 * cfgaux/mkinstalldirs: Remove.
2160 2003-03-14 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2162 * install.cc (replace_one): Clear Text3.
2164 2003-03-14 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2166 * install.cc (install_one_source): Add logging for successful
2167 replace-on-reboot scheduling. Factor out duplicate code.
2168 Set rebootneeded on Win9x.
2169 (log_ror_failure): New static function.
2170 (log_ror_success): New static function.
2172 2003-03-14 Robert Collins <rbtcollins@hotmail.com>
2174 * choose.cc (ChooserPage::OnNext): Fix iterator bug. Reported by
2175 Igor Pechtchanski <pechtcha@cs.nyu.edu>.
2177 2003-03-13 Max Bowsher <maxb@ukf.net>
2179 * Update included zlib to 1.1.4.
2181 2003-03-13 Robert Collins <rbtcollins@hotmail.com>
2183 * install.cc (do_install_thread): Use a query method rather than temp
2186 2003-03-09 Pavel Tsekov <ptsekov@gmx.net>
2188 * install.cc (do_install_thread): Use IDS_SKIP_PACKAGE
2189 instead of IDS_CORRUPT_PACKAGE when asking the user to take
2190 action if the hash verification check fails for a source package.
2191 Do not increase the value of 'total_bytes' variable if the
2192 user chooses to skip over a package, which failed the hash
2195 2003-03-10 Max Bowsher <maxb@ukf.net>
2197 * Makefile.am: Add foreign to AUTOMAKE_OPTIONS.
2199 2003-03-10 Robert Collins <rbtcollins@hotmail.com>
2201 * UserSettings.cc (UserSettings::init): Really initialize all members.
2203 2003-03-10 Robert Collins <rbtcollins@hotmail.com>
2205 * Exception.h: Add a logic error exception id.
2206 * Makefile.am: Add new sources.
2207 * UserSettings.cc: New file.
2208 * UserSettings.h: New file.
2209 * UserSetting.cc: New file.
2210 * UserSetting.h: New file.
2211 * site.h: Add a SiteSetting as example of a UserSetting.
2212 * site.cc (ChosenSites): Add a instance of SiteSetting to trigger
2215 2003-03-10 Robert Collins <rbtcollins@hotmail.com>
2217 * compress_bz.cc (compress_bz::read): Adjust incorrect assignment of
2219 (compress_bz::error): Return lasterr which will indicate any error.
2221 2003-03-10 Robert Collins <rbtcollins@hotmail.com>
2223 * choose.h (ChooserPage): Override OnActivate.
2224 * choose.cc (ChooserPage::OnActivate): Refresh the current view when
2225 activating the dialog.
2227 2003-03-09 Robert Collins <rbtcollins@hotmail.com>
2229 * package_version.cc (_defaultversion::pick(bool)): Override this and
2231 (packageversion::pick(bool): Use a mutator function rather than direct
2233 * package_version.h (_packageversion::pick(bool)): Move method from
2236 2003-02-16 Pavel Tsekov <ptsekov@gmx.net>
2238 * install.cc (install_one_source): Remove the MD5 verification
2240 Delay the creation of the package listing file.
2241 (do_install_thread): Check the hashes for packages which need
2242 to be installed before the uninstall step. Allow the user to
2243 skip over packages, which fail the hash verification.
2244 (md5_one): Define new function.
2245 * res.rc (IDS_SKIP_PACKAGE): New string resource.
2246 * resource.h (IDS_SKIP_PACKAGE): New macro definition.
2248 2003-02-16 Pavel Tsekov <ptsekov@gmx.net>
2250 * Exception.h: Declare new constructor.
2251 (Exception::_message): Change the type from 'const char *' to
2253 (Exception::~Exception): Implement destructor (make gcc shut up).
2254 * Exception.cc: Implement new constructor.
2255 (Exception::what): Use String::cstr_oneuse ().
2256 * download.cc (validateCachedPackage): Use the constructor, which
2257 takes String& as its second argument, when throwing objects
2259 (check_for_cached): Ditto.
2260 * install.cc (install_one_source): Ditto.
2262 2003-02-01 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2264 * res.rc (IDS_INSTALL_INCOMPLETE): Change hard-coded
2266 (IDS_MISSING_LOG): New string resource.
2267 * resource.h (IDS_MISSING_LOG): New resource.
2268 * LogFile.cc (LogFile::exit): Pass log filename for
2269 LOG_BABBLE to note().
2270 (LogFile::getFileName): New function.
2271 * LogFile.h (LogFile::getFileName): New function.
2273 2003-02-01 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2275 * String++.cc: Don't include concat.h.
2276 * Makefile.am: Remove concat.cc and concat.h references.
2278 * concat.cc: Remove.
2280 2003-03-09 Max Bowsher <maxb@ukf.net>
2282 * bootstrap.sh: Add sanity check of current directory.
2283 Recurse into libgetopt++ if needed.
2285 2003-03-09 Robert Collins <rbtcollins@hotmail.com>
2287 * Update readme of bugs and wishes.
2289 2003-03-05 Max Bowsher <maxb@ukf.net>
2291 * netio.cc (save_dialog): Allocate an empty string if the password is
2292 null, so that an empty password is accepted elsewhere in setup.
2293 (check_if_enable_ok): An empty password is OK.
2295 2003-03-05 Brian Keener <bkeener@thesoftwaresource.com>
2297 * PickView.cc (PickView::views): Add two new views for Skipped
2298 packages and Installed Packages not requiring update.
2299 (PickView::set_headers () ): Ditto.
2300 (PickView::clear_view (void) ): Ditto.
2301 (PickView::views::caption () ): Add two new captions for the new
2302 views added for Skipped and Installed Packages.
2303 (PickView::scroll () ): Modify Scroll Bar property to Disable
2304 instead of disappearing when there is nothing to Scroll.
2305 * PickView.h: Add two new views for Skipped packages and Installed
2306 packages to public class view.
2307 * choose.cc (list_click () ): Modify Scroll Bar property to Disable
2308 instead of disappearing when there is nothing to Scroll.
2309 (listview_proc () ): Ditto.
2310 (set_view_mode): Add two new views for Skipped Packages and Installed
2311 Packages not requiring update. Modify Scroll Bar property to Disable
2312 instead of disappearing when there is nothing to scroll.
2313 * res.rc (IDD_CHOOSE): Reposition Radio Buttons, View Selection
2314 Button and View Button Caption to make room for longer captions.
2316 2003-03-04 Max Bowsher <maxb@ukf.net>
2318 * compress_gz.cc (compress_gz::construct):
2319 Fix broken checkin dated 2002-07-03.
2321 2003-02-28 Max Bowsher <maxb@ukf.net>
2323 * main.cc (set_default_sec): Add logging.
2325 2003-02-28 Pierre Humblet <pierre.humblet@ieee.org>
2327 * main.cc (set_default_dacl): Replace with set_default_sec.
2328 (set_default_sec): Attempt to change the default group to
2329 Users or Administrators if it is None, in addition to setting
2330 Everyone in the default DACL.
2331 (main): Call set_default_sec instead of set_default_dacl.
2333 2003-01-31 Max Bowsher <maxb@ukf.net>
2335 * install.cc (install_one_source): Fix spacing in log message.
2337 2003-01-19 Max Bowsher <maxb@ukf.net>
2339 * resource.h (IDC_CHOOSE_KEEP): Define.
2340 * res.rc (IDD_CHOOSE): Add radio button IDC_CHOOSE_KEEP.
2341 * choose.cc (create_listview): Add IDC_CHOOSE_KEEP to ta[].
2342 (ChooserPage::OnMessageCmd): Handle new IDC_CHOOSE_KEEP button.
2344 2003-01-15 Max Bowsher <maxb@ukf.net>
2346 * mkdir.cc [_CYGWIN_]: Implement what was pseudocode.
2347 * io_stream.h [__CYGWIN__]: Don't typedef ssize_t.
2348 * proppage.h: Include "win32.h" instead of <windows.h>.
2350 2003-01-15 Max Bowsher <maxb@ukf.net>
2352 * mount.cc [MAINTAINER_FEATURES]: Add --override-registry-name option.
2354 2002-12-11 Abraham Backus <abraham@backus.com>
2356 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Leave port out of Host header,
2359 2002-12-11 Max Bowsher <maxb@ukf.net>
2361 * package_meta.cc: Change 'endl' to 'endLog' as appropriate.
2362 * package_version.cc: Ditto.
2364 2002-09-22 Max Bowsher <maxb@ukf.net>
2366 * PickView.cc (pkg_headers): Rename column 'Category' to 'Categories'.
2367 * package_meta.h (packagemeta::getReadableCategoryList): Declare.
2368 * package_meta.cc (packagemeta::getReadableCategoryList): Implement.
2369 * PickPackageLine.cc (PickPackageLine::paint): Change to use
2370 getReadableCategoryList.
2371 Fix x2 argument to IntersectClipRect.
2373 2002-11-25 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2375 * window.h (Window::GetWindowRect): New method declaration.
2376 (Window::GetClientRect): Ditto.
2377 (Window::MoveWindow): Ditto.
2378 (Window::ScreenToClient): Ditto.
2379 * window.cc (REFLECTION_INFO): Remove.
2380 (ReflectionInfo): Remove.
2381 (Window::FirstWindowProcReflector): Use the WM_NCCREATE message instead
2382 of the horrid REFLECTION_INFO hack to hook the Window instance to the
2384 (Window::WindowProcReflector): Use GetWindowLongPtr() now that it's
2386 (Window::Create): Change to use new WM_NCCREATE reflection procedure
2388 (Window::GetWindowRect): New method.
2389 (Window::GetClientRect): New method.
2390 (Window::MoveWindow): New method.
2391 (Window::CenterWindow): Use new methods, also specify "::" for some non-
2392 member functions with the same names.
2393 (Window::ScreenToClient): New method.
2395 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
2397 * AntiVirus.cc: Change the short option again! It's now 'A'.
2398 * desktop.cc (etc_profile): Remove.
2399 (make_etc_profile): Remove.
2401 (make_passwd_group): Remove.
2402 (do_desktop_setup): Don't call removed functions.
2404 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
2406 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Fix my botched application of
2409 2002-07-08 Marcel Telka <marcel@telka.sk>
2411 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Fixed decoding of the FTP
2412 reply (code 227) to the PASV command.
2414 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
2416 * IniDBBuilderPackage.cc (IniDBBuilderPackage::~IniDBBuilderPackage):
2417 Sort the packages db once all the new packages have been added.
2418 * IniDBBuilderPackage.h (IniDBBuilderPackage::~IniDBBuilderPackage):
2421 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
2423 * choose.cc (ChooserPage::OnNext): Remove extracted comment.
2424 * package_version.cc (processOneDependency): Return once selecting
2425 a package (bugfix to prevous rework).
2426 Log if the default trust fails the package specification.
2428 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
2430 * package_meta.h (packagemeta::logAllVersions): Declare.
2431 (packagemeta::trustLabel): Ditto.
2432 * choose.cc (ChooserPage::OnNext): Get each package to log all it's
2434 * package_meta.cc (packagemeta::logAllVersions): Implement.
2435 (packagemeta::trustLabel): Ditto.
2437 2002-11-25 Robert Collins <rbtcollins@hotmail.com>
2439 * AntiVirus.cc: Change 'd' to 'D' to fix command line conflict.
2441 2002-11-25 Robert Collins <rbtcollins@hotmail.com>
2443 * AntiVirus.cc: New file.
2444 * AntiVirus.h: Ditto.
2445 * LogFile.cc: Include AntiVirus.h for class definition.
2446 (LogFile::exit): Trigger AntiVirus::AtExit().
2447 * MakeFile.am(setup_SOURCES): Add AntiVirus files.
2448 * autoload.c: Declare Service Control Manager related API's.
2449 * main.cc: Include AntiVirus.h for class definition.
2450 (main): Add the AntiVirus page in.
2451 * res.rc: Define IDD_VIRUS.
2452 * resource.h: Define IDD_VIRUS related control ID's.
2453 * splash.h: Override OnNext.
2454 * splash.cc: Only show AntiVirus page when one has been detected.
2457 2002-11-25 Robert Collins <rbtcollins@hotmail.com>
2459 * package_version.cc (DependencyProcessor): Create convenience class.
2460 (select): Extract version selection method.
2461 (processOneDependency): Check for a satisfactory trusted version
2464 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
2466 * main.cc (main): Use the factory for LogFile.
2467 * String++.cc: Update to use sstream.
2468 (String::String): Use a ostringstream for libC++ 3.2.
2469 * LogFile.h (LogFile): Make createLogFile static.
2471 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
2473 * main.cc (main): Oops, pass LogSingleton a reference, not a pointer.
2475 2002-11-04 Max Bowsher <maxb@ukf.net>
2477 * Exception.h (Exception::what): Add throw() specification,
2478 to agree with libstdc++-v3.
2479 * Exception.cc (Exception::what): Ditto.
2480 * IniDBBuilderPackage.h: Add 'std::' where needed.
2481 * PickCategoryLine.h: Ditto.
2482 * category.h: Ditto.
2483 * package_db.h: Ditto.
2484 * package_meta.h: Ditto.
2485 * package_source.h: Ditto.
2486 * package_version.h: Ditto.
2488 * win32.h: Define NOMINMAX before including <windows.h>.
2489 * package_meta.cc: Add 'using namespace std;'.
2490 (packagemeta::set_requirements): Remove default parameter values
2491 from definition (gcc3 likes them only in declaration).
2492 * package_version.cc: Add 'using namespace std;'.
2493 (packageversion::set_requirements): Remove default parameter
2494 values from definition (gcc3 likes them only in declaration).
2496 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
2498 * compress_bz.cc: Don't include bzlib.h directly, the compress_bz.h
2501 2002-11-04 Max Bowsher <maxb@ukf.net>
2503 * compress_bz.h: #undef small before including bzlib.h - if we are
2504 going to hide the fact that we are _WIN32 from bzlib, then we need
2505 to #undef small for it as well (bad windows.h clash).
2507 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
2509 * localdir.cc: Update the extern LogFile to be a pointer.
2510 (save_local_dir): Change . to -> for the above.
2511 * main.cc (theFile): Change from an instance to a pointer.
2512 (main): Change . to -> for the above.
2514 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
2516 * LogFile.cc: use 'std::' where needed throughout.
2517 (LogFile::createLogFile): Implement a factory for LogFile.
2518 (LogFile::LogFile): Update for use with the factory, and to
2519 handle the latest g++ library changes.
2520 (LogFile::operator()): Ditto.
2521 (LogFile::endEntry()): Ditto.
2523 * LogSingleton.cc: Ditto.
2524 * LogSingleton.h: Ditto.
2526 2002-11-04 Max Bowsher <maxb@ukf.net>
2528 * String++.h: Add 'std::' where needed.
2530 2002-11-04 Max Bowsher <maxb@ukf.net>
2532 * IniDBBuilderPackage.cc: Add 'using namespace std;'.
2533 * IniParseFindVisitor.cc: Ditto.
2534 * LogFile.cc: Ditto.
2535 * LogSingleton.cc: Ditto.
2536 * PickView.cc: Ditto.
2537 * String++.cc: Ditto.
2539 * download.cc: Ditto.
2541 * install.cc: Ditto.
2542 * io_stream.cc: Ditto.
2543 * io_stream_file.cc: Ditto.
2544 * package_db.cc: Ditto.
2548 2002-11-04 Max Bowsher <maxb@ukf.net>
2550 * LogSingleton.h: Add 'std::' where needed.
2552 2002-11-04 Max Bowsher <maxb@ukf.net>
2554 * archive_tar_file.cc: Include <algorithm>.
2555 Change min(a,b) to std::min(a,b)
2556 * compress_bz.cc: Ditto.
2557 * compress_gz.cc: Ditto.
2559 2002-11-04 Max Bowsher <maxb@ukf.net>
2561 * res.rc: Change a #-comment (invalid) to a //-comment.
2563 2002-11-04 Max Bowsher <maxb@ukf.net>
2565 * Makefile.am (%.o: %.rc): Make windres use $(CC) not hardcoded gcc.
2566 (inilint_LDADD): Remove -lstd++.
2567 (setup_LDADD): Ditto.
2569 2002-09-22 Max Bowsher <maxb@ukf.net>
2571 * IniDBBuilderPackage.cc: Update DEBUG code to current class
2574 2002-09-21 Robert Collins <rbtcollins@hotmail.com>
2576 * choose.h: Add OnUnattended method.
2577 * desktop.cc (DesktopSetupPage::OnInit): Allow fine grained
2578 control via command line options.
2579 (DesktopSetupPage::OnUnattended): Implement.
2580 (DesktopSetupPage::OnMessageApp): Implement.
2581 * desktop.h (DesktopSetupPage::OnUnattended): declare.
2582 (DesktopSetupPage::OnMessageApp): Ditto.
2583 * download.cc (do_download_thread): Support unattended mode.
2584 * install.cc (do_install_thread): Ditto.
2585 * localdir.h: Ditto.
2586 * main.cc (main): Ditto.
2587 * net.cc (NetPage::OnUnattended): Ditto.
2588 * net.h (NetPage::OnUnattended): Declare.
2589 * proppage.cc (PropertyPage::DialogProc): Support unattended mode.
2590 * proppage.h (PropertyPage::OnUnattended): Declare.
2591 * root.cc (RootPage::OnInit): Support unattended mode.
2592 (RootPage::OnUnattended): Implement.
2593 * root.h (RootPage::OnUnattended): Declare.
2594 * site.cc (register_saved_site): Extract Method from get_saved_sites.
2595 (get_saved_sites): Remove common code for adding a site.
2596 (SitePage::OnInit): Support unattended mode.
2597 (SitePage::OnUnattended): Implement.
2598 * site.h (SitePage::OnUnattended): Declare.
2599 * source.cc (SourcePage::OnActivate): Support unattended mode.
2600 (SourcePage::OnUnattended): Implement.
2601 * source.h (SourcePage::OnUnattended): Declare.
2602 * splash.h (SplashPage::OnUnattended): Declare.
2603 * state.cc (unattended_mode): Declare.
2604 * state.h (unattended_mode): Declare.
2605 * threebar.h (ThreeBarProgressPage::OnUnattended): New method.
2607 2002-09-21 Robert Collins <rbtcollins@hotmail.com>
2609 * res.rc: Commit Harry Johnston's dialog caption patch. From July.
2611 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
2613 * package_version.cc (packageversion::sources): Implement this.
2614 * download.cc (do_download_thread): Support multiple files per package.
2616 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
2618 * package_version.h (packageversion::sources): Support multiple files in
2619 a single package version.
2620 * package_version.cc (_packageversion::accessible): Ditto.
2621 (packageversion::source): Ditto.
2623 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
2625 * iniparse.y: Implement support for multiple source files for a source
2627 * IniDBBuilder.h (IniDBBuilder::buildSourceFile): Ditto.
2628 * IniDBBuilderPackage.h (IniDBBuilder::buildSourceFile): Ditto.
2629 * IniDBBuilder.cc (IniDBBuilder::buildSourceFile): Ditto.
2630 * IniDBBuilderPackage.cc (IniDBBuilder::buildSourceFile): Implement a
2631 stub as preparation.
2633 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
2635 * PickPackageLine.cc (PickPackageLine::click): Set requirements for
2636 packages under all circumstances - slightly higher overheader, simpler
2638 * download.cc (do_download_thread): Correctly download source
2640 * package_meta.cc (checkForInstalled): Remove.
2641 (checkForUpgradeable): Ditto.
2642 (checkForSatisfiable): Ditto.
2643 (processOneDependency): Ditto.
2644 (packagemeta::set_requirements): Move guts to packageversion.
2645 * package_version.cc (checkForInstalled): Copied from package_meta.cc.
2646 (checkForUpgradeable): Ditto.
2647 (checkForSatisfiable): Ditto.
2648 (processOneDependency): Ditto.
2649 (packageversion::set_requirements): Ditto.
2650 * package_version.h (packageversion::set_requirements): Declare.
2652 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
2654 * IniDBBuilder.cc (IniDBBuilder::buildBeginBuildDepends): Implement.
2655 (IniDBBuilder::buildBeginBinary): Implement.
2656 * IniDBBuilder.h (IniDBBuilder::buildBeginBuildDepends): Declare.
2657 (IniDBBuilder::buildBeginBinary): Ditto.
2658 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildBeginBuildDepends):
2660 (IniDBBuilderPackage::buildBeginBinary): Ditto.
2661 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildBeginBuildDepends):
2663 (IniDBBuilderPackage::buildBeginBinary): Ditto.
2664 * inilex.l: Recognise Build-Depends-Indep, [,], >, < and remove
2666 * iniparse.y: Full support for parsing a debian Sources file in-line in
2668 * package_version.cc (packageversion::binaries): Implement.
2669 * package_version.h (packageversion::binaries): Declare list of what
2670 packages are created from a given source package.
2671 (_packageversion::binaries): Ditto.
2673 2002-07-10 Robert Collins <rbtcollins@hotmail.com>
2675 * iniparse.y: Add basis for support for parsing a debian Sources file.
2678 2002-07-09 Robert Collins <rbtcollins@hotmail.com>
2680 Change custom container code for packagedb::packages to STL containers
2682 * IniDBBuilderPackage.cc: Ditto.
2683 * PickView.cc: Ditto.
2685 * desktop.cc: Ditto.
2686 * download.cc: Ditto.
2687 * install.cc: Ditto.
2688 * package_db.cc: Ditto.
2689 * package_db.h: Ditto.
2690 * Makefile.am: Remove list.h references.
2693 2002-07-08 Max Bowsher <maxb@ukf.net>
2695 * PickView.cc (PickView::PickView): Set font of package list header to
2696 the same as used in the rest of the package list.
2698 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
2700 * install.cc (NoReplaceOnReboot): New command line option to prevent
2701 replacing in use files.
2702 (install_one_source): Check the option and use it.
2703 * README: Update TODO lists.
2705 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
2707 * PickCategoryLine.cc: Change bucket to use STL container syntax
2709 (PickCategoryLine::paint): Use new Category type syntax.
2710 * PickCategoryLine.h: Use STL vectors rather than custom containers
2712 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageCategory):
2713 Use new add_category syntax.
2714 * PickView.cc (PickView::insert_pkg): Use new Category type syntax.
2715 (PickView::insert_category): Ditto.
2716 (PickView::init_headers): Ditto.
2717 * category.cc: Trim obsolete code.
2718 * category.h: Replace interconnecting class with a typedef to
2719 facilitate leveraging STL maps.
2720 * choose.cc (fill_missing_category): Use updated pkg.add_category
2722 (default_trust): Use new Category type syntax.
2723 (set_view_mode): Ditto.
2724 (create_listview): Ditto.
2725 * package_db.cc (categories): Ditto.
2726 * package_db.h: Update headers list to include needed headers.
2727 (packagedb::categories): Replace custom list with STL map.
2728 * package_meta.cc: Use new Category type syntax throughout.
2729 (packagemeta::add_category): Implement new syntax.
2730 * package_meta.h: Remove commented out source.
2731 (packagemeta::add_category): Update syntax to decouple interface from
2734 2002-07-06 Christopher Faylor <cgf@redhat.com>
2736 * site.cc (do_download_site_info_thread): Correct spelling error.
2738 2002-07-06 Robert Collins <rbtcollins@hotmail.com>
2740 * PickCategoryLine.h: Include required header list.h.
2741 * PickPackageLine.cc (PickPackageLine::paint): Adjust to use STL
2742 containers for listing of packages per category and vice verca.
2743 * PickView.cc (PickView::insert_pkg): Ditto.
2744 (PickView::insert_category): Ditto.
2745 * String++.h (String::caseless): STL helper to allow trivial containers
2746 of Strings with case insensitive comparisons.
2747 * category.h: Adjust to use STL containers for listing of packages per
2748 category and vice verca.
2749 * choose.cc (fill_missing_category): Ditto.
2750 (default_trust): Ditto.
2751 (ChooserPage::OnNext): Ditto.
2752 * package_meta.cc (CategoryPackage::~CategoryPackage): Remove.
2753 (packagemeta::packagemeta): Adjust for new category list name.
2754 (packagemeta::~packagemeta): Adjust to use STL containers for listing
2755 of packages per category and vice verca.
2756 (packagemeta::set_action): Ditto.
2757 * package_meta.h (CategoryPackage): Remove.
2758 (packagemeta): Adjust to use STL containers for listing of packages per
2759 category and vice verca.
2761 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
2763 * io_stream.cc: Use STL containers rather than custom ones.
2764 (io_stream::registerProvider): Ditto.
2765 (findProvider): Ditto.
2767 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
2769 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
2770 Use STL collections for download site collections.
2771 (IniDBBuilderPackage::add_correct_version): Ditto.
2772 (IniDBBuilderPackage::process_src): Ditto.
2773 * PickPackageLine.cc (PickPackageLine::click): Use the packageversion
2774 accessible() call to abstract package availability.
2775 * choose.cc (scanAVersion): Use STL collections for download site
2777 * download.cc (check_for_cached): Ditto.
2778 (download_one): Ditto.
2779 * package_meta.cc (packagemeta::set_action): Use the packageversion
2780 accessible() call to abstract package availability.
2781 * package_source.h: Use STL containers rather than custom containers.
2782 (site): Create a == operator to allow STL container use.
2783 (packagesource::sites): Use STL containers rather than custom
2785 * package_version.cc (_packageversion::accessible): Use STL containers
2786 for download site containers.
2788 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
2790 * LogFile.cc: Use STL containers rather than custom containers.
2791 (filedef): Create == and < operators for STL use.
2792 (files): Convert to an STL set.
2793 (LogFile::setFile): Use STL operations on files.
2794 (LogFile::exit): Ditto.
2796 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
2798 * ini.cc (do_remote_ini): Use STL collection for site collection.
2799 * site.cc: Include site.h first to ensure it's parsable standalone.
2801 (site_list): Convert to an STL container.
2802 (all_site_list): Ditto.
2803 (site_list_type::site_list_type): Implement copy constructor.
2804 (site_list_type::operator=): Implement assignment operator.
2805 (site_list_type::operator ==): Implement.
2806 (site_list_type::operator <): Ditto.
2807 (save_dialog): Use STL collection calls for site collection.
2808 (save_site_url): Ditto.
2809 (get_site_list): Ditto.
2810 (get_saved_sites): Ditto.
2811 (do_download_site_info_thread): Ditto.
2812 (SitePage::OnNext): Ditto.
2813 (SitePage::PopulateListBox): Ditto.
2814 (SitePage::OnMessageCmd): Ditto.
2815 * site.h: Use STL vectors instead of custom code.
2816 (site_list_type::site_list_type): Declare.
2817 (site_list_type::operator=): Ditto.
2818 (site_list_type::operator ==): Ditto.
2819 (site_list_type::operator !=): Ditto.
2820 (site_list_type::operator <): Ditto.
2821 (site_list_type::operator <=): Ditto.
2822 (site_list_type::operator >): Ditto.
2823 (site_list_type::operator >=): Ditto.
2824 (site_list): Convert to an STL container.
2825 (all_site_list): Ditto.
2827 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
2829 * choose.cc (default_trust): Check package accessibility before
2830 triggering an install. (Suggested by Pavel).
2832 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
2834 * compress_gz.cc (compress_gz::construct): Always initialize key members
2835 to ensure the destructor does the right thing.
2837 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
2839 * filemanip.cc (parse_filename): Do not try to parse empty
2840 strings (filenames).
2841 * package_db.cc (packagedb::packagedb): For each line check if sscanf()
2842 extracted good package name and filename.
2844 2002-07-03 Robert Collins <rbtcollins@hotmail.com>
2846 * package_meta.cc (packagemeta::set_requirements): Automatically select
2847 version of dependent packages that satisfies the requirements.
2848 Use processOneDependency to trigger the install of those packages.
2849 (checkForInstalled): Check that the package remains installed.
2850 (processOneDependency): Helper function for dependent packages.
2851 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackage): Add more
2853 Clear out all current state on new packages.
2854 (IniDBBuilderPackage::add_correct_version): Copy the dependency list
2857 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
2859 * Makefile.am (inilint_SOURCES): Add PackageSpecification sources.
2860 nb: inilint is still incomplete, as the packageversion code is not
2861 ready for database-less linking.
2862 * site.cc (get_site_list): When the same site is reentered by the user
2863 replace the old one. (Suggested by John Marshall).
2865 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
2867 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
2868 Clear out package selections when generating implicit source packages.
2869 * PackageSpecification.cc (PackageSpecification::satisfies): Implement.
2870 (PackageSpecification::_operators::satisfies): Implement.
2871 * PackageSpecification.h (PackageSpecification::_operators::satisfies):
2872 Worker function for testing versions.
2874 2002-07-01 Robert Collins <rbtcollins@hotmail.com>
2876 * IniDBBuilder.cc (IniDBBuilder::buildPackageRequirement): Remove.
2877 * IniDBBuilder.h (IniDBBuilder::buildPackageRequirement): Ditto.
2878 * IniDBBuilderPackage.cc: Use the STL algorithms.
2879 Change cpv to cbpv throughout. Adjust -> to ., and use the new accessor
2880 functions for the same variable throughout.
2881 (IniDBBuilderPackage::IniDBBuilderPackage): Initialise new members.
2882 (IniDBBuilderPackage::buildPackage): Use new cygpackage syntax,
2883 and set an empty source package.
2884 (IniDBBuilderPackage::buildPackageInstall): Use the new source member
2885 to record an install package.
2886 (IniDBBuilderPackage::buildPackageSource): Move source package logic
2887 out from process_src, as it now occurs at separate times.
2888 (IniDBBuilderPackage::buildPackageRequirement): Remove.
2889 (IniDBBuilderPackage::buildSourceName): Use renamed package
2890 specifiation accessor for clarity.
2891 (IniDBBuilderPackage::buildSourceNameVersion): Ditto.
2892 (IniDBBuilderPackage::add_correct_version): Use STL iterators rather
2894 Remove source package references.
2895 (IniDBBuilderPackage::process_src): Remove source package code as it's
2896 now handled separately.
2897 Set Path information before merging versions, to prevent dangling
2899 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildPackageRequirement):
2901 (IniDBBuilderPackage::cpv): Remove.
2902 (IniDBBuilderPackage::cbpv): New generic binary working variable.
2903 (IniDBBuilderPackage::cspv): Ditto, but for source packages.
2904 (IniDBBuilderPackage::csp): Source package variable for disjoint
2906 * Makefile.am (AM_CFLAGS): Remove -Winline to allow stl set code
2907 to compile. If it compiles cleanly in gcc 3.1, then reinstate.
2908 * PickPackageLine.cc: Adjust packageversion accessors to the new
2909 reference calls. (i.e. -> to .) throughout.
2910 (PickPackageLine::paint): Use accessible() for clarity.
2911 Use new split out source package logic.
2912 (PickPackageLine::click): Ditto.
2913 * PickView.cc (PickView::init_headers): Adjust packageversion accessors
2914 to the new reference calls. (i.e. -> to .) throughout.
2915 Use new split out source package logic.
2916 * choose.cc: Don't depend on a specific package type.
2917 Adjust packageversion accessors to the new reference calls. (i.e. -> to
2919 (set_existence): Use accessible () for clarity.
2920 (default_trust): Simplify a little.
2921 (scanAVersion): Factored out code from scan_downloaded_files for
2923 (scan_downloaded_files): Factor out inner loop for clarity.
2924 (ChooserPage::OnNext): Don't dump the dependency list,
2925 it's parsing is robust now!.
2926 * cygpackage.cc (createInstance): Use a factory method to create new
2928 (cygpackage::cygpackage): Make this private for use by the factory.
2929 (cygpackage::setCanonicalVersion): Renamed from set_canonical_version.
2930 Remove key usage as it's obsolete.
2931 * cygpackage.h (cygpackage): Inherit from _packageversion, not
2933 (cygpackage::createInstance): New factory.
2934 (cygpackage::cygpackage): Make private.
2935 * desktop.cc (make_passwd_group): Use new packageversion reference.
2936 * download.cc (do_download_thread): Use changeRequested() for clarity.
2937 Use new packageversion reference calls.
2938 * iniparse.y (REQUIRES): Reuse the packageList code and dump the one-off
2940 * install.cc: Adjust -> to ., and use the new accessor functions for
2941 packageversion throughout.
2942 * package_db.cc: Adjust -> to ., and use the new accessor functions for
2943 packageversion throughout.
2944 (packagedb::packagedb): Use the new cygpackage factory.
2945 (packagedb::flush): Leverage String to remove buffer overflow chance in
2947 (packagedb::findBinary): Find a binary meta package that has a version
2948 matching a given specification.
2949 (packagedb::findSource): Ditto, but for source.
2950 * package_db.h (packagedb::findBinary): Declare.
2951 (packagedb::findSource): Ditto.
2952 * package_meta.cc: Adjust packageversion accessors to the new
2953 reference calls. (i.e. -> to .) throughout.
2954 Include the package_meta header first to ensure it parses standalone.
2955 Use the STL algorithms.
2956 (packagemeta::packagemeta): Create a copy constructor to allowing
2957 cloning binary package metadata to source package metadata.
2958 (packagemeta::~packagemeta): Use the STL coleltion code rather than
2959 custom collection code.
2960 (packagemeta::add_version): Ditto.
2961 (packagemeta::set_installed): Ditto.
2962 (packagemeta::SDesc): Ditto.
2963 (hasSDesc): Helper function for find_if.
2964 (checkForInstalled): Ditto.
2965 (checkForUpgradeable): Ditto.
2966 (checkForSatisfiable): Ditto.
2967 (packagemeta::action_caption): Update for split out source packages.
2968 (packagemeta::set_action): Ditto.
2969 (packagemeta::set_requirements): Support multi-valued dependency
2970 lists - a|b & c|d - with versioned package specifications.
2971 (packagemeta::accessible): Helper member to improve abstraction.
2972 (packagemeta::sourceAccessible): Ditto.
2973 * package_meta.h: Adjust packageversion accessors to the new
2974 reference calls. (i.e. "->" to "." and"*" to "" ) throughout.
2975 (packagemeta::packagemeta): Declare copy constructor.
2976 Remove self initialising members.
2977 (packagemeta::set_action): Update parameters for new packageversion.
2978 (packagemeta::trustp): Ditto.
2979 (packagemeta::versions): Becomes an STL set.
2980 * package_source.h (packagesource::Cached): Const correctness change.
2981 * package_version.cc: Rewrite the packageversion interface to remove
2982 the cygpackage nonvirtual members, and provide a copy by value,
2983 pointer semantics reference counting wrapper class to ease use and
2984 comparison of packageversions.
2985 Change existing packageversion class to _packageversion throughout.
2986 (_defaultversion): A trivial concrete class to prevent specialcasing
2987 the default constructor for packageversion;
2988 (packageversion::packageversion): Implement.
2989 (packageversion::~packageversion): Ditto.
2990 (packageversion::operator=): Ditto.
2991 (packageversion::operator !): Ditto.
2992 (packageversion::operator bool): Ditto.
2993 (packageversion::operator ==): Ditto.
2994 (packageversion::operator !=): Ditto.
2995 (packageversion::operator <): Ditto.
2996 (packageversion::Name): Ditto.
2997 (packageversion::Canonical_version): Ditto.
2998 (packageversion::setCanonicalVersion): Ditto.
2999 (packageversion::getfirstfile): Ditto.
3000 (packageversion::getnextfile): Ditto.
3001 (packageversion::SDesc): Ditto.
3002 (packageversion::set_sdesc): Ditto.
3003 (packageversion::LDesc): Ditto.
3004 (packageversion::set_ldesc): Ditto.
3005 (packageversion::sourcePackage): Ditto.
3006 (packageversion::sourcePackageSpecification): Ditto.
3007 (packageversion::setSourcePackageSpecification): Ditto.
3008 (packageversion::depends): Ditto.
3009 (packageversion::predepends): Ditto.
3010 (packageversion::recommends): Ditto.
3011 (packageversion::suggests): Ditto.
3012 (packageversion::replaces): Ditto.
3013 (packageversion::conflicts): Ditto.
3014 (packageversion::provides): Ditto.
3015 (packageversion::picked): Ditto.
3016 (packageversion::pick): Ditto.
3017 (packageversion::changeRequested): Ditto.
3018 (packageversion::uninstall): Ditto.
3019 (packageversion::source): Ditto.
3020 (packageversion::accessible): Ditto.
3021 (_packageversion::sourcePackage): Ditto.
3022 (_packageversion::accessible): Ditto.
3023 (_packageversion::changeRequested): Ditto.
3024 * package_version.h: Rewrite the packageversion interface to remove
3025 the cygpackage nonvirtual members, and provide a copy by value,
3026 pointer semantics reference counting wrapper class to ease use and
3027 comparison of packageversions.
3028 Change existing packageversion class to _packageversion throughout.
3029 (Dependency): Remove.
3030 (packageversion): New wrapper class.
3031 (_packageversion): Renamed from packageversion.
3032 (_packageversion::setCanonicalVersion): New method.
3033 (_packageversion::sourcePackage): Ditto.
3034 (_packageversion::sourcePackageSpecification): Ditto.
3035 (_packageversion::setSourcePackageSpecification): Ditto.
3036 (_packageversion::changeRequested): Ditto.
3037 (_packageversion::bin): Rename to source.
3038 (_packageversion::src): Remove.
3039 (_packageversion::accessible): New method.
3040 (_packageversion::references): Allow reference counting.
3041 (_packageversion::sourceVersion): Cached the best-match source
3044 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
3046 * compress_bz.h (compress_bz::position): Track how much has been read.
3047 * compress_bz.cc (compress_bz::compress_bz): And initialise it.
3048 (compress_bz::read): Track amount read by the client.
3049 (compress_bz::tell): And report it when asked.
3051 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
3053 * Makefile.am (snapshot): Automate snapshot creation some more.
3055 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
3057 * msg.cc (msg): Use vsnprintf to avoid buffer overflows.
3059 * ini.cc (fprintf): Ditto.
3060 * log.cc (log): Ditto.
3061 * package_db.cc (packagedb::sourcePackages): Split out source packages
3062 from binary packages.
3063 * package_db.h: Ditto.
3065 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
3067 * PackageSpecification.h: New file. Abstracts the ability to refer
3068 to another package, by name, or name and version.
3069 * PackageSpecification.cc: Ditto.
3070 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Simplify.
3071 (IniDBBuilder::buildPackageSource): Ditto.
3072 (IniDBBuilder::buildBeginDepends): New method for versioned
3074 (IniDBBuilder::buildBeginPreDepends): Likewise, for dependencies to be
3075 satisfied before pre-install.
3076 (IniDBBuilder::buildPriority): New method, for getting the package
3078 (IniDBBuilder::buildInstalledSize): How much disk space does it need?
3079 (IniDBBuilder::buildMaintainer): Who maintains the package?
3080 (IniDBBuilder::buildArchitecture): What platform is it for?
3081 (IniDBBuilder::buildInstallSize): How big is the binary download?
3082 (IniDBBuilder::buildInstallMD5): Whats the MD5 on the binary?
3083 (IniDBBuilder::buildSourceMD5): Whats the MD5 on the source package?
3084 (IniDBBuilder::buildBeginRecommends): What other packages are
3085 recommended with this one?
3086 (IniDBBuilder::buildBeginSuggests): And suggested?
3087 (IniDBBuilder::buildBeginReplaces): What packages does this replace?
3088 (IniDBBuilder::buildBeginConflicts): And collide with?
3089 (IniDBBuilder::buildBeginProvides): What virtual packages (or obsolete
3090 package names) does this provide?
3091 (IniDBBuilder::buildDescription): Grab a multi line description one
3093 (IniDBBuilder::buildSourceName): What source package should be used to
3094 install the source for this binary package?
3095 (IniDBBuilder::buildSourceNameVersion): Is a specific version needed?
3096 (IniDBBuilder::buildPackageListAndNode): Add another AND clause to a
3097 list of package specifications.
3098 (IniDBBuilder::buildPackageListOrNode): Add another OR clause.
3099 (IniDBBuilder::buildPackageListOperator): Add a versioning operator
3100 to the current specification.
3101 (IniDBBuilder::buildPackageListOperatorVersion): What version does the
3103 * IniDBBuilder.h: Declare all the IniDBBuilder.cc changes.
3104 * IniDBBuilderPackage.cc: As for IniDBBuilder.cc.
3105 (IniDBBuilderPackage::IniDBBuilderPackage): Iniitialize new members.
3106 (IniDBBuilderPackage::process_src): Streamline and split out
3108 (IniDBBuilderPackage::setSourceSize): From process_src.
3109 * IniDBBuilderPackage.h: Declare the IniDBBuilderPackage.cc changes.
3110 (IniDBBuilderPackage::currentSpec): Track the in-progress specifiation.
3111 (IniDBBuilderPackage::currentOrList): Track the current Or list.
3112 (IniDBBuilderPackage::currentAndList): Track the current And list.
3113 * IniParseFeedback.cc (IniParseFeedback::progress): Provide completion
3114 progress on parsing.
3115 (IniParseFeedback::iniName): Tell what ini filename we are currently
3117 * IniParseFeedback.h: Declare IniParseFeedback.cc changes.
3118 * IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor):
3119 Make the feedback object non-const to allow mutating methods which are
3120 needed when the object has state.
3121 (IniParseFindVisitor::visitFile): Tell the caller the name of each
3123 Initialise the parser with the feedback object to allow it to tell of
3125 * IniParseFindVisitor.h: Declare IniParseFindVisitor.cc changes.
3126 * Makefile.am (inilinst_SOURCES): Add more requisite classes.
3127 (setup_SOURCES): Add the new PackageSpecification sources.
3128 * ScanFindVisitor.cc (ScanFindVisitor::visitFile): Use the new
3129 builder syntax to setup binary package details.
3130 * choose.cc: Use the LogSingleton calls throughout.
3131 * configure.in: Create the INILINT substitution correctly for recent
3132 autotool configurations.
3133 * cygpackage.cc (cygpackage::getfirstfile): Return an empty String
3134 rather than a string built from an int. Thanks to Pavel Tsekov for
3135 identifying the bug.
3136 (cygpackage::getnextfile): Ditto.
3137 * download.cc: Use LogSIngletion calls throughout.
3138 (validateCachedPackage): A refactoring of the
3139 check_for_cached code to eliminate duplciation.
3140 (check_for_cached): Use validateCachedPackage to check packages.
3141 * ini.cc (GuiParseFeedback): Provide gui feedback on ini name and
3143 (do_remote_ini): Ditto.
3144 * ini.h (ini_init): Pass a IniParseFeedback to the parser, to allow
3146 * inilex.l: Identify new symbols - operators, and multi line plain text.
3148 * inilintmain.cc (show_help): Provide basic infomation on inilint.
3149 * iniparse.y: Adjust for the new builder syntax, and process debian
3151 * io_stream_file.cc: Always include mkdir.h.
3152 * list.h: Factor index location into a private routine.
3153 (list::findindex): Implement this.
3154 * mkdir.cc (mkdir_p): Make the use of WIN32 code conditional on mingw
3155 builds. NB: This breaks cygwin build functionality still.
3156 * package_meta.cc: Use the LogSingleton calls throughout.
3157 (packagemeta::set_requirements): Adjust for object changes in
3159 * package_meta.h (packagemeta::packagemeta): Initialise new members.
3160 (packagemeta::architecture): What platform does this package run on?
3161 This may need to move in the future to a per packagefile object.
3162 (packagemeta::priority): What priority does this package have?
3163 * package_source.h (packagesource::packagesource): Initialise new
3165 (packagesource::installedSize): How much space does the package need?
3166 (packagesource::setInstalledSize): Tell the amount.
3167 (packagesource::_installedSize): And store it.
3168 * package_version.cc (packageversion::sourcePackage): return the
3170 (packageversion::setSourcePackage): And set it.
3171 * package_version.h: Declare the package_version.cc changes.
3172 (packageversion::depends): New package specification AND list.
3173 (packageversion::predepends): Ditto.
3174 (packageversion::recommends): Ditto.
3175 (packageversion::suggests): Ditto.
3176 (packageversion::replaces): Ditto.
3177 (packageversion::conflicts): Ditto.
3178 (packageversion::provides): Ditto.
3179 (packageversion::sourcePackage): What source package is needed?
3180 * threebar.cc (ThreeBarProgressPage::SetText4): Set the label beside
3182 * threebar.h: Declare the threebar.cc change.
3184 2002-06-27 John Marshall <johnm@falch.net>
3186 * res.rc (SETUPINI_MISSING): Make trailing spaces visible.
3187 * site.cc (SitePage::OnMessageCmd): Ditto
3189 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
3191 * nio-ie5.cc (NetIO_IE5::NetIO_IE): Allow cached data.
3193 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
3195 * package_meta.cc (packagemeta::set_action): When installing packages
3196 with no binaries, choose the source package.
3198 2002-06-10 Robert Collins <rbtcollins@hotmail.com>
3200 * IniParseFindVisitor (IniParseFindVisitor::visitFile): Apply Max
3201 Bowshers fix for the crash with a root level setup.ini.
3202 * README: Update todos.
3204 2002-05-26 Ralf Habacker <ralf.habacker@freenet.de>
3206 * archive_tar.cc (archive_tar::next_file_name()): fixed broken
3207 GNU long name extension support.
3209 2002-05-27 Robert Collins <rbtcollins@hotmail.com>
3211 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Don't
3212 unescape 0 length strings.
3214 2002-05-20 Robert Collins <rbtcollins@hotmail.com>
3216 * package_meta.cc (packagemeta::set_action): Don't allow reinstall
3217 when local with no cached file, and install the default source if the
3218 default version has no binary.
3220 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
3222 * IniDBBuilderPackage.cc (IniDBBuilderPackage::IniDBBuilderPackage): New
3224 (IniDBBuilderPackage::buildVersion): Provide a warning when a newer
3225 setup version created the ini file.
3226 * IniDBBuilderPackage.h (IniDBBuilderPackage::IniDBBuilderPackage): New
3228 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use the new
3230 * IniParseFindVisitor.h (IniParseFindVisitor::IniParseFindVisitor):
3231 Require a feedback strategy.
3232 * Makefile.am (setup_SOURCES): Add IniParseFeedback sources.
3233 * Makefile.in: Regenerate.
3235 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
3237 * io_stream_file.cc (io_stream_file::remove): Use the SetFileAttributes
3238 trick to delete read only files.
3239 * io_stream_cygfile.cc (io_stream_cygfile::remove): Use file:// to
3241 * Makefile.am (release): Tweak to be more helpful.
3242 * Makefile.in: Regenerate.
3244 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
3246 * Makefile.am (release): Tweak to be more helpful.
3247 * Makefile.in: Regenerate.
3249 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
3251 * Makefile.am (release): Tweak to be more helpful.
3252 * Makefile.in: Regenerate.
3254 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
3256 * choose.cc (scan_downloaded_files): When a non-installed version
3257 has neither bin nor src cached files for local installs,
3258 remove the version from availability.
3260 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
3262 * ini.cc (do_remote_ini): Save uncompressed ini's correctly.
3264 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
3266 * rsync: New support library, contains librsync. This is not (yet)
3267 rsync interoperable.
3268 * configure.in: --with-rsync to enable rsync support. (Not complete).
3269 * Makefile.am: Enable building with rsync.
3270 * Makefile.in: Regenerate.
3272 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Pass the md5 as
3274 (IniDBBuilder::buildPackageSource): Ditto.
3275 * IniDBBuilder.h: Ditto.
3276 * IniDBBuilderPackage.cc: Ditto.
3277 * IniDBBuilderPackage.h: Ditto.
3278 * FindVisitor.cc: New file.
3279 * FindVisitor.h: New file, interface for visiting a file system
3281 * IniParseFindVisitor.cc: New file.
3282 * IniParseFindVisitor.h: New file, concrete FindVisitor that parses
3284 * README: Update TODO's.
3285 * String++.cc (String::String): New constructor for <string> inter-
3287 (String::substr): New method.
3288 * String++.h: Ditto.
3289 * choose.cc (scan2): Remove.
3290 (scan_downloaded_files): Simplify.
3291 * dialog.h: Include parsing pre-requirements.
3292 * download.cc (check_for_cached): Fullname was used incorrectly - fix.
3293 * filemanip.cc (parse_filename): -src packages where incorrectly parsed.
3294 * find.cc: Rewrite. Now uses a Visitor pattern and is re-entrant.
3296 * fromcwd.cc: Remove unneeded includes.
3297 (is_test_version): Remove.
3298 (found_file): Remove.
3299 (SetupFindVisitor): Trivial visitor to detect setup.ini's.
3300 (found_ini): Remove.
3301 (do_fromcwd): Remove commented code that has be replaced elsewhere.
3302 * ini.cc (local_ini): Remove.
3303 (findBuilder): Remove.
3304 (find_routine): Remove.
3305 (do_local_ini): Use new IniParseFindVisitor.
3306 * iniparse.y: Typecase MD5 arrays, as we know they are allocated as
3308 * postinstall.cc: Remove non-core includes.
3309 (run_script_in_postinstall): Remove.
3310 (RunFindVisitor): Trivial Visitor, runs each found script.
3311 (do_postinstall): Use new find syntax.
3313 2002-05-14 Christopher Faylor <cgf@redhat.com>
3315 * ini.cc (find_routine): Don't clear buffer it it's NULL.
3317 2002-05-14 Christopher Faylor <cgf@redhat.com>
3319 * filemanip.h (trail): Declare.
3320 * filemanip.cc (trail): New function.
3321 (find_tar_ext): Use trail() instead of strstr().
3322 * fromcwd.cc (check_ini): Ditto.
3323 * ini.cc (find_routine): Ditto. Don't tack local_dir to path since it
3324 should now be fully qualified. Set ini_filename. Reset error_buf and
3325 error_count for any subsequent ini file parsing.
3326 (ini_filename): New static variable for parse error reporting.
3327 (yyerror): Use full path of setup.ini in error message. Subtract one
3328 from line number if at bol.
3329 * find.cc (found_part): Eliminate.
3330 (find_sub): Call for_each with full path found rather than just file
3332 (find): Don't calculate found_part.
3333 * inilex.l (ini_init): Flush input buffer and reset line number.
3334 (yybol): New function. Exports YY_AT_BOL.
3335 * iniparse.y: Increase stack depth to allow more tokens to be processed.
3336 (yyparse): Remove newline from error condition to allow subsequent
3337 per-line error processing to proceed normally.
3339 2002-05-14 Christopher Faylor <cgf@redhat.com>
3341 * find.cc (find_sub): Be more defensive in preserving trailing parts of
3342 components when doing recursive directory searches or calling user
3343 supplied for_each().
3344 * ini.cc (find_routine): Don't assume that any path name with
3345 "setup.ini" in it is actually a setup.ini file. Only honor trailing
3346 components. Copy path argument to temporary storage when unescaping
3347 to prevent nuking of argument.
3349 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
3351 * CONTRIBUTORS: New file.
3353 2002-04-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3355 * choose.cc: Run indent.
3356 (nextbutton): Remove static variable.
3357 (default_trust): Remove use of nextbutton.
3358 (set_view_mode): Ditto.
3359 (create_listview): Add IDC_CHOOSE_PREV and IDC_CHOOSE_NEXT to ta[] so
3360 rbset() sets the prev/next/curr radio buttons properly.
3361 (dialog_cmd): Delete function.
3362 (dialog_proc): Delete function. Move WM_INITDIALOG functionality to
3363 ChooserPage::OnInit.
3364 (do_choose): Delete function. Move pre-DialogBox() code to
3365 ChooserPage::OnInit(), post-DialogBox() code to ChooserPage::OnNext.
3366 (WM_APP_START_CHOOSE): Remove define.
3367 (WM_APP_CHOOSE_IS_FINISHED): Remove define.
3368 (do_choose_thread): Delete function.
3369 (ChooserPage::OnActivate): Delete method.
3370 (ChooserPage::OnMessageApp): Delete method.
3371 (ChooserPage::OnInit): New method.
3372 (ChooserPage::OnNext): New method.
3373 (ChooserPage::OnBack): New method.
3374 (ChooserPage::OnMessageCmd): New method.
3375 * choose.h: Run indent.
3376 (ChooserPage::OnMessageApp): Delete declaration.
3377 (ChooserPage::OnActivate): Ditto.
3378 (ChooserPage::OnMessageCmd): New declaration.
3379 (ChooserPage::OnInit): Ditto.
3380 (ChooserPage::OnNext): Ditto.
3381 (ChooserPage::OnBack): Ditto.
3382 * desktop.cc (DesktopSetupPage::OnBack): Replace use of IDD_CHOOSER
3384 * fromcwd.cc (do_fromcwd): Replace use of IDD_CHOOSER with IDD_CHOOSE.
3385 * ini.cc (do_ini_thread): Replace use of IDD_CHOOSER with IDD_CHOOSE.
3386 * res.rc (IDD_CHOOSE): Remove dialog template.
3387 (IDD_CHOOSER): Alter dialog template to fit wizard size and format.
3389 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
3391 * LogFile.cc (endLog): Work around an apparent libg++-3 bug causing
3392 corrupt log file entries.
3393 * geturl.cc: Convert to the new LogSingleton logging.
3395 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
3397 * ini.cc (do_remote_ini): Use setup.bz2 if it exists in preference to
3400 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
3402 * geturl.h: Declare getUrlToStream.
3403 * geturl.cc (getUrlToStream): New function.
3404 (get_url_to_membuf): Refactor to use getUrlToStream.
3406 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
3408 * Makefile.am: Add a release target to automate some of the routine
3410 * Makefile.in: Regenerate.
3412 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
3414 * choose.cc (scan_downloaded_files): On local installs remove all
3415 mirror sites if no cached copy of a package is found.
3417 2002-05-10 Robert Collins <rbtcollins@hotmail.com>
3419 * Makefile.in: Regenerate.
3420 * iniparse.y: Use left recursion, not right in the lines rule to
3421 avoid stack overflows.
3422 * README: Update TODO's.
3423 * io_stream_file.cc: Native builds need to include sys/stat.h
3425 2002-05-06 John Marshall <jmarshall@acm.org>
3427 * site.cc (SitePage::OnMessageCmd): recalculate navigation
3428 button activation when "Add" is pressed.
3429 (SitePage::CheckControlsAndDisableAccordingly): tweak comment.
3431 2002-05-07 Robert Collins <rbtcollins@hotmail.com>
3433 * Makefile.am (inlint_SOURCES): Add conditional objects to inilint
3434 depending on platform.
3435 Add file:// support.
3436 * configure.in: Set conditional MINGWTARGET if compiling against mingw
3438 * Makefile.in: Regenerate.
3440 * io_stream_file.cc: Only use win32 calls when building for mingw.
3442 2002-05-05 Robert Collins <rbtcollins@hotmail.com>
3444 * Makefile.am (noinst_PROGRAMS): Make inilint configurable.
3445 * configure.in: Ditto.
3446 Fix incorrect header checking syntax.
3447 * aclocal.m4: Regenerate.
3448 * configure: Regenerate.
3449 * Makefile.in: Regenerate.
3450 * io_stream.cc: Remove platform specific and provider specific code.
3451 (io_stream::registerProvider): New method, registers a Url provider with
3453 Make all methods consistently throw invalid_argument exceptions when
3454 a provider that is requested is not present.
3455 (findProvider): New private function, finds a provider.
3456 * io_stream.h: Declare io_stream::registerProvider.
3457 * io_stream_cygfile.cc: Create a Provider class to register with
3459 * io_stream_file.cc: Ditto.
3460 * archive.cc: Remove unneeded includes.
3461 * archive_tar.cc: Remove unneeded includes.
3462 * archive_tar.h: Add required include.
3463 * archive_tar_file.cc: Remove unneded includes.
3464 * choose.cc: Remove unneeded includes:
3466 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
3468 * io_stream.cc: Use the new log interface thruout.
3470 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
3472 * log.cc (log): Reimplement via LogSingleton.
3474 (exit_setup): Remove.
3475 * log.h (log_save): Remove.
3476 (exit_setup): Remove.
3477 * LogSingleton.cc: New file.
3478 * LogSingleton.h: New file.
3479 * LogFile.cc: New file.
3480 * LogFile.h: New file.
3481 * Makefile.am (inilint_SOURCES): Add the new log interface.
3482 (setup_SOURCES): Add the new log interface and the concrete File
3484 * Makefile.in: Regenerate.
3485 * archive.cc: Use the new log interface thruout.
3486 * archive_tar.cc: Ditto.
3488 * dialog.cc (fatal): Use the new log interface.
3489 * ini.cc (do_ini_thread): Use the log interface to exit.
3490 * isntall.cc (do_install_thread): Ditto.
3491 * netio.cc (auth_cmd): Ditto.
3492 * msg.cc (fatal): Ditto.
3493 * localdir.cc (save_local_dir): Save to different files depending on
3494 the mode, and if a root dir exists.
3496 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
3498 * IniDBBuilder.cc: New file.
3499 * IniDBBuilder.h: New file.
3500 * IniDBBuilderPackage.cc: New file.
3501 * IniDBBuilderPackage.h: New file.
3502 * PackageTrust.h: New file.
3503 * IniState.h: Remove, wasn't thought out well enough.
3504 * Makefile.am (inilint_SOURCES): Add more requirements.
3505 (setup_SOURCES): Add new Builder base and concrete classes.
3506 * Makefile.in: Regenerate.
3507 * String++.cc (String::String): Implement int contructor.
3508 * String++.h (String): Declare int constructor.
3509 * archive_tar.cc (archive_tar::next_file_name): Return String() when
3511 * archive_tar.h (archive_tar_file): Remove get_next_filename method,
3513 * ini.cc: Replace IniState wuth IniDBBuilderPacakge.
3514 (find_routine): Use new IniDBBuilder to configure the parser.
3515 (do_local_ini): Ditto.
3516 (do_remote_ini): Ditto.
3517 * ini.h: Use IniDBBuilder to initialise parsing.
3518 * inilex.l (MD5): Parse the MD5 string correctly, we had the nibbles
3520 (ini_init): Use an IniDBBuilder rather than static variables.
3521 * iniparse.y: Hand off all the object creation to a builder, rather
3522 than hardcoding the behaviour. This allows run-time configured
3524 * io_stream_cygfile.h (io_stream_cygfile): Remove get_next_filename
3525 method, it's not needed.
3526 * io_stream_file.h (io_stream_file): Ditto.
3527 * mount.cc (cygpath): Return String() for missing mounts.
3528 * package_meta.cc (packagemeta::SDesc): Return String() for blank
3530 * package_meta.h (trusts): Remove - replaced by PackageTrust.h.
3531 (packagemeta::packagemeta): Fix incorrect syntax in String constructor
3533 * cygpackage.cc (cygpackage::cygpackage): Fix incorrect syntax in
3534 String constructor usage.
3535 * site.h (site_list_type): Ditto.
3537 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
3539 * String++.h: Declare a << operator that accepts String objects.
3540 * String++.cc: We need iostream for..
3541 (operator <<): this. Provide a << operator that accepts String objects.
3542 * ini.cc (yyerror): Remove the "C" classifier - it's not needed.
3543 Change from vargs to a String parameter.
3544 * inilintmail.cc: Remove the gui related headers.
3545 (yyerror): Implement this for parsing.
3546 * iniparse.y: Use the new yyerror syntax.
3548 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
3550 * Makefile.am: Add IniState.h.
3551 * Makefile.in: Regenerate.
3552 * IniState.h: New file.
3553 * choose.cc: Don't include ini.h - it's not needed.
3554 * configure: Regenerate.
3555 * desktop.cc: Don't include ini.h - it's not needed.
3556 * download.cc: Ditto.
3557 * fromcwd.cc: Ditto.
3558 * ini.cc: Use IniState.h to track each parsing calling.
3559 (find_routine): Ditto.
3560 (do_remote_ini): Ditto.
3561 (do_ini_thread): Ditto.
3562 * ini.h (ini_init): Adjust parameters to include state object.
3563 * inilex.l: Declare parser state variable.
3564 (ini_init): Adjust parameters to include state object.
3565 * iniparse.y: Remove obsolete setup_timestamp and setup_version
3567 (setup_header): Use new state variable to track time and version.
3568 (add_correct_version): Ditto.
3569 * install.cc: Don't include ini.h - it's not needed.
3571 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
3573 * nio-files.cc (NetIO): Use io_stream syntax for get_file_size.
3574 * io_stream_file.cc: Don't include filemanip.h.
3575 (io_stream_file::get_size): Implement here to remove filemanip
3577 * io_stream_cygfile.cc: Don't include filemanip.h.
3578 (io_stream_cygfile::get_size): Implement here to remove filemanip
3580 Implement a stat based version for when win32 is not available.
3581 * filemanip.h (get_file_size): Return size_t - it's more appropriate.
3582 * filemanip.cc: Don't include win32.h - be platform independent.
3583 Include strings.h and io_stream.h as part of that.
3584 (get_file_size): Leverage io_streams and remove win32 implementation.
3585 * download.cc (check_for_cached): Use io_stream syntax for
3587 (download_one): Ditto.
3589 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
3591 * configure.in: Correct a typo in last change.
3592 * configure: Regenerate.
3593 * Makefile.in: Regenerate.
3595 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
3597 * configure.in: Check for string.h and string.
3598 * configure: Regenerate.
3599 * Makefile.in: Regenerate.
3601 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
3603 * res.rc (IDD_SPLASH): Remove white box.
3605 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
3607 Oops! forgot to list these in the last checkin.
3608 * inilintmain.cc: New file.
3609 * md5.h: New file - imported md5 source, BSD style licence.
3610 * md5.cc: New file - imported md5 source, BSD style licence.
3611 * Exception.cc: New file.
3612 * Exception.h: New file.
3613 * MD5++.cc: New file.
3614 * MD5++.h: New file.
3616 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
3618 * Makefile.am (AM_CFLAGS): Remove -mwindows, it's a linker flag.
3619 Remove -fno-rtti, we need it for exceptions.
3620 (AM_CXXFLAGS): Ditto.
3621 (WARNONLY_CFLAGS): Ditto.
3622 (EXTRA_PROGRAMS): Add with initial linter sources - not functional yet.
3623 (setup_LDFLAGS): Add and set to -mwindows.
3624 (setup_SOURCES): Add new sources.
3625 * Makefile.in: Regenerate.
3626 * README: Update TODO.
3627 * choose.cc (scan_downloaded_files): Use ini information if it's
3629 * configure: Regenerate.
3630 * download.cc (check_for_cached): Make reusable from elsewhere.
3631 Throw exceptions on errors (as opposed to failures).
3632 Check MD5 sum when it's known.
3633 (download_one): Never force a download.
3634 Handle corrupt package exceptions.
3635 * ini.cc (find_routine): Reverse escape the URL to correctly identify
3637 * inilex.l (MD5): Provide a parsing rule (note: lowercase is required).
3638 * iniparse.y: Allow calculation of MD5 sums, and allow src only
3640 (process_src): New helper function.
3641 * isntall.cc (install_one_source): Check MD5 sums when possible.
3642 Throw exceptions on errors.
3643 (do_install_thread): Handle exceptions for installation calls.
3644 * package_source.h: Store MD5 information.
3645 * propsheet.cc (PropSheet::Create): Add a useful comment.
3646 * res.rc (IDS_INSTALL_ERROR): Define.
3647 (IDS_CORRUPT_PACKAGE): Define.
3648 * resource.h (IDS_INSTALL_ERROR): Define.
3649 (IDS_CORRUPT_PACKAGE): Define.
3650 * rfc1738.cc (rfc1738_unescape_part): Implement.
3651 * rfc1738.h (rfc1738_unescape_part): Declare.
3653 2002-04-29 Robert Collins <rbtcollins@hotmail.com>
3655 * Makefile.am: Remove dependecy rules that automake emits.
3656 Correct badly copied dependency info for manually compiled files.
3657 (setup_SOURCES): Add all used headers.
3658 (EXTRA_DIST): Include non compilate but required sources.
3659 (setup_LDADD): Remove mingw32, it is autodetected.
3660 * Makefile.in: Regenerate.
3661 * String++.h: sys/types is a system header.
3662 * choose.cc (do_choose_thread): Make into a Win32 thread routine.
3664 (ChooserPage::OnMessageApp): Use Win32 threads. (_beginthread is not
3666 * configure: Regenerate.
3667 * configure.in: Check for mingw32/cygwin specific headers and libraries.
3668 * cygpackage.h: Include the win32.h header to get correct macro
3669 definitions in all situations.
3670 * download.cc (do_download_reflector): Make into a Win32 thread routine.
3672 (do_download): Use Win32 threads.
3674 * install.cc: Ditto.
3675 * (WinMain): Adjust to build valid command line using application
3676 under both mingw32 and cygwin.
3677 * mount.cc (set)cygdrive_flags): Create new system flags if the
3678 user requests system and the value does not exist.
3679 * nio-http.cc: Define a _strnicmp for cygwin.
3680 * package_db.cc: Include <errno.h> if it exists.
3681 * site.cc (do_download_site_info_thread): Make into a Win32 thread
3684 (do_download_site-Info): Use Win32 threads.
3685 * state.cc: Explicity declare variables to avoid header conflicts
3686 caused by '#define extern" on cygwin.
3687 * win32.h: Include <alloca.h> if it exists.
3688 (_MAX_PATH): Define as MAX_PATH when not defined by windows.h.
3689 (_access): Define as access if not defined by windows.h.
3691 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
3693 * compress_gz.cc (compress_gz::error): EOF is not an error condition.
3695 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
3697 * Makefile.am: Add libgetopt++ to the subdirs list.
3698 Search the libgetopt++ header directory.
3699 Link against libgetopt++.la.
3700 (setup_SOURCES): Remove GetOption.cc and getopt.c and Option.cc.
3701 (setup_LDADD): Explicitly include res.o.
3702 * Makefile.in: Regenerate.
3703 * aclocal.m4: Regenerate.
3704 * bootstrap.sh: Call libtoolize.
3705 * configure: Regenerate.
3706 * configure.in: Add libtool support and configure libgetopt++.
3707 * desktop.cc (NoShortcutsOption): Turn into a BoolOption.
3708 (DesktopSetupPage::OnInit): Use the simpler syntax.
3709 * desktop.h: Remove dependency on Option.h, and remove NoShortcustOption
3711 * main.cc: Include getopt++/GetOption.h.
3712 (main): Use simpler syntax.
3716 * GetOption.h: Remove.
3717 * GetOption.cc: Remove.
3719 * Option.cc: Remove.
3721 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
3723 * Makefile.am: Add zlib and bz2lib to SUBDIRS.
3725 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
3727 * aclocal.m4: New file, cached macros.
3728 * bootstrap.sh: New file, calls required autotools in appropriate
3730 * Makefile.am: New file, input Makefile for automake.
3731 * Makefile,in: Now a generated file - regenerate.
3732 * configure: Regenerate.
3733 * configure.in: Add automake support.
3734 * inilex.l: Change VERSION to PACKAGEVERSION to avoid a collision with
3735 automake's VERSION define.
3736 * iniparse.y: Ditto.
3738 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
3740 * cdefs.h: New file, imported to allow getopt.c to build without
3742 * getopt.h: New file, imported to allow building without cygwin headers.
3744 * bz2lib: New directory, contains copy of bz2lib.
3745 * cfgaux: New directory, contains autotool helper scripts.
3746 * Makefile,in: Adjust library and target definitions for building
3747 outside the sourceware tree.
3748 * compress_bz.h: Use new bz2lib header location.
3749 * mount.cc: Import key defines and enums to be independent of cygwin
3751 * configure.in: Update to autoconf 2.53, and to be sourceware
3753 * configure: Regenerate.
3755 2002-04-12 Robert Collins <rbtcollins@hotmail.com>
3757 * mklink2.cc (make_link_2): Tweak to work with current w32api
3760 2002-04-10 Pavel Tsekov <ptsekov@gmx.net>
3762 * version.cc (canonicalize_version): Fix a call delete[]
3763 to delete the allocated address.
3765 2002-03-29 Robert Collins <rbtcollins@hotmail.com>
3767 * PickView.cc (PickView::set_headers): Set last_col correctly. Thanks
3768 to Ton van Overbeek for locating the bug area.
3770 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
3772 * PickView.cc (PickView::insert_pkg): Be more generic with
3774 (PickView::insert_category): Ditto.
3775 (PickView::~PickView): Create.
3776 * PickView.h (PickView::~PickView): Declare.
3778 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
3780 * Makefile.in (OBJS): Add new commandline objects.
3781 * desktop.cc (NoShortCutsOption): New option code.
3782 (DesktopSetupPage::OnInit): Check whether to skip shortcuts.
3783 * desktop.h (NoShortCutsOption): New concrete command line option class.
3784 * main.cc (WinMain): Process command line options.
3785 * GetOption.h: New file, singleton command line class.
3786 * GetOption.cc: New file, implementation of the above.
3787 * Option.h : New file, abstract option for GetOption.
3788 * Option.cc: New file, implement constructor and destructor.
3790 2002-03-26 Pavel Tsekov <ptsekov@gmx.net>
3792 * mkdir.cc (mkdir_p): Stop processing if the path is exhausted.
3794 2002-03-26 Ton van Overbeek <tvoverbe@cistron.nl>
3796 * PickPackageLine.cc (PickPackageline::paint): Adjust clipping rectangle
3797 to textheight, so large fonts work.
3799 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
3801 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Don't translate
3804 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
3806 * io_stream_cygfile.cc (cwd): New static for cwd storage.
3807 (io_stream_cygfile::normalise): New method.
3808 (io_stream_cygfile::io_stream_cygfile): Use it.
3809 (io_stream_cygfile::exists): Ditto.
3810 (io_stream_cygfile::remove): Ditto.
3811 (io_stream_cygfile::mklink): And again.
3812 (cygmkdir_p): Yes, again.
3813 (io_stream_cygfile::move): And once more.
3814 * io_stream_cygfile.h (io_stream_cygfile::normalise): Declare.
3815 (io_stream_cygfile::cwd): Ditto.
3817 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
3819 * package_meta.cc (package_meta::~package_meta): Remove duplicate.
3820 (CategoryPackage::~CategoryPackage): Ditto. (Thanks to Ton van
3821 Overbeek for the report).
3822 * mklink2.cc: Moved from mklink2.c to avoid 'not a prototype error'.
3823 Make g++ compatible.
3824 * mklink2.c: Remove.
3825 * site.cc (site_list_type::init): Delete the correct memory addres.
3826 Thanks to Pavel Tsekov for tracking this down.
3828 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
3830 * win32.h: Only define alloca if it's not already.
3832 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
3834 * package_meta.h (packamgemeta::trustp): Make 'test' choice leave
3835 installed packages alone.
3836 * README: Update with latest requests.
3837 * Various: MTC fixes from setup200202 branch.
3839 2002-03-19 Christopher Faylor <cgf@redhat.com>
3841 * Makefile.in (setup_version.c): Add back magic which allows detection
3842 of setup.exe version number.
3844 2002-03-17 Robert Collins <rbtcollins@hotmail.com>
3846 * PickPackageLine.cc (PickPackageLine::paint): Fix incorrect clip region
3847 calculation on win9x systems.
3849 2002-03-16 Robert Collins <rbtcollins@hotmail.com>
3851 * install.cc (install_one_source): Write the correct length of a string
3852 to the lst file (Thanks to Pavel Tsekov for reporting the bug).
3854 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
3856 * choose.cc (list_click): Always refresh the entire chooser, as our
3857 package state change mechanism is broken with the new improved list
3860 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
3862 * desktop.cc (make_passwd_group): Check for .lnk suffix on /etc/passwd
3865 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
3867 * PickPackageLine.cc (PickPackageLine::DrawCheck): New method factored
3869 (PickPackageLine::paint): Use DrawCheck to draw the src tick box, and
3870 the new bin tickbox.
3871 (PickPackageLine::click): Handle the new bin tickbox.
3872 * PickPackageLine.h (PickPackageLine::DrawCheck): Declare this.
3873 * PickView.cc (pkg_headers): Add a Bin? column.
3874 (cat_headers): Ditto.
3875 (PickView::set_headers): Ditto.
3876 (PickView::init_headers): Ditto.
3877 * PickView.h (PickView): Ditto.
3878 * choose.cc (list_click): Use the new name for src_col to set the clip
3881 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
3883 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Fix up Robert's
3886 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
3888 * desktop.cc (make_link): Add "file://" prefix to io_stream::mkpath_p()
3890 (make_passwd_group): Ditto.
3891 * localdir.cc (save_local_dir): Ditto.
3892 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Wrap long lines.
3893 Add "cygfile://" prefix to io_stream::open() calls.
3895 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
3897 * log.cc (log_save): Fix creating /var/log.
3898 * packate_meta.cc (standard_dirs): Remove duplicate '/''s.
3900 2002-02-24 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3902 * res.rc (STRINGTABLE): Add IDS_CYGWIN_SETUP and
3903 IDS_CYGWIN_SETUP_WITH_PROGRESS strings.
3904 * resource.h: Add IDS_CYGWIN_SETUP and
3905 IDS_CYGWIN_SETUP_WITH_PROGRESS IDs.
3907 * splash.cc (OnInit): Qualify SetWindowText() call with global scope
3908 operator (::SetWindowText()).
3910 * threebar.cc: Run indent.
3911 (cistring.h): Add include.
3912 (SetText1, SetText2, SetText3): Qualify SetWindowText() call with
3913 global scope operator.
3914 (SetBar2): Add logic for writing percent complete into window title.
3916 * window.h: Run indent.
3917 (SetWindowText): New function.
3918 (String): Add forward declaration.
3919 * window.cc: Run indent.
3920 (String++.h): Add include.
3921 (SetWindowText): New function.
3923 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
3925 * README: Update TODO list.
3926 * install.cc (install_one): Fix src package location.
3927 (do_install_thread): Fix creating directories.
3929 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
3931 * choose.cc: Include cygpackage.h for scan2 use.
3932 (set_existence): Ignore setup.ini mirrors when installing from cwd.
3933 (scan2): Process any valid file.
3934 Add cache entries when a file matching a setup.ini listed version is
3936 * filemanip.cc (parse_filename): Remove pkgtar - not used anywhere else.
3937 * filemanip.h (filemanip::pkgtar): Remove.
3938 * package_meta.cc (CategoryPackage::~CategoryPackage): New method.
3939 (packagemeta::~packagemeta): Move from package_meta.h
3940 Remove and delete all version and category information.
3941 * package_meta.h (CategoryPackage): Create a destructor.
3942 (packagemeta::~packagemeta): Move to .cc file.
3944 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
3946 * install.cc (install_one_source): Make NULL cached package names cause
3949 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
3951 * desktop.cc (make_passwd_group): Don't create passwd-grp.bat
3954 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
3956 * log.cc (log_save): Put "\n" at end of log lines instead of "'".
3958 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
3960 * mount.cc (create_mount): Avoid a const char*->char* warning.
3961 (read_mounts): Ditto.
3963 2002-02-05 Jason Tishler <jason@tishler.net>
3965 * download.cc (do_download_thread): Fix off-by-one error.
3967 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
3969 * configure.in (CXXFLAGS): Substitute at configure time, not runtime.
3970 * configure (CXXFLAGS): Regenerate.
3971 * Makefile.in (iniparse.o): Build via default rules - no errors now.
3972 * README: TODO list updates.
3974 2002-02-19 Michael A Chase <mchase@ix.netcom.com>
3976 * String++.cc (String::concat):: Remove.
3977 (String::vconcat):: Ditto.
3978 * String++.h (String::concat):: Remove.
3979 (String::vconcat):: Ditto.
3980 * archive_tar.cc: Don't include concat.h.
3981 * archive_tar_file.cc: Don't include concat.h.
3982 * compress_bz.cc (compress_bz::peek): Don't log unneeded messages.
3983 (compress_bz::seek): Ditto.
3984 (compress_bz::~compress_bz): Ditto.
3985 * compress_gz.cc (compress_gz::peek): Ditto.
3986 (compress_gz::error): Ditto.
3987 (compress_gz::~compress_gz): Ditto.
3988 * concat.cc (vconcat): Remove.
3990 * concat.h (vconcat): Remove.
3992 * desktop.cc (desktop_icon): Use new cygpath.
3993 (make_etc_profile): Ditto.
3995 (make_passwd_group): Ditto.
3997 (check_desktop): Remove concat use.
3998 (check_start_menu): Ditto.
3999 * download.cc (download_one): Use new mkpath_p correctly.
4001 * fromcwd.cc: Don't include concat.h.
4002 * geturl.cc (get_url_to_membuf): Use String log() call.
4003 (get_url_to_file): Ditto.
4004 * install.cc: Don't include concat.h.
4005 (uninstall_one): Use LOG_PLAIN.
4006 (replace_one): Ditto.
4007 (install_one_source): Ditto.
4008 (install_one): More char to String conversion.
4009 (do_install_thread): Use new cygpath.
4010 Use new create_mount.
4011 * io_stream.cc (io_stream::move): Use new log().
4012 * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new
4014 (io_stream_cygfile::exists): Ditto.
4015 (io_stream_cygfile::remove): Ditto.
4016 (io_stream_cygfile::mklink): Ditto.
4017 (io_stream_cygfile::write): Ditto.
4018 (cygmkdir_p): Ditto.
4019 (io_stream_cygfile::move): Ditto.
4020 * io_stream_file.cc: Don't include log.h.
4021 (io_stream_file::write): Don't log unneeded messages.
4022 * localdir.cc: Don't include concat.h.
4023 (LocalDirPage::OnNext): Use LOG_PLAIN.
4024 * log.cc: Don't include log.h.
4025 (exit_setup): Use new cygpath.
4026 * log.h (log_level): Add new level LOG_PLAIN.
4027 * main.cc (WinMain): Use new log().
4028 * mount.cc (SLASH_P): New macro from concat.h.
4029 (cygpath): Make String version globally visible.
4030 Remove varargs version.
4032 * msg.cc (mbox): Use LOG_PLAIN.
4033 * net.cc (NetPage::OnNext): Ditto.
4034 * nio-ftp.cc (ftp_line): Use new log().
4035 * nio-http.cc: Don't include log.h.
4036 (retry_get): Use alternative url variable.
4037 * package_db.cc: Don't include concat.h.
4038 (packagedb::flush): Don't use concat.
4039 * package_meta.cc: Don't include concat.h.
4040 (packagemeta::uninstall): Use new cygpath.
4041 * postinstall.cc (do_postinstall): Ditto.
4042 * root.cc (RootPage::OnNext): Use LOG_PLAIN.
4043 * script.cc: Don't include concat.h.
4044 (init_run_script): Use new cygpath.
4045 (run_script): More char * to String conversion.
4046 (try_run_script): Ditto.
4047 * site.cc: Don't include concat.h.
4048 (SitePage::OnNext): Use LOG_PLAIN.
4049 (SitePage::OnMessageCmd): Use new log().
4050 * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN.
4052 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
4054 * Makefile.in (OBJS): Add new object.
4055 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the
4057 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
4058 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
4059 (PickLine::Pickline): Accept a String for the key.
4060 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to
4062 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is
4063 automatically initialised now.
4064 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
4065 (PickView::init_header): Move category length checking out of the inner
4066 loop for efficiency.
4067 Convert all char use to Strings.
4068 * PickView.h: Include the String++ header.
4069 (PickView::note_width): Update the prototype.
4070 * String++.cc: New file, implements a reference counting string class.
4071 * String++.h: New file, declares a reference counting string class.
4072 * archive.cc: Include String++ instead of concat.
4073 (archive::extract_file): Convert char * usage to Strings.
4074 * archive.h: Inlude the String++ header.
4075 (archive::extract_file): Update prototype.
4076 (archive::next_file_name): Convert to a String.
4077 (archive::linktarget): Ditto.
4078 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
4079 (archive_tar::linktarget): Ditto.
4080 * arhive_tar.h: Update the copyright.
4081 Explicitly include the relevant headers.
4082 (tar_map_result_type): Convert to String usage.
4083 (archive_tar::next_file_name): Update prototype.
4084 (archive_tar::linktarget): Ditto.
4085 * category.cc (Category::Category): Update initialisers.
4086 Convert to String usage.
4087 (Categorycmp): Update to String usage.
4088 * category.h: Include the String++ header.
4089 (Category::Category): Update to String usage.
4090 (Category::name): Ditto.
4091 (Category::key): Ditto.
4092 * choose.cc: Remove concat.h, it's not needed.
4093 (scan2): Update to String usage.
4095 * cygpackage.cc: Update includes for use of String class.
4096 (cygpackage::cygpackage): Update for String usage.
4097 (cygpackage::set_canonical_version): Ditto.
4098 (cygpackage::destroy): Ditto.
4099 (cygpackage::getfirstfile): Ditto.
4100 (cygpackage::getnextfile): Ditto.
4101 (cygpackage::Name): Ditto.
4102 (cygpackage::Vendor_version): Ditto.
4103 (cygpackage::Package_version): Ditto.
4104 (cygpackage::Canonical_version): Ditto.
4105 (cygpackage::set_sdesc): Ditto.
4106 (cygpackage::set_ldesc): Ditto.
4107 * cygpackage.h: Include String++.h for parsing this file.
4108 (cygpackage::cygpackage): Update for String usage.
4109 (cygpackage::set_canonical_version): Ditto.
4110 (cygpackage::destroy): Ditto.
4111 (cygpackage::getfirstfile): Ditto.
4112 (cygpackage::getnextfile): Ditto.
4113 (cygpackage::Name): Ditto.
4114 (cygpackage::Vendor_version): Ditto.
4115 (cygpackage::Package_version): Ditto.
4116 (cygpackage::Canonical_version): Ditto.
4117 (cygpackage::set_sdesc): Ditto.
4118 (cygpackage::set_ldesc): Ditto.
4119 (cygpackage::name): Ditto.
4120 (cygpackage::vendor): Ditto.
4121 (cygpackage::packagev): Ditto.
4122 (cygpackage::canonical): Ditto.
4123 (cygpackage::fn): Ditto.
4124 (cygpackage::sdesc): Ditto.
4125 (cygpackage::ldesc): Ditto.
4126 * desktop.cc: Update includes for use of String class.
4127 (batname): Update for String usage.
4130 (start)menu): Ditto.
4131 (desktop_icon): Ditto.
4132 (make_cygwin_bat): Ditto.
4133 (make_etc_profile): Ditto.
4135 (make_passwd_group): Ditto.
4137 (check_desktop): Ditto.
4138 (check_startmenu): Ditto.
4139 * dialog.cc (eget): Update for String usage.
4140 (egetString): New function.
4141 (eset): New variant for Strings.
4142 * dialog.h: Include String++.h for parsing this file.
4143 (egetString): New function.
4144 (eset): New variant for Strings.
4145 * diskfull.cc (diskfull): Update for String usage.
4146 * diskfull.h: Include String++.h for parsing this file.
4147 (diskfull): Update for String usage.
4148 * download.cc: Update includes for use of String class.
4149 (check_for_cached): Update for String usage.
4150 (download_one): Ditto.
4151 * filemanip.cc (get_file_size): Ditto.
4153 (parse_filename): Ditto.
4155 * filemanip.h: Include String++.h for parsing this file.
4156 (fileparse): Update for String usage.
4158 (parse_filename): Ditto.
4159 Don't consider '_' to be a separator.
4161 * find.cc: Update includes for use of String class.
4162 (find_sub): Make more flexible.
4163 (find): Update for String usage.
4164 * find.h (find): Use Strings.
4165 * fromcwd.cc (found_file): Update for String usage.
4167 (init_dialog): Ditto.
4168 (get_url_to_membuf): Ditto.
4169 (get_url_to_string): Ditto.
4170 (get_url_to_file): Ditto.
4172 (get_url_to_membuf): Ditto.
4173 (get_url_to_string): Ditto.
4174 (get_url_to_file): Ditto.
4176 (add_subdirs): Ditto.
4177 * ini.cc: Update includes for String usage.
4178 (find_routine): Update for String usage.
4179 (do_remote_ini): Ditto.
4180 (do_ini_thread): Ditto.
4181 * ini.h (ini_init): Ditto.
4182 * inilex.l: Update includes for String usage.
4183 (ini_init): Update for String usage.
4184 * iniparse.y: Ditto.
4185 (add_correct_version): Ditto.
4186 * install.cc: Update includes for String usage.
4187 (install_one_source): Update for String usage.
4188 (uninstall_one): Ditto.
4189 (replace_one): Ditto.
4190 (install_one_source): Ditto.
4191 (do_install_thread): Ditto.
4192 * io_stream.cc: Update includes for String usage.
4193 (io_stream::open): Update for String usage.
4194 (io_stream::mkpath_p): Ditto.
4195 (io_stream::remove): Ditto.
4196 (io_stream::mklink): Ditto.
4197 (io_stream::move_copy): Ditto.
4198 (io_stream::move): Ditto.
4199 (io_stream::exists): Ditto.
4200 * io_stream.h: Update includes to allow correct parsing.
4201 (io_stream::open): Update for String usage.
4202 (io_stream::mkpath_p): Ditto.
4203 (io_stream::remove): Ditto.
4204 (io_stream::mklink): Ditto.
4205 (io_stream::move_copy): Ditto.
4206 (io_stream::move): Ditto.
4207 (io_stream::exists): Ditto.
4208 * io_stream_cygfile.cc: Update includes for String usage.
4209 (get_root_dir_now): Update for String usage.
4210 (io_stream_cygfile::io_stream_cygfile): Ditto.
4211 (io_stream_cygfile::~io_stream_cygfile): Ditto.
4212 (io_stream_cygfile::exists): Ditto.
4213 (io_stream_cygfile::remove): Ditto.
4214 (io_stream_cygfile::mklink): Ditto.
4215 (cygmkdir_p): Ditto.
4216 (io_stream_cygfile::set_mtime): Ditto.
4217 (io_stream_cygfile::move): Ditto.
4218 (io_stream_cygfile::get_size): Ditto.
4219 * io_stream_cygfile.h: Update includes for String usage.
4220 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
4221 (io_stream_cygfile::~io_stream_cygfile): Ditto.
4222 (io_stream_cygfile::exists): Ditto.
4223 (io_stream_cygfile::remove): Ditto.
4224 (io_stream_cygfile::mklink): Ditto.
4225 (cygmkdir_p): Ditto.
4226 (io_stream_cygfile::set_mtime): Ditto.
4227 (io_stream_cygfile::move): Ditto.
4228 (io_stream_cygfile::get_size): Ditto.
4229 (io_stream_cygfile::fname): Ditto.
4230 (io_stream_cygfile::lmode): Ditto.
4231 * io_stream_file.cc: Update includes for String usage.
4232 (io_stream_file::io_stream_file): Update for String usage.
4233 (io_stream_file::~io_stream_file): Ditto.
4234 (io_stream_file::exists): Ditto.
4235 (io_stream_file::remove): Ditto.
4236 (io_stream_file::mklink): Ditto.
4237 (io_stream_file::set_mtime): Ditto.
4238 (io_stream_file::move): Ditto.
4239 (io_stream_file::get_size): Ditto.
4240 * io_stream_file.h: Update includes for String usage.
4241 * io_stream_file.cc: Update includes for String usage.
4242 (io_stream_file::io_stream_file): Update for String usage.
4243 (io_stream_file::~io_stream_file): Ditto.
4244 (io_stream_file::exists): Ditto.
4245 (io_stream_file::remove): Ditto.
4246 (io_stream_file::mklink): Ditto.
4247 (io_stream_file::set_mtime): Ditto.
4248 (io_stream_file::move): Ditto.
4249 (io_stream_file::get_size): Ditto.
4250 (io_stream_file::fname): Ditto.
4251 (io_stream_file::lmode): Ditto.
4252 * localdir.cc: Update includes for String usage.
4253 (save_local_dir): Update for String usage.
4254 (check_if_enable_next): Ditto.
4255 (load_dialog): Ditto.
4257 (LocalDirPage::OnInit): Ditto.
4258 (LocalDirPage::OnNext): Ditto.
4259 * log.cc: Update includes for String usage.
4260 (struct LogEnt): Update for String usage.
4263 (exit_setup): Ditto.
4264 * log.h: Update includes for String usage.
4265 (log_level): Update for String usage.
4268 * main.cc (WinMain): Update for String usage.
4269 * mklink2.c (make_link_2): Update for String usage.
4270 * mklink2.h (make_link_2): Update for String usage.
4271 * mount.cc: Update includes for String usage.
4272 (mount_table): Update for String usage.
4274 (create_mount): Ditto.
4276 (remove_mount): Ditto.
4277 (read_mounts): Ditto.
4278 (set_root_dir): Ditto.
4279 (get_root_dir): Ditto.
4280 (path_prefix_p): Ditto.
4282 * mount.h: Update includes for String usage.
4283 (create_mount): Update for String usage.
4284 (remove_mount): Ditto.
4286 (set_root_dir): Ditto.
4287 (get_root_dir): Ditto.
4288 * msg.cc (mbox): Ditto.
4289 * net.cc (NetPage::OnNext): Ditto.
4290 * package_db.cc (packagedb::flush): Ditto.
4291 (packagedb::packages): Ditto.
4292 (packagedb::categories): Ditto.
4293 * package_db.h: Update includes for String usage.
4294 (packagedb::packages): Update for String usage.
4295 (packagedb::categories): Ditto.
4296 * package_meta.cc: Update includes for String usage.
4297 (hash::add_subdirs): Update for String usage.
4298 (packagemeta::uninstall): Ditto.
4299 (packagemeta::SDesc): Ditto.
4300 (packagemeta::action_caption): Ditto.
4301 * package_meta.h: Update includes for String usage.
4302 (packagemeta::packagemeta): Update for String usage.
4303 (packagemeta::~packagemeta): Ditto.
4304 (packagemeta::uninstall): Ditto.
4305 (packagemeta::SDesc): Ditto.
4306 (packagemeta::action_caption): Ditto.
4307 (package_source.cc site::site): Ditto.
4308 (packagesource::set_canonical): Ditto.
4309 (packagesource::set_cached): Ditto.
4310 * package_source.h: Update includes for String usage.
4311 (site::site): Update for String usage.
4312 (packagesource::set_canonical): Ditto.
4313 (packagesource::set_cached): Ditto.
4314 (packagesource::packagesource): Ditto.
4315 (packagesource::sites): Ditto.
4316 (packagesource::cached): Ditto.
4317 * package_version.h: Update includes for String usage.
4318 (Dependency): Update for String usage.
4319 (packageversion): Ditto.
4320 * postinstall.cc: Update includes for String usage.
4321 (do_postinstall): Update for String usage.
4322 * res.rc (IDD_LOCAL_DIR): Fix typo again!
4323 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
4324 * rfc1738.h: Update includes for String usage.
4325 (rfc1738_escape_part): Update for String usage.
4326 * root.cc: Update includes for String usage.
4327 (check_if_enable_next): Update for String usage.
4328 (save_dialog): Ditto.
4330 (directory_is_absolute): Ditto.
4331 (directory_is_rootdir): Ditto.
4332 (directory_has_spaces): Ditto.
4333 (RootPage::OnInit): Ditto.
4334 (RootPage::OnNext): Ditto.
4335 * script.cc: Update includes for String usage.
4336 (init_run_script): Update for String usage.
4338 (run_script): Ditto.
4339 (try_run_script): Ditto.
4340 * script.h: Update includes for String usage.
4341 (run_script): Update for String usage.
4342 (try_run_script): Ditto.
4343 * site.cc site_list): Ditto.
4344 (all_site_list): Ditto.
4345 (other_url): Eliminate.
4346 (site_list_type::init): Update for String usage.
4347 (site_list_type::site_list_type): Ditto.
4348 (get_site_list): Ditto.
4349 (get_saved_sites): Ditto.
4350 (do_download_site_info_thread): Ditto.
4351 (SitePage::OnNext): Ditto.
4352 (SitePage::OnActivate): Ditto.
4353 (SitePage::PopulateListBox): Ditto.
4354 (SitePage::OnMessageCmd): Handle empty url's.
4355 * site.h: Update includes for String usage.
4356 (site_list_type::site_list_type): Update for String usage.
4357 (site_list_type::init): Ditto.
4358 (site_list_type::~site_list_type): Ditto.
4359 (site_list_type::url): Ditto.
4360 (site_list_type::displayed_url): Ditto.
4361 (site_list_type::key): Ditto.
4362 * source.cc (SourcePage::OnDeactivate): Ditto.
4363 * state.h: Update includes for String usage.
4364 (local_dir): Update for String usage.
4365 (trust_level): Remove.
4366 * version.cc: Update includes for String usage.
4367 (canonicalize_version): Update for String usage.
4368 * version.h: Update includes for String usage.
4369 (canonicalize_version): Update for String usage.
4371 2002-02-15 Christopher Faylor <cgf@redhat.com>
4373 * filemanip.c (parse_filename): Revert previous change.
4375 2002-02-14 Christopher Faylor <cgf@redhat.com>
4377 * filemanip.c (parse_filename): Don't treat '_' as a version number
4380 2002-01-29 Christopher Faylor <cgf@redhat.com>
4382 * configure: Regenerate.
4384 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
4386 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
4387 <Hoeck@extern.lrz-muenchen.de>
4389 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
4391 * README: Update Todo's.
4392 * list.h: Run indent.
4393 (list): New methods checksize and insert to reduce code duplication.
4394 (list::registerbykey): Use them.
4395 (list::registerbyobject): Ditto.
4396 (list::removebyindex): Copy each object individually - safe for non
4398 (list::checksize): Implement.
4399 (list::insert): Implement.
4401 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
4403 * Makefile.in: Remove the dlmalloc object by default.
4404 * install.cc (do_install_thread): Remove the mallinfo call for 'working
4405 around' the crashing issue.
4406 * package_db.h: Include <string.h> - it's needed to parse this.
4407 * package_source.cc (site::site): Move here from the header file.
4408 * package_source.h (site): Stop the constructor being inlinable.
4410 2002-01-26 Robert Collins <rbtcollins@hotmail.com>
4412 * filemanip.cc (find_tar_ext): Add a descriptive comment.
4414 2002-01-25 Michael A Chase <mchase@ix.netcom.com>
4416 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
4417 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
4418 * install.cc (install_one_source): Add space between words in log()
4421 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
4423 * log.cc (exit_setup): When saving to the download dir, explicity
4426 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
4428 * archive.cc (extract_file): Separate out the prefix and the URL
4430 * archive.h (archive::extract_file): Ditto.
4431 * install.cc (install_one_source): Ditto. Use the new
4432 archive::extract_file syntax.
4433 (replace_one): Use the new syntax.
4434 (io_stream.cc): Add some log info for links.
4436 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
4438 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
4439 (PickCategoryLine::paint): Use the new action method.
4440 (PickCategoryLine::click): Set the action for all children.
4441 (PickCategoryLine::set_action): New method.
4442 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
4443 (PickCategoryLine::current_default): Use packagemeta _actions class.
4444 * PickLine.h (PickLine::set_action): New abstract method that requires
4445 including package_meta.h.
4446 * PickPackageLine.cc (PickPackageLine::set_action): New method.
4447 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
4448 * list.h (getbykey): A const correctness fix.
4449 * package_meta.cc: Run indent.
4450 (packagemeta::Default_action): New const.
4451 (packagemeta::Install_action): Ditto.
4452 (packagemeta::Reinstall_action): Ditto.
4453 (packagemeta::Uninstall_action): Ditto.
4454 (packagemeta::_actions::caption): New method.
4455 (packagemeta::_actions::operator++): Ditto.
4456 (packagemeta::set_action): New overload.
4457 * package_meta.h (packagemeta::_actions): New class.
4458 (packagemeta::set_action): Declare this.
4460 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
4462 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
4463 * choose.cc: Don't define alloca anymore, it's done in win32.h
4465 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
4467 * PickPackageLine.cc: New file.
4468 * PickPackageLine.h: New file.
4469 * PickLine.cc: New file.
4470 * PickLine.h: New file.
4471 * PickCategoryLine.cc: New file.
4472 * PickCategoryLine.h: New file.
4473 * PickView.cc: New file.
4474 * PickView.h: New file.
4475 * Makefile.in: Add new objects to setup.exe.
4476 Backout -fno-exceptions option.
4477 * choose.cc: Include PickView.h.
4478 Remove view related defines and static variables.
4479 (_pkg_headers): Moved to PickView.cc.
4480 (_cat_headers): Ditto.
4481 (view::views::Unknown): Ditto.
4482 (view::views::PackageFull):
4483 (view::views::Package):
4484 (view::views::Category):
4485 (pkgtrustp): Moved to package_meta.cc.
4486 (add_required): Moved to package_meta.cc.
4487 (pick_category_line::empty): Moved to PickCategoryLine.cc
4488 (paint): Adjust for moved static variables.
4489 (view::scroll): Moved to PickView.cc.
4490 (list_vscroll): Adjust for moved static variables.
4491 (list_hscroll): Ditto.
4492 (list_click): Ditto.
4493 (note_width): Moved to PickView.cc.
4494 (view::view): Ditto.
4495 (view::set_view_mode): Ditto.
4496 (view::mode_caption): Ditto.
4497 (view::views::caption): Ditto.
4498 (view::set_headers): Ditto.
4499 (DoInsertItem): Ditto.
4500 (view::init_headers): Ditto.
4501 (view::insert_pkg): Ditto.
4502 (view::insert_category): Ditto.
4503 (view::clear_view): Ditto.
4504 (view::views::operator++): Ditto.
4505 (view::click): Ditto.
4506 (default_trust): Adjust for moved statics.
4507 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
4508 (pick_pkg_line::click): Ditto.
4509 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
4510 (pick_category_line::paint): Ditto.
4511 (pick_category_line::click): Ditto.
4512 (set_view_mode): Adjust for moved statics.
4513 (create_listview): Ditto.
4514 * choose.h: Remove Category and packagemeta forward defines -
4516 Don't include unneeded headers list and package_meta.
4517 (_header): Move to PickView.h.
4518 (pick_line): Move to PickLine.h.
4519 (pick_pkg_line): Move to PickPackageLine.h.
4520 (pick_category_line): Move to PickCategoryLine.h.
4521 (view): Move to PickView.h.
4522 * ini.h (trusts): Move to package_meta.h.
4523 * package_meta.h (trusts): New enum.
4524 (packagemeta::set_requirements): New helper method.
4525 (packagemeta::trustp): Ditto.
4527 2002-01-21 Christopher Faylor <cgf@redhat.com>
4529 * choose.h (view): Move forward declaration of views into public area
4530 or g++ v3 will complain.
4532 2002-01-21 Christopher Faylor <cgf@redhat.com>
4534 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
4535 * win32.h (alloca): Define as __builtin_alloca.
4536 * io_stream_memory.cc: Add include file.
4538 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
4540 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as
4542 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
4543 * compress.cc (compress::~compress): Be less verbose.
4544 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
4545 Mark the stream as destroyed.
4546 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as
4548 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not
4549 marked as destroyed.
4550 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
4551 stream as destroyed.
4552 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
4553 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
4555 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
4557 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
4558 (OBJS): Link in malloc objects.
4559 * category.cc (category): Use new char, not strdup.
4560 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
4561 (do_choose): Use new char, not malloc.
4562 * concat.cc (vconcat): Ditto.
4563 * cygpackage.cc (cygpackage): Use new char, not strdup.
4564 (set_canonical_version): Ditto.
4565 (cygpackage::destroy): Use delete[], not free.
4566 * desktop.cc (uexists): Ditto.
4567 * dialog.cc (egest): Use new char, not strdup.
4568 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
4569 * hash.cc (hash::hash): Use delete instead of free.
4570 (hash::add): Use new char, not strdup.
4571 * ini.cc (do_remote_ini): Use delete[] not free.
4572 * inilex.l: Use new char, not strdup.
4574 * iniparse.y: Ditto.
4575 Use a local package_db rather than a static one.
4576 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
4577 (do_install_thread): Call mallinfo to force a consistency check. Appears
4578 to fix a 'inuse' error in -DDEBUG builds.
4579 Use delete[] for strings.
4580 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new
4582 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
4583 (io_stream_cygfile::remove): Use new char, not strdup.
4584 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not
4586 (io_stream_file::io_stream_file): Use delete[], not free.
4587 (io_stream_file::remove): Use new char, not strdup.
4588 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
4589 * io_stream_memory.h (memblock): Use new char, not malloc.
4590 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
4591 * main.cc (WinMain): Use new char, not strdup.
4592 * mount.cc (find2): Use new char, not malloc.
4593 (read_mounts): Ditto.
4594 (cygpath): Use new char, not strdup.
4595 * netio.cc (NetIO::~NetIO): Use delete[], not free.
4596 (NetIO::set_url): Use new char, not strdup.
4597 (NetIO::get_ftp_auth): Use delete[], not free.
4598 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
4599 Use new char instead of strdup.
4600 * nio-http.cc (base64_encode): Use new char, not malloc.
4601 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
4602 * package_source.h (~ packagesource): Use delete[] instead of delete.
4603 * port.h (strdup): Deprecate the use of strdup.
4604 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
4605 * script.cc (init_run_script): Us delete[], not free.
4606 (run_script): Ditto.
4607 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
4608 (SimpleSocket::invalidate): Use delete[], not free.
4609 * site.cc (site_list_type::init): Use new char instead of strdup.
4610 * site.h (~site_list_type): Use delete[], not free.
4612 2002-01-20 Robert Collins <rbtcollins@hotmail.com>
4614 * Makefile.in (OBJS): Add win32.o - win32 support functions.
4615 * README: Update todos.
4616 * archive.cc (extract_file): Support a suffix for appending to extracted
4619 * choose.cc (set_view_mode): Use the new view::views class.
4620 (view::views::Unknown): New static for defaulting view::views variables.
4621 (view::views::PackageFull): New static for the current view.
4622 (view::views::Package): Ditto.
4623 (view::views::Category): Ditto.
4624 (topbucket::paint): Remove.
4625 (topbucket::empty): Rename to pick_category_line::empty.
4626 (topbucket::~topbucket): Remove.
4627 (paint): Use the new view::views class.
4628 Don't paint 'all' as a category when showing package categoies.
4629 (pick_category_line::actiontext): New method.
4630 (pick_category_line::paint): Make showing the category optional, and
4631 show the 'category action'.
4632 (pick_category_line::click): Make showing the category optional, and
4633 differentiate between the name being clicked, and the action
4635 (view::view): Use the new view::views class.
4636 (view::set_view_mode): Ditto.
4637 (view::mode_caption): Ditto.
4638 (view::views::caption): New method.
4639 (view::set_headers): Use the new view::views class.
4640 (view::clear_view): Ditto.
4641 (viewsplusplus): Replaced by
4642 (view::views::operator++): New operator.
4643 (set_view_mode): Use the new view::views class.
4644 (create_listview): Ditto.
4645 (dialog_cmd): Ditto.
4646 * choose.h (actions): Remove.
4648 (pick_line): Add a new convenience constructor.
4649 (top_bucket): Remove.
4650 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
4651 (view::views): New class.
4652 * ini.h: Don't include choose.h
4653 (is_download_action): Remove.
4654 (is_upgrade_action): Remove.
4655 (is_uninstall_action): Remove.
4656 (is_full_action): Remove.
4657 * install.cc (num_replacements): New static.
4658 (rebootneeded): Ditto.
4659 (replace_one): Handle upgrades separate from removal or new installs.
4660 (install_one_source): Handle in use files.
4661 (install_one): Don't repeat upgrades.
4662 (do_install_thread): Initialize new statics.
4663 Order actions as uninstall, replace, install.
4664 Warn about rebooting if needed.
4665 * res.rc (IDS_REBOOT_REQUIRED): New string.
4666 * resource.h (IDS_REBOOT_REQUIRED): Give value.
4667 * win32.h: Declare class Win32, and update copyright and intent message.
4668 * win32.cc: New file.
4670 2002-01-15 Corinna Vinschen <corinna@vinschen.de>
4672 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
4673 * package_meta.cc (packagemeta::uninstall): Check for additional
4674 Windows shortcut. Unset R/O file attribute before trying to delete
4677 2002-01-09 Robert Collins <rbtcollins@hotmail.com>
4679 * choose.cc (pkgtrustp): Fall back to installed if a package is not
4680 present in the current trust level. For prev, fall back via curr.
4681 (set_existence): Allow sources with no sites, but cached files to be
4683 (pick_category_line::paint): Start drawing clickable categories.
4684 * fromcwd.cc (found_file): Reinstate local file scanning.
4686 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
4688 * fromcwd.cc: Run indent.
4689 (do_fromcwd): Reverse sense of comment. Set next_dialog
4690 to IDD_CHOOSER instead of IDD_CHOOSE.
4691 * ini.cc (find_routine): Remove "/" from "/setup.ini".
4693 2001-01-07 Robert Collins <rbtcollins@hotmail.com>
4695 * category.cc (Categorycmp): Add a const safe version.
4696 * category.h (Categorycmp): Add a const safe version.
4697 (Category): Add operator ==.
4698 * choose.cc (fill_missing_category): Add every package to "All".
4699 (pick_category_line::paint): Add support for hidden labels, and a tree
4701 (pick_category_line::click): Ditto.
4702 (view::view): Pass in a top level category to use.
4703 (view::insert_pkg): Special case - skip category "All".
4704 (view::insert_category): Ditto.
4705 (view::clear_view): Set the contents label state.
4706 (create_listview): Pass in a top level category to view().
4707 * choose.h (topbucket): Make bucket available to derived classes.
4708 (pick_category_line): Add support for hidden labels, and a tree depth.
4709 Remove our second copy of bucket.
4710 (view): Pass in a top level category to the constructor.
4711 Use pick_category_line to allow three level display.
4713 2001-01-06 Robert Collins <rbtcollins@hotmail.com>
4715 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
4716 * iniparse.y (add_correct_version): Copy descriptions across.
4717 * package_meta.cc (SDesc): Iterate through versions, return the first
4719 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
4721 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
4723 * script.cc (run_script): Change cygpath:// to cygfile://.
4724 * install.cc (do_install_thread): Fix off-by-one errors.
4726 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
4728 * package_db.cc (packagedb::flush): Fix an off-by-one error.
4730 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
4732 * Makefile.in (realclean): more clean.
4733 (OBJS): Add script.o.
4734 * postinstall.cc (run_script_in_etc_postinstall): New function.
4735 (do_postinstall): Split off new funtion init_run_script ().
4738 (run_script): Move to script.cc. Replace some deprecated remove
4741 * script.cc: New file.
4742 * Forward port cygwin-20010707.jcn3.patch.
4743 * package_meta.cc (uninstall): Run pre- and postremove scripts.
4744 * install.cc: Typo fix.
4745 (do_install): Run script initialisation.
4747 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
4749 * cistring.cc: Run d2u.
4750 * cistring.h: Run d2u.
4752 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
4753 from the generated /etc/profile. Bash will source this file
4754 automatically, and having this here merely results in .bashrc being
4755 executed twice. Run d2u.
4756 * desktop.h: Run d2u.
4758 * propsheet.cc: Run d2u.
4759 (PropSheetProc): New function. Add minimize box here instead of in
4760 PropertyPage::DialogProc.
4761 (PropSheet::Create): Change to use creation callback PropSheetProc.
4762 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
4764 * propsheet.h: Run indent, d2u.
4765 * proppage.h: Run indent, d2u.
4767 * proppage.cc: Run d2u.
4768 (PropertyPage::DialogProc): Remove minimize-box-adding
4769 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
4770 Add support for calling virtual OnMessageCmd. Add setting of fonts in
4771 WM_INITDIALOG handler.
4772 (resource.h): New include for resource IDs.
4774 * res.rc: Resize and rearrange property page dialog templates
4775 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
4776 specification. Run d2u.
4777 (IDD_SITE): Add an edit control and an "Add" button in order to
4778 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
4779 (IDD_OTHER_URL): Remove dialog template.
4780 (IDD_DLSTATUS): Remove dialog template.
4783 (SitePage::OnBack): Remove NEXT() macro invocation.
4784 (SitePage::OnActivate): New member function.
4785 (load_dialog): Remove. Functionality subsumed into
4786 SitePage::OnActivate.
4787 (save_dialog): Change to support both list and user URLs. Remove
4788 OTHER_IDX and mirror_idx logic.
4789 (SitePage::PopulateListBox): New member function.
4790 (SitePage::CheckControlsAndDisableAccordingly): New member function.
4791 (SitePage::OnMessageCmd): New override.
4792 (check_if_enable_next): Remove.
4793 (dialog_cmd): Remove.
4794 (do_download_site_info_thread): Remove calls to NEXT() macro.
4795 (SitePage::Create): Call the single-param PropertyPage::Create
4797 (other_url): New static taken from other.cc.
4798 (SitePage::OnNext): Remove mirror_idx logic.
4799 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
4800 list box populating code, now handled in SitePage::PopulateListBox.
4801 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
4802 (save_site_url): Fix potential buffer overflow problem. Switched to
4803 TCHAR in grossly premature preparation for multilingual support.
4805 (SitePage::OnActivate): New member function.
4806 (SitePage::CheckControlsAndDisableAccordingly) New member.
4807 (SitePage::OnMessageCmd): New override.
4808 (do_download_site_info_thread): Add MessageBox call on failure to
4811 * splash.cc: Run d2u.
4812 (SplashPage::OnInit): Set the font for the title.
4813 * splash.h: Run d2u.
4815 * threebar.cc: Run d2u.
4816 * threebar.h: Run d2u.
4818 * window.h: Run d2u.
4819 (Window::IsButtonChecked): New member function declaration.
4820 (Window::OnMessageCmd): New member function.
4821 (Window::SetDlgItemFont): New member function declaration.
4822 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
4824 * window.cc: Run d2u.
4825 (Window::IsButtonChecked): New member function definition.
4826 (Window::SetDlgItemFont): New member function definition.
4827 (Window::Window): Add initialization for FontCounter.
4828 (Window::~Window): Delete any fonts we created.
4830 * geturl.cc: Run d2u.
4831 (progress): Remove the "3" field width from the "%3d"
4832 percent-complete format indicator. Causes line to not start at
4833 beginning of text box, and does little to help with "jumping", since
4834 the "bytes downloaded so far" field is variable-width anyway. Change
4835 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
4836 painfully slow connections, or temporary slowdowns in faster
4837 connections should such more-instantaneous functionality become
4841 (NetPage::OnMessageCmd): New member function declaration.
4842 (NetPage::CheckIfEnableNext): New member function declaration.
4844 (NetPage::OnMessageCmd): New member function definition.
4845 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
4846 (check_if_enable_next): Remove.
4847 (NetPage::CheckIfEnableNext): New member function, subsumes
4848 check_if_enable_next.
4849 (propsheet.h): Add include.
4850 (NetPage::Init): Add call to CheckIfEnableNext.
4851 (load_dialog): Remove call to check_if_enable_next.
4852 (NetPage::Create): Call single-template-ID-parameter overload of
4853 PropertyPage::Create instead of three-parameter one.
4855 * Makefile.in (OBJS): Remove other.o.
4856 * other.cc: Remove file.
4858 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
4860 * README: Update TODO's.
4861 * choose.cc (set_existence): Delete non installed packages with no
4863 (fill_missing_category): Fix an off-by-one error.
4864 (default_trust): Ditto. Also delete any unused categories.
4865 (view::init_headers): Fix an off-by-one error.
4866 (set_view_mode): Ditto.
4867 (set_view_mode): Ditto.
4868 (create_listview): Ditto.
4869 (dialog_cmd): Ditto.
4871 * io_stream.cc: Indent.
4872 * io_stream.h: Ditto.
4873 * package_db.cc: Ditto.
4874 * package_meta.h: Const correctness for SDesc ();
4875 * proppage.cc: Run d2u and indent.
4876 * propsheet.cc: Run d2u and indent.
4877 * window.cc: Run d2u and indent.
4878 * window.h: Run d2u and indent.
4880 2001-12-28 Christopher Faylor <cgf@redhat.com>
4882 * Makefile.in (iniparse.o): Accommodate newer bisons.
4884 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
4886 * window.h (Window): New file, new class.
4887 * window.cc (Window): New file, new class.
4889 * threebar.h (ThreeBarProgressPage): New file, new class.
4890 * threebar.cc (ThreeBarProgressPage): New file, new class.
4892 * splash.h (SplashPage): New file, new class.
4893 * splash.cc (SplashPage): Replace file with implementation of new
4896 * source.h (SourcePage): New file, new class.
4897 * source.cc: Run indent.
4898 (SourcePage): Add class implementation to this file.
4899 (do_source): Remove, functionality subsumed by SourcePage::Create()
4900 and SourcePage::OnDeactivate().
4901 (dialog_proc): Remove, functionality subsumed by
4902 SourcePage::OnActivate().
4904 * site.h: Run indent.
4905 (SitePage): Add class declaration.
4906 * site.cc: Run indent.
4907 (SitePage): Add class implementation.
4908 (do_download_site_info_thread): New function.
4909 (context): New var. Context info for do_download_site_info_thread().
4910 (do_download_site_info): New function.
4911 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
4912 (SitePage::OnBack): SitePage class implementation..
4913 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
4914 by SitePage members.
4915 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
4917 (do_site): Remove, now handled by do_download_site_info_thread() and
4918 SitePage::OnNext functionality.
4919 (get_site_list): Remove dismiss_url_status_dialog() call.
4921 * root.h (RootPage): New file, new class.
4922 * root.cc: Run indent.
4923 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
4924 (dialog_proc): Remove.
4926 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
4927 (RootPage::OnInit): New member function. Move get_root_dir() logic to
4928 here from do_root().
4929 (RootPage::Create): New member function.
4930 (RootPage::OnNext): New member function. Move IDOK logic from
4931 dialog_cmd() to here.
4932 (RootPage::OnBack): New member function.
4934 * propsheet.h (PropSheet): New file, new class.
4935 * propsheet.cc (PropSheet): New file, new class.
4937 * proppage.h (PropertyPage): New file, new class.
4938 * proppage.cc (PropertyPage): New file, new class.
4940 * postinstall.cc (do_postinstall): Add owner parameter.
4942 * other.cc (do_other): Add owner parameter.
4944 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
4945 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
4947 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
4950 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
4951 get_auth(), get_proxy_auth().
4953 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
4954 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
4955 NetIO::get_ftp_auth)
4956 (auth_common): Add owner param. Pass owner param to DialogBox.
4957 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
4958 owner param to auth_common().
4960 * net.h (NetPage): New file, new class.
4961 * net.cc: Run indent.
4962 (net.h, threebar.h): Add includes.
4963 (Progress): Add extern.
4964 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
4965 property sheet logic. Saved temporarily for reference.
4966 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
4967 NetPage::OnNext, NetPage::OnBack):
4968 New implementation of NetPage class members.
4970 (dialog_proc): Remove.
4972 * msg.h (fatal, note, yesno): Add owner param.
4973 * msg.c (fatal, note, yesno, mbox): Add owner param.
4974 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
4975 now that we have a parent.
4977 * main.cc: Run indent.
4978 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
4979 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
4981 (root_dialog_proc): extern into this file.
4982 (Progress): Progress dialog defined here, used in several other files.
4983 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
4984 Site, Chooser, Desktop pages and MainWindow sheet. Call
4985 InitCommonControls() to make sure Windows is set up for our use of
4986 property sheets. Add pages to sheet.
4987 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
4988 now handled by the PropSheet class.
4989 (root.h): Add include.
4991 * log.cc (log_save): Pass NULL parent to fatal().
4992 (exit_setup): Pass NULL parent to note().
4994 * localdir.h (LocalDirPage): New file, new class.
4995 * localdir.cc: Run indent.
4996 (localdir.h): New include.
4997 (threebar.h): New include.
4998 (Progress): extern into this file.
4999 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
5000 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
5002 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
5003 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
5004 (do_local_dir): Remove.
5005 (dialog_proc): Remove.
5006 (cwd): Remove, not used by anything.
5008 * install.cc: Run indent.
5009 (process.h, threebar.h): New includes.
5010 (Progress): extern into this file.
5011 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
5012 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
5013 ThreeBarProgressPage.
5014 (dialog_cmd, dialog_proc, dialog): Removed, handled in
5015 ThreeBarProgressPage.
5016 (init_dialog): Remove all mention of the above ins_* handles. Now
5017 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
5018 ThreeBarProgressPage instance Progress directly.
5019 (progress): Alter bar update logic to call ThreeBarProgressPage
5020 instance Progress directly.
5021 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
5022 instance Progress directly.
5023 (install_one_source): Alter SetWindowText()s to call
5024 ThreeBarProgressPage
5025 instance Progress directly. Pass NULL parent to note().
5026 (do_install_thread): Rename from do_install(), added owner param.
5027 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
5029 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
5030 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
5032 (do_install_reflector): New function.
5033 (do_install): New function.
5035 * ini.cc (process.h, threebar.h): New includes.
5036 (Progress): externed into this file.
5037 (find_routine): Pass NULL parent to note().
5038 (do_local_ini): Add owner param.
5039 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
5040 and note(). Remove call to dismiss_url_status_dialog().
5041 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
5042 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
5043 to IDD_CHOOSER on exit.
5044 (do_ini_thread_reflector): New function.
5045 (context): New var. Context for do_ini_thread.
5046 (do_ini): New function.
5048 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
5050 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
5052 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
5054 (threebar.h): New include.
5055 (Progress): externed into this file.
5056 (dialog_cmd, dialog_proc, dialog): Removed, handled by
5057 ThreeBarProgressPage now.
5058 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
5060 and bar setting SendMessage()s to call ThreeBarProgressPage instance
5061 Progress directly. Remove "one bar only" logic, this is now handled
5062 explicitly in the ThreeBarProgressPage class.
5063 (progress): Altered bar and text update logic to call
5064 ThreeBarProgressPage instance Progress directly. Changed kbps
5065 calculation to floating point and now print out a single decimal
5067 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
5068 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
5069 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
5070 update logic to call ThreeBarProgressPage instance Progress directly.
5071 (dismiss_url_status_dialog): Remove.
5073 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
5076 * download.cc: Run indent.
5077 (process.h, threebar.h): New includes.
5078 (Progress): externed into this file.
5079 (download_one): Add owner param. Pass it to get_url_to_file().
5080 (do_download_thread): Renamed from do_download. Add owner param. When
5081 calculating total_download_bytes, take binpicked and srcpicked into
5082 account. Remove call to dismiss_url_status_dialog(), no longer needed.
5083 Pass owner handle to download_one() and yesno().
5084 (do_download_reflector, do_download): New functions.
5085 (context): New var. Context for do_download_thread().
5087 * dialog.h (D(x)): Add owner param.
5089 * desktop.h (DesktopSetupPage): New file, new class.
5090 * desktop.cc: Run indent.
5091 (desktop.h): Add include.
5092 (dialog_proc, do_desktop): Remove, now handled in
5093 DesktopSetupPage::OnInit().
5094 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
5095 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
5097 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
5098 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
5099 of DesktopSetupPage.
5101 * cistring.h: New file, new class.
5102 * cistring.cc: New file, new class.
5104 * choose.h: Run indent.
5105 (Chooser): New class declaration.
5106 * choose.cc: Run indent.
5107 (do_choose): Add owner param. Pass it to DialogBox() and
5109 (Chooser): New class implementation.
5111 * res.rc (IDS_VERSION_INFO): New string.
5112 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
5113 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
5114 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
5116 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
5117 TAB control navigation etc. Give the controls a reasonable tab order.
5118 Grouped radio buttons. Something's still not right, can't tab away
5119 from back/next/cancel group reliably.
5120 * resource.h (IDD_CHOOSER): New dialog ID.
5122 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
5123 threebar.o, and window.o.
5125 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
5127 * choose.cc (listview_proc): Update the scrollbar when the headers are
5129 (pick_pkg_line::paint): Clip columns to prevent overlap.
5131 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
5133 * Makefile.in: Add libcomctl32.a for setup.exe.
5134 * archive.h (archive): Prevent non-child direct creation of the class.
5135 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and
5137 * choose.cc: Include commctrl for the choose header.
5138 (NEW_COL_SIZE_SLOP): Define without magic numbers.
5139 (pkgtrustp): Convert to function.
5140 (set_action): Remove.
5141 (add_required, fill_missing_category,default_trust): Use list syntax for
5144 (choose_caption): Remove.
5145 (topbucket::paint): New method.
5146 (topbucket::empty): Ditto.
5147 (topbucket::click): Ditto.
5148 (topbucket::~topbucket): Ditto.
5149 (paint): Remove i,ii and p as they are obsolete.
5150 Remove header drawing code.
5151 Use new chooser method to paint the chooser.
5152 Use new chooser itemcount method.
5153 (scroll_common): Rename to view::scroll.
5154 Scroll the header window separately.
5155 (list_vscroll, list_hscroll, list_click): Update for new chooser
5157 (listview_proc): Look for header messages.
5158 (note_width): Accept stringless calls.
5159 (pick_line::set_line): Remove.
5160 (pick_line::paint): Remove.
5161 (pick_pkg_line::paint): Paint this one line, using the header column
5163 (pick_category_line::paint): Paint this category, and anything in the
5165 (pick_line::click): Remove.
5166 (pick_pkg_line::click): Handle a click.
5167 (pick_category_line::click): Handle a click.
5168 (_view): Rename all to view.
5169 (view::view): Initialise the control contents.
5170 (view::set_headers): Work with the header control.
5171 (view::init_headers): Use list syntax for package list.
5172 Rearrange the width logic a little.
5173 (view::insert_pkg): Update to use the hierarchy.
5174 (view::insert_category): Ditto.
5175 (view::insert_at, view::insert_under): Remove.
5176 (view::clear_view): Update to use the hierarchy.
5177 (view::click): Update to use the hierarchy.
5178 (set_view_mode): Use list syntax for package list.
5179 Update for new chooser methods.
5180 (DoInsertItem): New helper function. (Needs a home somewhere).
5181 (create_listview): Remove choose control code and use the constructor
5183 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
5184 * choose.h: Include newly required headers list and package_meta.
5185 (_voew): Rename to view.
5186 (pick_line): Convert to an ABC.
5187 (pick_pkg_line): New class.
5188 (pick_catgory_line): New class.
5189 (topbucket): New class.
5190 (view::scroll): New method created from listview_scroll function.
5191 * desktop.cc (make_passwd_group): Use list syntax for package list.
5192 * download.cc (do_download): Use list syntax for package list.
5193 * fromcwd.cc (found_file): Use list syntax for package list.
5194 * iniparse.y (pacakges): Use list syntax for package list.
5195 * install.cc (uninstall_one): Use list syntax for package list.
5196 (do_install): Use list syntax for package list.
5197 * io_stream.h (io_stream): Prevent non-child direct creation of the
5199 Prevent inaccurate synthetic copy and assignment.
5200 * list.h: Include required header stdlib.
5201 Work on const correctness.
5202 * package_db.cc (packagedb::getpackagebyname): Remove.
5203 (packagedb::packagedb): Remove custom list code, and make db a local.
5204 (packagedb::getfirstpackage): Remove.
5205 (packagedb::getnextpackage): Remove.
5206 (packagedb::addpackage): Remove.
5207 (flush): Remove custom list code.
5208 (packagedb::registerpackage): Remove.
5209 (packagedb::packages): New static member.
5210 (packagedb::task): New static member.
5211 * package_db.h (PackageDBActions): New enum.
5212 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
5213 addpackage, registerpackage, packages, packagecount, curr_package, db.
5215 * pacakge_meta.cc: Include package_db.h.
5216 (packagemeta::action_caption): New method.
5217 (packagemeta::set_action): New method.
5218 * package_meta.h (CategoryPackage): Initialise key.
5219 (packagemeta): Initialise key.
5220 Add set_action and action_caption methods.
5221 Prevent inaccurate synthetic copy and assignment.
5222 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
5223 * source.cc: Include package_db for db manipulation.
5224 (save_dialog): Set the db task.
5225 * win32.h: Tell the w32 include headers what IE version to
5228 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
5230 * README: Wishlist updates.
5232 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
5234 * package_db.cc (getnextpackage): Don't overrun the array.
5236 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
5238 * Makefile.in (OBJS): Add setup_version.o.
5239 (version.c): Rename to setup_version.
5240 * choose.cc (set_action): Prevent NULL pointer dereference.
5241 (package_sort): Remove.
5242 * fromcwd.cc (canonicalize_version): Moved to version.cc.
5243 (check_ini): New function for use with find to see if there is a cached
5245 (do_fromcwd): Check for a cached setup.ini from any mirror site.
5246 * ini.cc (find_routine): New function, for finding cached setup.ini's.
5247 (do_local_ini): New function, drives parsing of local ini's.
5248 (do_remote_ini): New function, drives parsing and caching of remote
5250 (do_ini): Move guts to do_remote_ini and do_local_ini.
5251 * list.h (removebyindex): New method.
5252 * other.cc (save_dialog): Use new site_list and all_site_list to add the
5253 new site to the site picklist.
5254 (dialog_cmd): Only save the dialog when exiting the dialog.
5255 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
5256 * site.cc (site_list_type): Move to site.h
5257 (site_list): New global, sites chosen by the user.
5258 (all_site_list): New global, all potential sites.
5259 (site_list_type::init): New method, parses a mirror.lst URL string into
5260 a site_list_type object.
5261 (site_list_type::site_list_type): New method.
5262 (check_if_enable_next): Examine the control, not a local variable.
5263 (load_dialog): Select all the user chosen sites by default.
5264 (save_dialog): Adjust for multiple selection semantics.
5265 (save_site_url): Save all user chosen sites.
5266 (dialog_cmd): Don't save the dialog when the listbox recieves a message
5268 Remove obsolete other_url reference.
5269 (dialog_proc): Use all_site_list instead of site_list.
5270 (site_sort): Remove.
5271 (get_site_list): Remove malloc use - use list template instead.
5272 Move site_list_type initialisation to site_list_type::init().
5273 (get_initial_list_idx): Renamed to ...
5274 (get_saved_sites): this. Also read in multiple sites to the site_list.
5275 (do_site): Use all_site_list not site_list.
5276 Log all chosen sites.
5277 * site.h: New file, defines site related class, functions and variables.
5278 * state.h: Add comment about use of state.h
5279 (mirror_site): Remove.
5280 (other_url): Remove.
5281 (MIRROR_SITE): Remove.
5282 * version.cc: New file, for version-handling and related functions.
5284 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
5286 * Makefile.in: Add filemanip.o to setup.
5287 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
5288 * archive_tar.h (archive_tar_file): Implement get_size virtual.
5289 (archive_tar): Ditto.
5290 * choose.cc (set_action): Use [] operator instead of getnth - its more
5293 (_view::init_headers): Ditto.
5294 (_view::insert_pkg): Ditto.
5295 (set_view_mode): Ditto.
5298 (base): Moved to filemanip.cc.
5299 (find_tar_ext): Ditto.
5300 (parse_filename): Ditto.
5301 (_Info::_Info): Remove.
5302 * compress_bz.h (compress_bz): Implement get_size virtual.
5303 * compress_gz.h (compress_gz): Implement get_size virtual.
5304 * cygpackage.cc (cygpackage::destroy): Use array delete for char *
5306 * download.cc (get_file_size): Move to filemanip.cc.
5307 (check_for_cached): Use [] operator instead of getnth - its more
5309 (download_one): Ditto.
5310 * filemanip.cc: New file.
5311 * geturl.cc (init_dialog): Make url a pointer to const as it is not
5313 (get_url_to_membuf): New function - contains get_url_to_string worker
5315 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
5316 * geturl.h: Declare new prototype.
5317 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
5318 Tidy up the error code a little.
5319 * ini.h: Remove __cplusplus protection for ini_init.
5321 * inilex.l: Remove old globals.
5322 (ini_init): Use an io_stream for getting the characters.
5323 (ini_getchar): Ditto.
5324 * iniparse.y: Declare yylex as a C++ function.
5325 (add_correct_version): Use [] operator instead of getnth - its more
5327 * io_stream.cc (io_stream::move_copy): Use the copy method.
5328 (io_stream::copy): New method to simply copy from one stream to another.
5329 * io_stream.h (io_stream): New static method copy, and virtual method
5331 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
5332 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
5333 * io_stream_file.cc (io_stream_file::get_size): Implement this.
5334 * io_stream_file.h (io_stream_file::get_size): Declare this.
5335 * io_stream_memory.h: Include errno as it's neded to parse the header.
5336 (io_stream_memory::get_size): Implement this.
5337 (io_stream_memory::st_size): Delete this.
5338 * list.h: Change getnth into the [] operator.
5339 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being
5341 (NetIO::set_url): Ditto.
5342 (NetIO::open): Ditto.
5343 * netio.h: As for netio.cc.
5344 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect
5345 Purl not being modified.
5346 * nio-file.h: Ditto.
5347 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
5348 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
5349 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
5350 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
5351 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
5352 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
5353 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
5354 * package_source.cc (packagesource::set_canonical): Ditto.
5355 (packagesource::set_cached): Ditto.
5356 * package_source.h (site::~site): Ditto.
5357 * site.cc: Change site_list_type to a class, and search and replace
5358 sort_key to key globally.
5360 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
5362 * package_source.cc (packagesource::set_canonical): Filename was out by
5365 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
5367 * Makefile.in (OBJS): Remove category_list - it's not needed.
5368 * README: More wishlist updates.
5369 * category.cc (Category::Category): Initialise new members.
5370 (Categorycmp): New function.
5371 * category.h (Category): New member key for template use.
5372 * category_list.cc: Remove.
5373 * category_list.h: Remove.
5374 (Categorycmp): New function prototype.
5375 * choose.cc: Remove category_list - not needed.
5376 (set_action): Only show the 'source' option when the source is actually
5378 (add_required): Fix recursion limiter to 5.
5379 (fill_missing_category): Use list access.
5380 (default_trust): Ditto.
5381 (pick_line::paint): Ditto.
5382 (_view::init_headers): Ditto.
5383 (_view::insert_pkg): Ditto.
5384 (_view::insert_category): Ditto.
5385 (_view::click): Ditto.
5386 (set_view_mode): Ditto.
5388 * cygpackage.h: Remove category_list - not needed.
5389 * geturl.cc (get_url_to_string): Fix null byte insertion.
5390 * inipatse.y: Remove category_list - not needed.
5391 (categories): Use list access.
5392 * package_db.cc: Ditto.
5393 * package_db.h: Remove category_list - not needed.
5394 (packagedb): Use the list template for categories.
5395 * package_meta.cc (add_category): Ditto.
5396 * package_meta.h (CategoryPackage): Link to the category as well.
5397 (packagemeta): Use a list of CategoryPackages instead of Categories
5398 for more memory efficient cross-referencing.
5400 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
5402 * package_db.cc (packagedb::flush): Write a canonical version for all
5403 packages irrespective of the media they were installed from.
5405 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
5407 * Makefile.in (OBJS): Add package_source and rfc1738.
5408 * README: Wishlist update.
5409 * category_list.cc (register_category): Use references.
5410 * category_list.h (CategoryList): Ditto.
5411 * choose.cc (isinstalled): Remove.
5412 (pkgtrustp): New macro.
5413 (set_action): Use packagemeta.
5414 (add_required): Ditto.
5415 (choose_caption): Example package to choose caption, rather than state
5417 (check_existence): Remove.
5418 (set_existence): Remove old code.
5419 (fill_missing_category): Use packagemeta.
5420 (keep_or_skip): Remove.
5421 (default_trust): Use packagemeta and set trust values directly.
5422 (pick_line::set_line): Use packagemeta.
5423 (_view::insert_pkg): Ditto.
5424 (_view::insert_category): Ditto.
5425 (_view::click): Ditto.
5426 (set_view_mode): Ditto. Also remove "exclude" code.
5427 (create_listview): Use packagemeta.
5428 (dialog_cmd): Ditto.
5429 (getpkgbyname): Remove
5430 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
5431 (read_installed_db): Remove.
5432 (package_sort): Use packagemeta.
5433 (do_choose): Use packagemeta. Don't sort the packages - the db does
5435 * choose.h: Use packagemeta.
5436 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
5437 (cygpackage::cygpackage): Ditto.
5438 (cygpackage::set_canonical_version): Copy the passed string.
5439 (cygpackage::~cygpackage): Move cleanup code to destroy().
5440 (cygpackage::destroy): New function.
5441 (cygpackage::getfirstfile): Use a separate buffer.
5442 (cygpackage::getnextfile): Ditto.
5443 (cygpackage::Canonical_version): New function.
5444 (cygpackage::set_sdesc): Ditto.
5445 (cygpackage::set_ldesc): Ditto.
5446 * cygpackage.h (cygpackage::Canonical_version): New method.
5447 (cygpackage::set_sdesc): New method.
5448 (cygpackage::set_ldesc): New method.
5449 (cygpackage::SDesc): New method.
5450 (cygpackage::LDesc): New method.
5451 (cygpackage::set_canonical_version): New method.
5452 * desktop.cc: Include packagedb headers.
5453 (make_password_group): Use packagemeta.
5454 * download.cc: Include packagedb headers.
5455 (check_for_cached): New method to find any cached file and fill out the
5457 (download_one): Take a packagesource, support multiple mirrors.
5458 (do_download): Use packagemeta.
5459 * from cwd.cc: Include packagedb headers.
5460 (found_file): Use packagemeta.
5461 * ini.cc (do_ini): Beginning of multiple-mirror support.
5462 * ini.h (CategoryPackage): Remove.
5463 (Dependency): Remove.
5465 (new_package,getpkgbyname,getpackagecategorybyname,add_category):
5467 * inilex.l: Support multiple mirrors.
5468 * iniparse.y: Include packagedb headers.
5469 (parser): Use packagemeta.
5470 (new_package): Remove.
5471 (add_correct_version): New function.
5472 (new_requirement): Remove.
5473 (add_category): Remove.
5474 * install.cc (uninstall_one): Use packagemeta.
5475 (install_one_source): New function.
5476 (install_one): Use packagemeta.
5477 (do_install): Use packagemeta.
5478 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
5479 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the
5480 file after setting the mtime, it makes no sense, and results in 0 length
5482 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
5483 * list.h: New file, template class for a form of list.
5484 * package_db.cc (packagedb::registerpackage): New function.
5485 * package_db.h (packagedb::npackages ()): New method.
5486 * package_meta.cc (packagemeta::add_version): Use list template.
5487 (packagemeta::set_installed): Ditto.
5488 (packagemeta::add_category): New method.
5489 * package_meta.h: Include necessary headers to parse the class.
5490 (CategoryPackage): New class.
5491 (packagemeta): Initialise all members.
5492 (packagemeta::SDesc): New method.
5493 (packagemeta::Categories): New method.
5494 (packagemeta::add_category): Ditto.
5495 (packagemeta::versions): Change to be a list instance.
5496 * package_source.cc (packagesource::set_canonical): New method.
5497 (packagesource::set_cached): New method.
5498 * package_source.h: Include necessary headers to parse the class.
5500 (packagesource::packagesource): Initialize all members.
5501 (packagesource): Make this class non-abstract.
5502 * package_version.cc (packageversion::packageversion): New method.
5503 * package_version.h (Dependency): New class.
5504 (packageversion::Canonical_vesion): New method.
5505 (packageversion::SDesc): New method.
5506 (packageversion::LDesc): New method.
5507 (packageversion::new_requirement): Ditto.
5508 (packageversion::srcpicked, binpicked): What to install.
5509 (packageversion::src, bin): Installation source data.
5510 * rfc1738.cc: New file. Escapes special characters in URL's.
5513 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
5515 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
5516 SimpleSocket::gets() returns a zero-length string, so that we
5517 don't end up eating the entire stream thinking it's all header info.
5519 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
5521 * install.cc (badrename): Remove.
5522 (do_install): Use packagedb flush method to write
5523 /etc/setup/installed.db.
5524 * io_stream.cc (io_stream::move_copy): New method.
5525 (io_stream::move): New method.
5526 * io_stream.h (io_stream): New methods move and move_copy.
5527 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
5528 * io_stream_cygfile.h (io_stream_cygfile): New method move.
5529 * io_stream_file.cc (io_stream_file::move): New method.
5530 * io_stream_file.h (io_stream_file): New method move.
5531 * package_db.cc (packagedb::flush): New method.
5532 * package_db.h (packagedb): New method flush.
5534 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
5536 * Makefile.in (OBJS): Add package_version.
5537 * ategory.cc (Category::Category): Update constructors.
5538 * category_list.cc (CategoryList::register_category): Insert correctly.
5539 * choose.cc: Include package_version.h, not package.h.
5540 * cygpackage.cc: Ditto.
5541 (cygpackage::uninstall): New method.
5542 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
5543 New method uninstall.
5544 * hash.cc (add, has, enumerate): Change prototype to be accurate.
5545 * hash.h (hash): Change prototypes to be accurate.
5546 * ini.h (_Info): New parameterless constructor.
5547 (CategoryPackage): New constructor.
5549 * install.cc: Don't include unneeded headers.
5550 Include package database headers.
5551 (hash::add_subdirs): Remove.
5552 (uninstall_one): Use packagemeta->uninstall to perform the
5553 uninstallation. Don't uninstall source packages.
5554 (do_install): Just can uninstall_one once as we ignore source packages
5555 now. Don't copy the installed.old database accross, instead iterate
5556 through the packagedb packages list and write the installed packages
5558 * package_db.cc: Include package_version.h, not package.h.
5559 (packagedb::packagedb): Never let db be undefined.
5560 Record the installation filename, so we can reconstruct installed.db.
5561 (packagedb::addpackage): Insert packages in alpha sorted order.
5562 (packagedb::categories): Initialise correctly.
5563 * package_meta.cc: Include win32 and mount headers as a workaround to
5564 current io_stream limitations. Include a TODO about that.
5565 (standard_dirs): New, from install.cc.
5566 (hash::add_subdirs): New, from install.cc.
5567 (packagemeta::set_installed): Rename genericpackage to packageversion.
5568 (packagemeta::uninstall): New method.
5569 * package_meta.h: Rename genericpackage to packageversion.
5570 (packagemeta): Update constructor.
5571 (add_version, set_installed): Rename genericpackage to packageversion.
5572 (uninstall): New method.
5573 (installed_from): New member.
5574 * package_source.cc: New file.
5575 * package_source.h: New file.
5576 * package_version.cc: New file.
5577 * package_version.h: New file.
5578 * package.cc: Removed.
5579 * package.h: Removed.
5581 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
5583 * Makefile.in (OBJS): Add category.o and category_list.o.
5584 * category.h: New file.
5585 * category.cc: New file.
5586 * category_list.h: New file.
5587 * category_list.cc: New file.
5588 * choose.cc: Include category headers.
5589 (fill_missing_category): Use package_db to access global categories.
5590 (_view::insert_pkg): Ditto.
5591 (_view::insert_category): Ditto.
5592 (set_view_mode): Ditto.
5593 (getcategorybyname): Remove.
5594 * cygpackage.h: Include category_list.h to parse this correctly.
5595 (cygpackage): New virtual &Categories.
5596 * ini.h (_CategoryPackage): More C to C++ conversion.
5598 (getcategorybyname): Remove.
5599 (register_category): Remove.
5600 * iniparse.y: Include package db and category headers.
5601 (categories): Use package_db to access global categories.
5603 (ncategories): Remove.
5604 (register_category): Remove.
5605 * package.h: New virtual &Categories.
5606 * package_db.cc (packagedb::packagedb): Don't read the installed db
5608 (packagedb::categories): Declare.
5609 * package_db.h (packagedb): New member categories for global categories
5612 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
5614 * choose.h: Don't include ini.h
5615 * ini.h: Allow pure c++ in the header file.
5617 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
5619 * install.cc (do_install): Write a version 2 installed.db file.
5620 * package_db.cc (packagedb::packagedb): Read version 1 and 2
5623 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
5625 * Makefile.in (OBJS): Add package abstraction objects.
5626 * choose.cc: Include package abstraction headers.
5627 (read_installed_db): Use packagedb class and ignore installed sources.
5628 * cygpackage.cc: New file.
5629 * cygpackage.h: New file.
5630 * filemanip.h (get_file_size): Use unixy types.
5631 * package.h: New file.
5632 * package.cc: New file.
5633 * package_db.cc: New file.
5634 * package_db.h: New file.
5635 * package_meta.cc: New file.
5636 * package_meta.h: New file.
5638 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
5640 * REAME: Updates to wishlist.
5642 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
5644 * README: Updated and added my list of wishlist and todo items.
5646 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
5648 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
5649 * archive_tar.cc (archive_tar::write): New prototype.
5650 (archive_tar::seek): New method.
5651 * archive.h (archive_tar_file): Update write() and add seek().
5652 (archive_tar): Ditto.
5653 * archive_tar_file.cc (archive_tar_file::write): New prototype.
5654 (archive_tar_file::seek): New method.
5655 * compress_bz.cc (compress_bz::write): New prototype.
5656 (compress_bz::seek): New function.
5657 * compress_bz.h (compress_bz): Update write() and add seek().
5658 * compress_gz.cc (compress_gz::write): New prototype.
5659 (compress_gz::seek): New function.
5660 * compress_gz.h (compress_gz): Update write() and add seek().
5661 * geturl.cc: Include io_stream headers.
5663 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
5664 * io_stream.h (io_stream_seek_t): New enum.
5665 (io_stream): Update write() and add seek().
5666 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
5667 (io_stream_cygfile::seek): New function.
5668 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add
5670 * io_stream_file.cc (io_stream_file::write): New prototype.
5671 (io_stream_file::seek): New function.
5672 * io_stream_file.h (io_stream_file): Update write() and add seek().
5674 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
5676 * localdir.cc: Add headers unistd.h and port.h.
5677 (save_local_dir): Expand search logic to include local directory for
5678 location of file last-cache.
5679 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
5680 (do_local_dir): Expand search logic to include local directory for file
5682 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
5683 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
5685 (do_source): Default to Install from Internet on first entry or
5686 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
5688 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
5690 * choose.cc (find_tar_ext): Only match at the end of the string.
5691 (getpkgbyname): Prevent NULL pointer dereference.
5693 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
5695 * Makefile.in (CFLAGS): Add warnings and -Werr.
5696 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter
5698 (OBJS): Add io_stream class' objects.
5699 (autoload.o): Use WARNONLY_FLAGS.
5701 (iniparse.o): Ditto.
5702 * archive.cc: New file.
5703 * archive.h: New file.
5704 * archive_tar.cc: New file.
5705 * archive_tar.h: New file.
5706 * archive_tar_file.cc: New file.
5707 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
5708 * choose.cc: Use io_stream.h, not mount.h.
5710 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an
5712 (read_installed_db): Use io_streams.
5713 * choose.h: Run indent.
5714 * compress.cc: New file.
5715 * compress.h: New file.
5716 * compress_bz.cc: New file.
5717 * compress_bz.h: New file.
5718 * compress_gz.cc: New file.
5719 * compress_gz.h: New file.
5720 * concat.cc: Run indent.
5721 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5722 * concat.h: Run indent.
5723 * desktop.cc: Run indent.
5724 Include mklink2.h rather than redefining by hand.
5725 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5726 (etc_profile): Fix compiler warning (deprecated conversion).
5727 (make_link): Fix compiler warning (deprecated conversion).
5728 Tidy up use of args variable - consolidate into argbuf.
5729 (start_menu): Fix compiler warning (deprecated conversion).
5730 (desktop_icon): Fix compiler warning (deprecated conversion).
5731 (make_etc_profile): Fix compiler warning (deprecated conversion).
5732 (uexists): Fix compiler warning (deprecated conversion).
5733 (check_desktop): Fix compiler warning (deprecated conversion).
5734 (check_startmenu): Fix compiler warning (deprecated conversion).
5735 * dialog.cc: Run indent.
5736 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5737 (fatal): Fix compiler warning (deprecated conversion).
5738 * dialog.h: Run indent.
5739 * diskfull.cc: Run indent.
5740 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5741 * download.cc: Run indent.
5742 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5743 (download_one): Fix compiler warning (signed vs unsigned comparison).
5744 * filemanip.h: Run indent.
5745 * find.cc: Run indent.
5746 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5747 (find): Fix compiler warning (deprecated conversion).
5748 * find.h: Run indent.
5749 * fromcwd.cc: Run indent.
5750 * geturl.cc: Run indent.
5751 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5752 (dialog_cmd): Return a value.
5753 (dialog_proc): Remove unused variables.
5755 (get_url_to_file): Fix compiler warning (deprecated conversion).
5756 * geturl.h: Run indent.
5757 * hash.cc: Run indent.
5758 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5759 * hash.h: Run indent.
5760 * ini.cc: Run indent.
5762 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5763 (do_ini): Use io_streams for local io.
5764 * ini.h: Run indent.
5765 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
5766 Fix compiler warning (brackets for truth assignment).
5767 * install.cc: Run indent.
5768 Fix compiler warning (/* in comment).
5770 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5771 (dialog_cmd): Return a value.
5772 (dialog_proc): Return a value.
5773 (start_tics): Deleted - was unused.
5774 (badrename): Fix compiler warnings (unused, deprecated conversion).
5775 (standard_dirs): Fix compiler warning (deprecated conversion).
5777 (uninstall_one): Convert to io_streams.
5778 (install_one): Convert to io_streams.
5779 (do_install): Convert to io_streans.
5780 Fix compiler warning (deprecated conversion).
5781 * io_stream.cc: New file.
5782 * io_stream.h: New file.
5783 * io_stream_cygfile.cc: New file.
5784 * io_stream_cygfile.h: New file.
5785 * io_stream_file.cc: New file.
5786 * io_stream_file.h: New file.
5787 * localdir.cc: Run indent.
5789 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5790 (get_root_dir_now): Remove.
5791 (save_local_dir): Convert to io_streams.
5792 (dialog_cmd): Return a value.
5793 (do_local_dir): Convert to io_streams.
5794 (log.cc): Run indent.
5795 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5796 (log): Fix compiler warning (deprecated conversion).
5797 (log_save): Fix compiler warning (deprecated conversion).
5798 * log.h: Run indent.
5799 (log): Fix compiler warning (deprecated conversion).
5800 (log_save): Fix compiler warning (deprecated conversion).
5801 * main.cc: Run indent.
5802 Don't include "netio.h".
5803 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5804 (netio_test): Remove.
5805 (sid_auth): Fix compiler warning (partially bracketed initialiser).
5806 (WinMain): Return a value.
5807 * mkdir.cc: Run indent.
5808 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5809 * mklink2.c: Run indent.
5810 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5811 (mkcygsymlink): New function.
5812 * mklink2.h: New file.
5813 * mount.cc: Run indent.
5814 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5815 (create_mount): Remove unused variables.
5816 (cygpath): Fix compiler warning (signed vs unsigned comparison).
5817 * mount.h: Run indent.
5818 * msg.cc: Run indent.
5819 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5820 (msg): Fix compiler warning (deprecated conversion).
5821 (mbox): Fix compiler warning (deprecated conversion).
5822 * msg.h: Run indent.
5823 (msg): Fix compiler warning (deprecated conversion).
5824 * net.cc: Run indent.
5825 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5826 (dialog_cmd): Return a value.
5827 * netio.cc: Run indent.
5828 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5829 (auth_cmd): Return a value.
5830 * netio.h: Run indent.
5831 * nio-file.cc: Run indent.
5832 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5833 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
5834 * nio-file.h: Run indent.
5835 * nio-ftp.cc: Run indent.
5836 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5837 * nio-ftp.h: Run indent.
5838 * nio-http.cc: Run indent.
5839 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5840 * nio-http.h: Run indent.
5841 * nio-ie5.cc: Run indent.
5842 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5843 * nio-ie5.h: Run indent.
5844 * other.cc: Run indent.
5845 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5846 (dialog_cmd): Return a value.
5847 * port.h: Run indent.
5848 * postinstall.cc: Run indent.
5849 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5850 (cmd): Fix compiler warning (deprecated conversion).
5851 (eun): Fix compiler warning (deprecated conversion).
5852 * root.cc: Run indent.
5853 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5854 * simpsock.cc: Run indent.
5855 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5856 * simpsock.h: Run indent.
5857 * site.cc: Run indent.
5859 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5860 (get_root_dir_now): Remove.
5861 (save_site_url): Convert to io_streams.
5862 (dialog_cmd): Return 0.
5863 (get_initial_list_idx): Convert to io_streans.
5864 * source.cc: Run indent.
5865 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5866 (check_if_enable_next): Remove.
5867 (load_dialog): Remove unused variables.
5868 (save_dialog): Ditto.
5869 (dialog_cmd): Return a value.
5870 * splash.cc: Return a value.
5871 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5872 (dialog_cmd): Return a value.
5873 * state.cc: Run indent.
5874 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5875 * state.h: Run indent.
5879 2001-11-12 Christopher Faylor <cgf@redhat.com>
5881 * desktop.cc (start_menu): Change start menu name to "Cygwin".
5882 (check_startmenu): Ditto.
5884 2001-11-11 Christopher Faylor <cgf@redhat.com>
5886 * choose.cc (parse_filename): Finish reorganization by correctly
5887 decrementing p in memmove.
5889 2001-11-11 Christopher Faylor <cgf@redhat.com>
5891 * choose.cc (parse_filename): Reorganize code to work around gcc
5892 optimization problem.
5894 2001-11-09 Gareth Pearce <tilps@hotmail.com>
5896 * choose.cc (set_action): Allow skip as an option for installed
5897 packages that have version number not listed in setup.ini.
5899 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
5901 * choose.cc (set_cation): Backout last change.
5902 (choose_caption): Ditto.
5904 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
5906 * ini.h (actions): Remove - transferred to choose.h.
5908 * choose.h: Protect class's from "C" compilers.
5909 (actions): New enum, from ini.h. This may not be the 'right' place
5910 but that place doesn't exist yet.
5911 (_views): New enum, from ini.h.
5912 * choose.cc (set_action): Handle installed packages with a version not
5914 (choose_caption): Ditto.
5915 * iniparse.y: Rearrange header order to handle new ini.h.
5917 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
5919 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
5920 (registry_category): Fix compiler warning (deprecated conversion).
5921 * iniparse.y (registry_category): Ditto.
5922 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated
5924 (add_requried): Remove unused variable.
5925 (choose_caption): Handle all enumeration values via a default.
5926 (paint): Fix compiler warnings (unused, deprecated conversion).
5927 (scroll_common): Fix compiler warnings (unused, signed vs unsigned
5929 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
5930 (note_width): Fix compiler warnings (deprecated conversion).
5931 (keep_or_skip): Fix compiler warnings (unused).
5932 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
5933 (set_view_mode): Fix compiler warnings (unused).
5934 (create_listview): Fix compiler warnings (unused, incorrect format,
5935 reaches end of function).
5936 (dialog_proc): Fix compiler warnings (unused).
5937 (read_installed_db): Fix compiler warnings (unused, deprecated
5939 * choose.h (_header): Fix compiler warnings (deprecated conversion).
5942 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
5944 * simpsock.h (SimpleSocket::invalidate): Declare new method.
5945 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
5946 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
5947 memory for buf in the constructor.
5948 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
5949 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
5950 (SimpleSocket::write): Check object consistency - return -1 on error.
5951 invalidate() the object on socket write error.
5952 (SimpleSocket::fill): Check object consistency - return -1 on error.
5953 invalidate() the object if socket read error is encountered and there
5954 is no more data available in the internal read buffer.
5955 Allocate memory for the internal read buffer.
5956 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
5957 during fill() and no more data is available in the internal read buffer.
5958 (SimpleSocket::read): Check object consistency - return -1 on error.
5959 invalidate() the object if socket read error is encountered.
5960 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
5961 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
5962 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
5963 (NetIO_FTP::read): Use NetIO_FTP::ok().
5964 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
5965 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
5967 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
5969 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated
5971 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated
5973 (SimpleSocket::printf): Ditto.
5974 (SimpleSocket::write): Ditto.
5975 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
5977 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated
5979 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
5980 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated
5983 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
5985 * geturl.cc (get_url_to_string): clean up memory leak
5986 (get_url_to_file): ditto
5988 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
5990 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
5991 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
5993 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
5995 * fromcwd.cc (found_file): Free() memory containing the version and
5996 filepath information for a given package, before replacing the pointers
5997 which reference this memory.
5999 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
6001 * fromcwd: Fix compiler warnings for cvsid.
6002 (canonicalize_version): Fix compilter warnings.
6003 (do_fromcwd): Ditto.
6004 * version.h: Fix compiler warnings for canonicalize_version.
6006 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
6008 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
6010 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
6012 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
6014 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
6016 * choose.cc (set_action): Correctly allow skip for any uninstalled
6019 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
6021 * choose.cc (default_trust): Change the "Required" forced install
6024 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
6026 * choose.cc: Ran indent.
6027 (set_action): When the requested trust level is missing and the level
6028 was not user requested, set the action to ACTION_SAME_CURR.
6030 2001-11-01 Christopher Faylor <cgf@redhat.com>
6032 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
6034 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
6036 * choose.cc (_view::init_headers): Resync with the paint logic.
6038 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
6040 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently
6043 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
6045 * choose.cc (default_trust): Autoset currently installed packages per
6046 the user's selection of prev/curr/exp.
6048 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
6050 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
6052 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
6054 * geturl.cc (is_showing): Remove.
6055 (is_local_install): New static variable. Controls whether the
6056 progress dialog and the supporting thread will be created.
6057 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32
6059 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
6060 This prevents the progress dialog to gain control over the
6061 application and fixes the "setup.exe going to background" problem.
6062 (progress): Use is_local_install.
6063 (get_url_to_string): Set is_local_install.
6064 (dismiss_url_status_dialog): Use is_local_install.
6065 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
6066 (init_dialog): Remove usage of SetForegroundWindow.
6067 This prevents the progress dialog to gain control over the
6068 application and fixes the "setup.exe going to background" problem.
6070 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
6072 * choose.cc (list_click): Change r to row for clarity.
6073 When we shrink the list below 1 page, scroll to the top of the list.
6074 (_view::click): Return the actual change for contractions.
6075 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32
6078 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
6080 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir
6082 * localdir.cc: Ran indent.
6083 (get_root_dir_now): New function.
6084 (save_local_dir): New function.
6085 (dialog_cmd): Use it and swap cygwin root selection and local dir
6087 (do_local_dir): If there is a saved local dir, read it in.
6088 * net.cc (dialog_cmd): Swap cygwin root selection and local dir
6090 * root.cc (dialog_cmd): Ditto.
6091 * source.cc (dialog_cmd): Ditto.
6093 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
6095 * choose.cc(list_vscroll): Return 0 as required by win32.
6096 (list_hscroll): Ditto.
6097 (list_click): Ditto.
6099 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
6103 * main.cc(WinMain): Use __argv to retrieve command line parameters.
6104 * Makefile,in: Remove argv.o.
6106 2001-11-01 Matt Hargett <matt@use.net>
6108 * geturl.cc (progress): Change int to unsigned int to eliminate
6110 * (get_url_to_string): Check for NULL pointer.
6111 * mount.cc (find2): Use free instead of delete for malloc'd
6113 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
6115 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
6117 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen]
6118 with neither a package nor a category. The lines[linen] bug was reported
6119 by Matt (matt@usa.net).
6120 (read_installed_db): Bugfix for testing whether a package has a source
6121 tarball. Reported by Matt (matt@usa.net).
6122 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid
6123 programmer confusion and lint errors. Reported by Matt (matt@usa.net).
6125 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
6127 * argv.cc: New file, converts arguments for -mwindows
6128 programs. (Simplified derivation from dcrt0.cc.)
6130 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
6131 Add mingw_getopt.o build rule.
6132 * main.cc(WinMain): Initialise argv and argc for use by getopt.
6134 2001-10-27 Christopher Faylor <cgf@redhat.com>
6136 * res.rc: Rearrange info on top line slightly.
6138 2001-10-27 Christopher Faylor <cgf@redhat.com>
6140 * desktop.cc (make_passwd_group): Move file creation earlier in the
6141 process to ensure that passwd-grp.bat reflects desired operation.
6143 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
6145 * postinstall.cc (each): Remove "*.done" file else rename will fail.
6147 2001-10-16 Christopher Faylor <cgf@redhat.com>
6149 * res.rc: Oops. Take 640x480 screen size into account.
6151 2001-10-16 Christopher Faylor <cgf@redhat.com>
6153 * res.rc: Enlarge chooser screen.
6155 2001-10-12 Christopher Faylor <cgf@redhat.com>
6157 * Makefile.in: Accomodate changes to w32api_include macro.
6159 2001-10-12 Christopher Faylor <cgf@redhat.com>
6161 * Makefile.in: Use correct flags for windres.
6163 2001-10-12 Christopher Faylor <cgf@redhat.com>
6165 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
6167 2001-10-12 Christopher Faylor <cgf@redhat.com>
6169 * choose.cc (pick_line::paint): Reorganize after botched patch.
6171 2001-10-12 Christopher Faylor <cgf@redhat.com>
6173 * choose.cc (pick_line::paint): Add missing declaration.
6175 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
6177 * choose.cc (pick_line::paint): Add package name to sdesc for display.
6179 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
6181 * choose.cc (_view::insert_pkg): Correctly exit loop.
6182 * iniparse.y (register_category): Always insert new categories.
6184 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
6186 * inilex.l (yylex): For comments, eat all characters up to, but not
6189 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
6191 * fromcwd.cc (found_file): Use correct package name when adding an
6192 unknown package rather than random stack garbage.
6194 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
6196 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
6198 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
6200 * desktop.cc (etc_profile): Leave environment variables untouched.
6202 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
6204 * autoload.c: Add dynamic load statements for NT/W2K
6205 advapi32 functions not available in 9x/ME.
6206 * main.cc (set_default_dacl): New function.
6207 (WinMain): Call `set_default_dacl' if running on NT/W2K.
6209 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
6211 * ini.h (_CategoryPackage): Change pkg field to pkgname for
6213 * choose.cc: Use pkgname field when referencing _CategoryPackage
6215 (fill_missing_category): Don't add excluded packages.
6216 (default_trust): Ditto.
6217 (_view::insert_pkg): Ditto.
6218 * iniparse.y (register_category): Use consistent variable name.
6220 2001-07-09 Egor Duda <deo@logos-m.ru>
6222 * choose.cc: Use system foreground color for text output.
6224 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
6226 * choose.cc (set_action): Use default trust for determining reinstall
6228 (default_trust): Set default trust.
6229 (pick_line::paint): Allow source selection when reinstalling or
6232 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
6234 * choose.cc (isinstalled): Modify to properly accomodate special case
6236 (set_action): Check downloaded components, not installed components if
6238 (set_existence): Always include full list of files when "download
6241 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
6243 * choose.cc (pick_line::paint): Properly display "na" field when no
6246 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
6248 * choose.cc (scan2): Ensure that older versions do not show up in
6251 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
6253 * choose.cc (set_action): Allow "Skip" action if trust != installed.
6254 * res.rc: Fix copyright.
6256 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
6258 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
6260 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
6262 * choose.cc: Restore some more changes from 2001-06-25, throughout.
6263 (paint): Wrap some excessively long lines.
6264 (pick_line::paint): Ditto. Move the arrow in the "Current" column
6265 right to where it belongs. Move the source checkbox slightly to the
6267 (do_choose): List categories and required packages in setup.log.full.
6269 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
6271 * choose.cc (scan2): Restore source scanning eliminated by previous
6274 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
6276 * ini.h (struct _Info): Add "derived" element.
6277 * choose.cc (scan2): Try to place unknown tar files into proper slot
6278 when package exists in setup.ini but tar file does not.
6280 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
6282 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
6283 (do_choose): Log the first category name.
6285 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
6287 *ini.h: Reapply 2001-06-25 changes.
6288 * choose.cc (add_required): Ditto. Default to "Keep" state if
6289 UNINSTALL and product is installed. Default to curr state if SKIP,
6291 (keep_or_skip): New function. Returns skip or keep state depending on
6292 installed state of package.
6293 (default_trust): Use keep_or_skip to set state.
6294 (_view::insert_pkg): Use calloc to allocate lines.
6295 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
6297 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
6299 * choose.cc: Remove globals full_list, headers, package_indexes and
6301 Add globals cat_headers, pkg_headers and chooser.
6302 (add_required): New function.
6303 (paint): Use the chooser for header details.
6304 Call into the chooser to paint each line.
6305 (list_click): Use new global variables.
6306 Call into the chooser to handle the click.
6307 Repaint the entire view if packages have been added or removed.
6308 (note_width): Get passed a headers struct rather than using a global
6310 (fill_missing_category): New function.
6311 (default_trust): Skip non-"Required" or "Misc" packages.
6312 (pick_line::set_line (Package *)): New function.
6313 (pick_line::set_line (Category *)): New function.
6314 (pick_line::paint): New function.
6315 (pick_line::click): New function.
6316 (_view::_view): New function.
6317 (_view::set_view_mode): New function.
6318 (_view::mode_caption): New function.
6319 (_view::set_headers): New function.
6320 (_view::init_header): New function.
6321 (_view::insert_pkg): New function.
6322 (_view::insert_category): New function.
6323 (_view::insert_at): New function.
6324 (_view::insert_under): New function.
6325 (_view::clear_view): New function.
6326 (viewsplusplus): New function.
6327 (_view::client): New function.
6328 (set_view_mode): Use new chooser functionality.
6329 (set_full_list): Use new global variables.
6330 (create_listview): Instantiate chooser.
6331 Remove all hardcoded headers[] code.
6332 (dialog_cmd): On trust changes, check dependencies.
6333 (getcategorybyname): New function.
6334 (getpackagecategorybyname): New function.
6335 (scan2): Use case-insensitive package comparison.
6336 (do_choose): Use fill_missing_category ().
6337 Show some category data.
6338 * ini.h: Protect against multiple inclusion.
6340 (_CategoryPackage): New struct.
6341 (_Category): New struct.
6342 (_Package): Change category to Category * from char *.
6343 (extern Category category): New global variable.
6344 (extern in ncategories): Ditto.
6345 (getcategorybyname): New prototype.
6346 (catpackagecategorybyname): New prototype.
6347 (register_category): New prototype.
6348 (add_category): New prototype.
6349 * iniparse.y: Parse multiple categories per package.
6350 (category): New global variable.
6351 (ncategories): New global variable.
6352 (new_package): Compare package against NULL, not 0.
6353 (new_requirement): Source formatting fix.
6354 (register_category): New function.
6355 (add_category): New function.
6356 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
6357 IDC_CHOOSE_VIEWCAPTION: New control.
6358 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
6359 IDC_CHOOSE_VIEWCAPTION: New control.
6360 Increment _APS_NEXT_CONTROL_VALUE.
6362 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
6364 * choose.cc (paint): Wrap excessively long lines.
6365 (list_click): Ditto.
6366 (create_listview): Ditto.
6367 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
6368 setup.log.full. Allow "Yes" for source exists in setup.log.full when
6369 installing from local directories.
6371 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
6373 * choose.cc (set_action): Only clear srcpicked when moving to next
6374 state. Allow source installation if it exists in the current "trust"
6375 state. Don't move to skip state when package is installed.
6376 (list_click): Don't allow source clicking when no source is available.
6377 (set_full_list): Display package when not is_full_action.
6378 * ini.h (is_full_action): Define.
6380 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
6382 * install.cc (check_for_old_cygwin): New function. First stab at
6383 checking for old cygwin versions.
6384 (do_install): Call check_for_old_cygwin if there were no errors during
6387 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
6389 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
6390 than zeroed "source" element.
6392 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
6394 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
6395 the highest available "hole" in the trust array.
6397 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
6399 * choose.cc (set_existence): Use pointer method for indexing in trust
6401 (create_listview): Ditto.
6402 (scan2): Ditto. Also, use consistent variable name for indexing into
6404 * ini.h (Package): Reorganize info array for easier scanning.
6406 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
6408 * choose.cc (isinstalled): Eliminate special download only test.
6409 (set_action): Don't move to next state if in ACTION_SAME range and not
6411 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
6413 (do_choose): Sort packages after all packages have been read.
6414 Accomodate the fact that first element in trust array is empty so that
6415 log files don't report the wrong trust value.
6416 * iniparse.y (new_package): Malloc space for package name or suffer
6419 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
6421 * ini.h (Dependency): New structure. Declare new function.
6422 * inilex.l (yylex): Detect new setup.ini options - category and
6424 * iniparse.y: Declare new setup.ini token values.
6425 (yyparse): Parse new token values.
6426 (new_requirement): New function.
6428 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
6430 * choose.cc (read_installed_db): Eliminate obsolete code.
6432 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
6434 * choose.cc (set_action): Set trust on "redo".
6435 (_Info::_Info): New constructor.
6436 (read_installed_db): Use new constructor. Use trusts type for
6438 * ini.h (struct _Info): Label struct, add constructor.
6439 (Package): Make installed_ix a type 'trusts.'
6440 * install.cc (uninstall_one): Unset any installed info for current
6442 (install_one): Allocate new Info struct for installed reflecting new
6444 (do_install): Don't output line to installed.db if package is being
6447 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
6449 * choose.cc (getpkgbyname): Use consistent method for scanning package
6452 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
6454 * choose.cc: Add some comments.
6455 (getpkgbyname): Use strcasecmp for comparisons.
6457 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
6459 * install.cc (do_install): Avoid checking for download action if
6460 package wasn't currently retrieved.
6462 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
6464 * choose.cc: Eliminate extra array throughout. Use element in package
6465 structure instead. Use pointers rather than array indexes where
6467 (set_action): New function to set next action based on current.
6468 (choose_caption): New function. Returns display caption.
6469 (check_existence): Change arguments. Use pointer to 'info' structure.
6470 (set_existence): Use pointer rather than array index.
6471 (default_trust): Use trusts enum for second argument.
6472 (set_full_list): Honor exclude element in package structure.
6473 (build_labels): Eliminate.
6474 (base): Make global. Use const char * argument.
6475 (get_package_version): Eliminate.
6476 (getpkgbyname): New function.
6477 (read_installed_db): Use parse_filename to get version info.
6478 * desktop.cc (make_passwd_group): Use getpkgbyname function.
6479 * download.cc (get_file_size): const argument.
6480 (do_download): Use is_download_action to determine when something
6481 should be downloaded.
6482 * filemanip.h: Add some functions.
6483 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
6484 * ini.h: Use enums for actions and trusts.
6485 (is_download_action): New macro.
6486 (is_upgrade_action): Ditto.
6487 (is_uninstall_action): Ditto.
6488 (struct Package): Add new fields.
6489 * inilex.l (yylex): Detect new setup.ini options.
6490 * iniparse.y: Declare new tokens.
6491 (yyparse): Detect exclude keyword. Fill out version field even if
6493 (new_package): Use greater granularity when allocating package array to
6494 avoid repeated calls to realloc.
6495 * install.cc (exists): const argument.
6496 (uninstall_one): Take pkg argument.
6497 (install_one): Ditto. Eliminate unneeded arguments which can be
6498 derived from package info.
6499 (do_install): Iterate over package array using a pointer. Use
6500 is_download_action to control when package should be downloaded.
6501 * tar.cc (tar_open): const argument.
6502 * tar.h: Refloect const argument.
6504 2001-05-31 Michael Chase mchase@ix.netcom.com
6506 * main.cc (WinMain): Add setup version to starting setup.log entry
6508 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
6510 * inilex.l: Add + to list of valid string characters.
6512 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
6514 * Makefile.in: Remove more stuff in the clean target.
6516 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
6518 * Makefile.in: Correctly generate iniparse.h.
6520 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
6522 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
6523 * geturl.h: Change declaration of `get_url_to_file' accordingly.
6524 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
6525 Set member `ftp_auth'.
6526 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
6527 to constructors of derived classes.
6528 (NetIO::get_ftp_auth): New method.
6529 * netio.h: Change class definition accordingly.
6530 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
6531 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
6532 Add code for ftp authentication retry.
6533 * nio-ftp.h: Change class definition accordingly.
6534 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
6535 Add code for ftp authentication retry in case of proxy connection.
6536 * nio-http.h: Change class definition accordingly.
6537 * res.rc: Add FTP authentication dialog.
6538 * resource.h: Add new constants used in res.rc.
6539 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
6541 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
6543 * res.rc (IDD_SPLASH): Add a copyright year.
6545 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
6547 * Makefile.in: Make iniparse.y produce a c++ file.
6548 * choose.cc (set_existence): Revert 2001-05-27 change.
6549 * ini.cc: Remove "C" from declaration of yyparse.
6550 * iniparse.y (yyparse): Fill out version field by default when a binary
6551 install is detected and no version has been set yet.
6552 * install.cc (do_install): Mount things earlier so that we can use
6553 proper mount table settings. Don't remove mounts since they are now
6555 * mount.cc (create_mount): Reread the mount table after establishing a
6557 (read_mounts): Explicitly clear root_here to allow multiple uses of
6558 this function. Ensure that there is no garbage in the table when we've
6559 exhausted all of the mounts in the registry.
6560 (cygpath): Accomodate ./ in path.
6562 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
6564 Use parse_filename method to parse filenames throughout. Use
6565 get_root_dir to retrieve the current root directory throughout. Set
6566 const in argument list, where appropriate, throughout.
6567 * choose.cc (set_existence): Detect case of uninstalled package with no
6569 (parse_filename): New function.
6570 * filemanip.h (fileparse): New structure.
6571 * mount.cc (read_mounts): Remember where we found the root mount.
6572 (set_root_dir): New function.
6573 (get_root_dir): Ditto.
6574 * mount.h: Declare new functions.
6575 * site.cc (get_root_dir_now): Renamed from get_root_dir.
6576 (save_site_url): Use new function name.
6577 (get_initial_list_idx): Ditto.
6579 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
6581 * choose.cc: Use a constant throughout to deal with chooser icon
6583 * res.rc (IDD_CHOOSE): Increase size of chooser box.
6585 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
6587 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
6588 use when Redownload or Sources Only selected.
6590 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
6592 Reformat file after botched patch formatting.
6593 * choose.cc (which_trust): Eliminate variable.
6594 (default_trust): Don't set which_trust.
6595 (do_choose): Use selected trust when reinstalling or installing source.
6597 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
6599 Change concat to cygpath throughout.
6600 Change map_filename to cygpath throughout.
6601 * concat.cc (vconcat): New function.
6602 (concat): Use vconcat.
6603 * concat.h: Reflect above.
6604 * install.cc (map_filename): Eliminate.
6605 (install_one): Free dest_file.
6606 * mount.cc (find2): Expect input key to be pointing to mount record.
6607 (in_table): New function.
6608 (is_admin): Move from root.cc.
6609 (read_mounts): New function.
6610 (path_prefix_p): New function.
6611 (cygpath): New function.
6612 * mount.h: Define new functions and structure.
6613 * root.cc (in_table): Move to mount.cc.
6614 (do_root): Call read_mounts to initialize root stuff and mount table.
6615 * site.cc (get_root_dir): Ditto.
6617 2001-05-09 Matt Hargett <matt@use.net>
6619 * Makefile.in: Remove *.rc from clean.
6621 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
6623 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
6624 TRUST_PREV which produced "0" versions.
6626 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
6628 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
6629 _APS_NEXT_CONTROL_VALUE to account for addition of
6630 IDC_CHOOSE_INST_TEXT.
6631 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
6632 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
6633 hot keys to select Prev, Curr, Exp.
6634 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
6635 define for LOOP_PACKAGES to include new actions ACTION_REDO and
6637 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
6638 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
6639 source Checkbox to use.
6640 (build_labels): Add logic to allow for selection of Source only
6641 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
6642 current version binary.
6643 (dialog_proc): Add conditional display for file selection prompt based
6644 on download vs install using IDC_CHOOSE_INST_TEXT.
6645 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
6646 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
6647 handle the instance where Source Download/Install was selected. Modify
6648 log file to store appropriate information regarding Action selected and
6649 the new actions that were added (I.E.: ACTION_REDO and
6651 * download.cc: Add include for <unistd.h> and "port.h".
6652 (download_one): Modify parameter list to include the selected action
6653 for the file to be downloaded. Modify size check against expected size
6654 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
6655 .tmp file to also remove the destination file if exists due to ability
6656 to redownload source and binary now.
6657 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
6658 calculation of Download Bytes. Modify to also use ACTION_REDO and
6659 ACTION_SRC_ONLY in determining files selected for download.
6660 * install.cc (uninstall_one): Add check to treat a Reinstall like an
6661 upgrade so current version will be uninstalled prior to reinstall.
6662 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
6663 uninstalling and installing binary and source packages.
6664 * desktop.cc (make_passwd_group): Modify logic to account for a Source
6665 only cygwin install when checking for cygwin to determine need for
6666 mkpasswd and mkgroup.
6668 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
6670 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
6671 Removed WS_DISABLED from "OK" buttons to accomodate default focus
6672 changes in net.cc and source.cc.
6673 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
6674 a default is selected.
6675 * winsup/cinstall/source.cc (dialog_proc): Ditto.
6676 (check_if_enable_next): Removed. No longer needed since a radio button
6677 will always be selected.
6678 (load_dialog): Removed call to check_if_enable_next.
6679 (dialog_cmd): Ditto. Also added default to switch.
6681 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
6683 * res.rc: Resize affected text.
6685 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
6687 * net.cc (do_net): Default to direct download.
6688 * res.rc: Move default selections to the top.
6690 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
6692 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
6693 Must now include <windows.h> and not the pieces.
6694 * choose.cc (create_listview): Clean up type mismatch problems.
6695 * dialog.h (NEXT(id)): Ditto.
6696 * geturl.cc (dialog): Ditto.
6697 * install.cc (dialog): Ditto.
6698 * splash.cc (load_dialog): Ditto.
6700 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
6702 * tar.cc (class gzbz): Define dummy virtual functions.
6704 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
6706 * Makefile.in: Add bz2 include/library support.
6707 * filemanip.h: New file.
6708 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
6710 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
6711 (read_installed_db): Ditto.
6713 * fromcwd.cc (found_file): Ditto.
6714 (do_fromcwd): Ditto.
6715 * tar.cc (class gzbz): New super class for uncompression support.
6716 (gz): New class for gzip support.
6717 (bz): New class for bzip2 support.
6718 (tar_open): Use gzbz class to control file opening.
6719 (tar_ftell): Ditto for returning position in file.
6720 (skip_file): Ditto for reading file.
6721 (tar_next_file): Ditto.
6722 (tar_read_file): Ditto.
6723 (tar_close): Ditto for close.
6725 * zlib/configure.in: Force NM substitution.
6727 * source.cc (do_source): Default to "Install from Internet".
6729 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
6731 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
6733 * choose.cc (list_click): Correct inability to select source code for
6735 (scan2): Modify to skip source tarballs when scanning disk for
6736 installable packages.
6738 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
6740 * install.cc: install sources into /usr/src instead
6741 of /, also include the sizes of source tarballs
6743 * download.cc: include sizes of source tarballs in
6744 total_download_bytes.
6746 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
6748 * download.cc (get_file_size): Remove `static'.
6750 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
6752 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
6754 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
6756 * choose.cc (paint): Modify message for nothing to download vs
6757 nothing to install/update based on installation method.
6758 (list_click): Modify to skip versions in selection process if
6759 installing from local directory and installation file does not exist.
6760 Also leaves Source Action set to N/A if the source file does not exist
6761 and installing from local directory.
6762 (check_existence): New method to check current existence of installation
6763 files based on selected installation method.
6764 (set_existence): New method to set the current existence of installation
6765 files based on selected installation method.
6766 (best_trust): Modify decision process for best trust to base decision on
6767 current trust selected (IE: Prev, Curr, or Test), existence of file and
6768 installation method selected.
6769 (default_trust): Add logic to capture the current trust level and the
6770 trust selected for the given package.
6771 (set_full_list): Expand decision criteria for displaying a package in
6772 the selection list to include file existence/non-existence and selected
6773 installation method.
6774 (build_labels): Modify criteria for label addition to include
6775 installation method and file existence/non-existence.
6776 (create_listview): Modify to establish package trust level for each
6777 package before setting up the display list. Also modification to set
6778 current trust button as the default.
6779 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
6780 a reset of the selection list in addition to setting the default trust.
6781 (get_package_version): New method to provide reusable code for
6782 determining the package version from the file name for a specified
6784 (scan2): Modify to use new method get_package_version and
6785 also enhance handling of the build for the structures package and
6787 (read_installed_db): Modify to use the new method
6788 get_package_version and also enhance handling of the build for the
6789 structures package and extra.
6790 (do_choose): Add additional initialization of package and extra
6791 structures. Modify to use read_installed_db all the time despite
6792 install method. Modify output to setup.log.full log file to increase
6793 readability by adding additional spacing, expanded code and available
6795 * ini.h: Add new fields install_exists, source_exists and
6796 partial_list_display to the structure definition for package.
6797 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
6798 pushbuttons by replacing with Radio Buttons thus allowing the
6799 operator to better determine which is selected.
6801 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
6803 * download.cc (do_download): Add new variables total_download_bytes and
6804 total_download_bytes_sofar for download progress meter. Add loop
6805 to accumulate the total bytes to download from the selected packages.
6806 * geturl.cc: Add state.h and diskfull.h to include list. Add new
6807 variables gw_iprogress, gw_pprogress, gw_progress_text,
6808 gw_pprogress_text, and gw_iprogress_text to allow for addition of
6809 total packages download progress meter and disk full percent
6810 progress meter. Add variables total_download_bytes and
6811 total_download_bytes_sofar for use by progress meters.
6812 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
6813 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
6814 allow for addition of total packages download progress meter and disk
6815 full percent progress meter.
6816 (init_dialog): Ditto.
6818 (get_url_to_file): Ditto.
6819 * geturl.h: Add external definition for total_download_bytes and
6820 total_download_bytes_sofar.
6821 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
6822 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
6823 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
6825 * resource.h: Add new fields for progress meters and text and update
6826 _APS_NEXT_CONTROL_VALUE.
6828 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
6830 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
6833 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
6835 * download.cc (download_one): Add missing parenthesis.
6837 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
6839 * download.cc (get_file_size): New function. Eliminates the need
6841 (download_one): Call `get_file_size' instead of `stat'. This
6842 workarounds a problem with mingw's `stat' call.
6844 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
6846 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
6847 This is to allow cinstall to build with 2.95.2-7 and to make the
6848 use of headers consistent.
6850 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
6852 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
6854 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
6856 * winsup/cinstall/res.rc: Added accelerators and improved focus
6859 2000-12-10 Egor Duda <deo@logos-m.ru>
6861 * choose.cc (paint): Use system background color for text output.
6863 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
6865 * Makefile.in: Use CXX for linking and for compiling .cc files.
6866 * configure.in: Find correct c++ compiler.
6867 * configure: Regenerate.
6869 2000-11-17 DJ Delorie <dj@redhat.com>
6871 * splash.cc (load_dialog): Make message more obvious.
6874 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
6876 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
6877 necessary for newer compilers.
6879 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
6881 * desktop.cc: Include "ini.h" and "version.h".
6882 (make_passwd_group): Skip the function on 9x/ME boxes when an
6883 older version of Cygwin has been installed which doesn't
6884 support mkpasswd/mkgroup on 9x/ME.
6885 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
6888 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
6890 * desktop.cc (make_passwd_group): Don't exit when started
6891 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
6893 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
6895 * install.cc (do_install): Add call to set_cygdrive_flags to sync
6897 * mount.cc (set_cygdrive_flags): New function.
6898 (get_cygdrive_flags): Ditto.
6899 (default_cygdrive): Ditto.
6900 (set_cygdrive_flags): Ditto.
6901 * mount.h: Add prototype for set_cygdrive_flags.
6903 2000-10-23 DJ Delorie <dj@redhat.com>
6905 * ini.h: add source actions
6906 * fromcwd.cc: check for available sources
6907 * res.rc: add checkbox bitmaps
6910 * choose.cc: add source column
6911 * download.cc: download sources if called for
6912 * install.cc: [un]install sources too
6914 2000-10-22 DJ Delorie <dj@redhat.com>
6916 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
6917 ignore it wrt full_list if there's already a version installed.
6918 (do_choose): Sort the list.
6919 (package_sort): New.
6921 2000-10-12 DJ Delorie <dj@redhat.com>
6923 * res.rc: Add more error strings.
6924 * resource.h: Ditto.
6925 * iniparse.y (new_package): re-initialize if needed.
6926 * download.cc (do_download): Keep track of errors; notify and
6928 * install.cc (do_install): Ditto.
6930 2000-10-05 DJ Delorie <dj@redhat.com>
6932 * Makefile.in: fix %.cc rule
6934 2000-10-04 DJ Delorie <dj@redhat.com>
6936 * desktop.cc: quote HOME and USER, don't . ./.profile
6938 * choose.cc (build_labels): don't include in partial list just
6939 because there's a *previous* version available.
6941 * install.cc (do_install): if installing from local directory with
6942 setup.ini and the file isn't found, look in "." also. Note errors.
6944 2000-10-02 DJ Delorie <dj@redhat.com>
6946 * ini.cc (do_ini): save setup.ini locally
6948 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
6950 * desktop.cc: quote escapes in prompt
6952 2000-10-02 Jason Tishler <jt@dothill.com>
6954 * root.cc (is_admin): New function.
6955 (read_mount_table): Check for administrative priviledges and set
6956 installation scope as appropriate.
6958 2000-09-28 DJ Delorie <dj@redhat.com>
6960 * nio-ftp.cc (ftp_line): handle continuations more robustly
6962 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
6964 * res.rc: increased the size of the site dialog (IDD_SITE) & the
6965 corresponding list box to provide for more URL's to be listed.
6966 Modified the position of the Back, Next and Cancel buttons to
6967 correspond to the new size of the dialog.
6969 2000-09-13 DJ Delorie <dj@redhat.com>
6971 * install.cc (do_install): update disk fullness once per package
6972 to improve performance
6974 * choose.cc (create_listview): call ReleaseDC
6976 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
6978 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
6979 returned, as it seems Samba 2.0.6+ returns this instead of
6980 ERROR_PATH_NOT_FOUND
6982 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
6984 * site.cc (get_initial_list_idx): Don't default to saved URL if it
6987 2000-09-07 DJ Delorie <dj@redhat.com>
6989 * splash.cc: use version.h, not local decl
6990 * res.rc: add "old version" message
6993 * fromcwd.cc (canonicalize_version): make global
6994 * iniparse.y: add setup-version support, fix bug in blank line
6997 * inilex.l: add [exp] as alias for [test], add setup-version
6998 * Makefile.in (version.c): add setup-version tag
7000 * desktop.cc (do_desktop): remove 1.1 version number
7001 (do_desktop_setup): ditto
7003 * ini.cc (do_ini): zero out package list just in case we redo it.
7005 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
7007 * choose.cc (list_click): Check for nindexes==0; if so, return.
7009 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
7011 * localdir.cc: new, local package directory selection dialog; cd
7012 into selected directory
7013 * Makefile.in (OBJS): add localdir.o
7014 * dialog.h: add prototype for do_local_dir
7015 * main.cc (WinMain): initialize local_dir to cwd; add call to
7017 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
7018 * source.cc (dialog_cmd): ditto
7019 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
7020 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
7021 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
7022 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
7023 * state.h: add local_dir variable
7025 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
7027 * desktop.cc: added logic to handle to the new dialog and to
7028 default the setting for the new checkboxes based on whether the
7029 desktop icon or start menu link already exist.
7030 (desktop_icon): correction to desktop directories for desktop icon
7031 creation. Additional logic added for Win95 which does not appear
7032 to have Common Directories so if Common selected and null uses
7034 (start_menu): Additional logic added for Win95 which does not
7035 appear to have Common Directories so if Common selected and null
7036 uses normal directory.
7037 (do_desktop_setup): moved the saving of the icon, creation of the
7038 bat file, profile, passwd, Start Menu link and desktop shortcut to
7039 this method from do_desktop. Made the creation of the desktop
7040 icon and start menu link conditional on settings of new dialog
7041 created for desktop.
7042 * install.cc (do_install): changed next from IDD_S_DESKTOP to
7044 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
7045 * res.rc: added new resource to create a desktop dialog with 2
7046 checkboxes for creating the desktop icon and start menu link.
7047 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
7048 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
7049 * state.h: added root_menu and root_desktop for use in dialog.
7051 2000-08-29 DJ Delorie <dj@redhat.com>
7053 * choose.cc (scan_downloaded_files): scan for existing files, so
7054 that the user only sees new downloads.
7056 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
7057 * site.cc (do_site): if we can't download the mirror list, go back
7058 to the net setup box to choose another transport.
7059 * autoload.c: add more functions
7060 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
7061 * resource.h: add WININET message
7063 * net.cc (do_net): no longer default to IE5
7064 * simpsock.h (class SimpleSocket): new, simplify socket operations
7065 * simpsock.cc: ditto
7066 * nio-http.h: new, for direct http protocol
7067 * nio-http.cc: ditto
7068 * nio-ftp.h: new, for direct http protocol
7070 * netio.cc (set_url): move initialization here to handle redirections
7071 (open): add direct http/ftp
7072 * netio.h (NetIO::set_url): new
7074 * log.cc (log_save): create directory for log if needed
7076 * hash.cc, hash.h: new
7077 * Makefile: add hash.o
7078 * choose.cc: enable "uninstall" option
7079 * download.cc: invert action test to accomodate uninstalling
7080 * ini.h: add ACTION_UNINSTALL
7081 * install.cc: add uninstall functionality
7082 * res.rc: make install tag changeable
7083 * resource.h: add uninstall resources
7085 * res.rc: update mirror list URL
7087 2000-08-24 DJ Delorie <dj@redhat.com>
7089 * log.cc, log.h: new files
7090 * Makefile.in (OBJS): add log.o
7091 * tar.cc: use exit_setup instead of exit
7092 * dialog.cc (fatal): use exit_setup instead of ExitProcess
7093 * msg.cc (fatal): ditto
7094 * install.cc (dialog_cmd): ditto
7095 * ini.cc (do_ini): ditto
7096 * main.cc (main): add logging
7097 * source.cc (do_source): ditto
7098 * root.cc (do_source): ditto
7099 * site.cc (do_site): ditto
7100 * other.cc (do_other): ditto
7101 * net.cc (do_net): ditto
7102 * choose.cc (do_choose): ditto
7103 * download.cc (do_download): ditto
7104 * install.cc (do_install): ditto
7105 * msg.cc (fatal): ditto
7107 * res.rc: mark password boxes as *being* password boxes.
7109 * fromcwd.cc (canonicalize_version): use multiple buffers so that
7110 multiple calls won't use the same buffer.
7111 * choose.cc (create_listview): don't default to full list if no changes
7112 (base): return computed value, not temporary :-(
7113 (do_choose): don't use installed.db if we're only downloading.
7115 2000-08-23 DJ Delorie <dj@redhat.com>
7117 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
7118 * nio-ie5.h (flush_io): new
7119 * netio.cc (load_dialog): note when we're initializing the dialog
7120 box, and ignore changes to the edit fields then.
7122 2000-08-21 DJ Delorie <dj@redhat.com>
7126 * fromcwd.cc (found_file): don't remember the canonicalized version
7128 * choose.cc (paint): print "nothing to do" message when list is empty.
7129 (build_labels): Use version "0.0" if no version is available.
7130 (create_listview): default to full list if nothing to install/update.
7131 (base): new, returns basename of file
7132 (read_installed_db): compare base names, not full paths
7134 2000-08-11 DJ Delorie <dj@redhat.com>
7136 * choose.cc: add new chooser dialog
7137 * fromcwd.cc: use IDD_CHOOSE
7138 * ini.cc: use IDD_CHOOSE
7139 * main.cc: use IDD_CHOOSE
7140 * ini.h: cosmetic changes
7141 * res.rc: add choose dialog, bitmaps
7142 * choose-spin.bmp: new
7143 * choose-rtarrow.bmp: new
7144 * resource.h: add choose dialog controls
7146 * mount.cc: remove debug statement
7148 2000-08-08 DJ Delorie <dj@redhat.com>
7150 * Makefile.in (version.c): make version checking more robust
7151 * splash.cc (load_dialog): handle case where there's no version
7153 2000-08-07 DJ Delorie <dj@redhat.com>
7155 * (all): add cvsid tags
7156 * Makefile.in: generate version.c from ChangeLog, add splash.o
7158 * res.rc: add splash screen
7160 2000-08-02 DJ Delorie <dj@redhat.com>
7162 * net.cc: remove proxy password code
7163 * res.rc: remove proxy user/pass from net, add auth dialogs
7164 * netio.cc,h: add sys/proxy auth methods
7165 * nio-ie5: use them, check for http status codes
7166 * state.h: add system authorization
7168 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
7171 2000-08-02 Norman Vine <nhv@yahoo,com>
7173 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
7175 2000-08-01 DJ Delorie <dj@redhat.com>
7177 * postinstall.cc (each): don't rename files we ignore
7178 (do_postinstall): set CYGWINROOT to root_dir, chdir there
7180 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
7182 2000-07-31 DJ Delorie <dj@redhat.com>
7184 * desktop.cc: reverse PATH so /usr/bin precedes /bin
7186 2000-07-18 DJ Delorie <dj@redhat.com>
7188 * autoload.c: new, autoload dlls that might not be available.
7189 * Makefile.in (OBJS): add autoload.o
7191 * res.rc: rewrite root options (text/binary, system/user) to be
7194 * site.cc (get_site_list): trim displayed URL, sort by domain
7196 * net.cc (do_net): make IE5 default to checked, for now
7198 * choose.cc (do_choose): sort packages correctly
7199 * ini.cc (do_ini): handle parse errors more gracefully
7201 (fprintf): line buffer output
7202 (do_ini): if we can't load setup.ini, go back to the site list.
7203 * ini.h: add "unknown" trust level
7204 * inilex.l: absorb unknown trust levels and key/value pairs,
7205 add line number logic
7206 * iniparse.y: handle parse errors more gracefully.
7207 * install.cc: skip packages with no valid install entry
7209 2000-07-17 DJ Delorie <dj@cygnus.com>
7211 * coding standards fixups, many files
7212 * mkdir.cc: warn about deletions *before* deleting them
7214 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
7216 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
7218 * other.cc (dialog_cmd): save download site URL
7219 * site.cc (get_root_dir): new
7220 (save_mirror_site): new
7221 (dialog_cmd): save download site URL
7222 (get_site_list): make list big enough to add prev site
7223 (get_initial_list_idx): new, read last-used URL from file and
7224 append it to site_list
7225 (do_site): call get_initial_list_idx
7227 * concat.cc (concat): avoid segfault when first parm is null
7229 2000-07-13 DJ Delorie <dj@cygnus.com>
7231 * postinstall.cc: new
7232 * Makefile.in: add postinstall.o
7233 * concat.h: add backslash ()
7235 * desktop.cc (etc_profile): don't do postinstall
7236 (backslash): moved to concat.cc
7238 (make_postinstall_script): run directly
7239 (do_desktop): chain to do_postinstall
7240 * dialog.h: add exit_msg, do_postinstall
7241 * download.cc: use exit_msg
7243 * main.cc: add postinstall, exit_msg
7244 * resource.h: add postinstall
7245 * README: add more to-do items
7247 2000-07-12 DJ Delorie <dj@cygnus.com>
7249 * desktop.cc: add /etc/postinstall/ support
7250 * install.cc: add more "standard" directories
7252 2000-07-11 DJ Delorie <dj@cygnus.com>
7254 * desktop.cc: create /etc/profile
7255 * desktop.cc: fix include syntax
7256 * Makefile.in: add auto-dependencies
7257 * root.cc: support system vs user
7265 * desktop.cc: make sure we use backslashes, not slashes.
7266 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
7267 * geturl.cc: change math for percentage to avoid overflow
7269 * download.cc: post "download complete" message.
7270 * root.cc: pre-fill in defaults if needed, don't start
7271 browse at root_dir unless it's set.
7272 * desktop.cc: quote $PATH in case it has spaces in it
7274 2000-07-10 DJ Delorie <dj@cygnus.com>
7276 * Makefile.in: add desktop.o and mklink2.o
7277 * dialog.h: add do_desktop
7278 * install.cc: create standard directories, call do_desktop
7279 * res.rc: add cygwin.ico as a file also
7280 * desktop.cc: new, do shortcuts, batch files, and icons
7281 * mklink2.c: new, for COM
7282 * README: update to-do list
7284 2000-07-10 DJ Delorie <dj@cygnus.com>
7286 * ini.cc (do_ini): don't worry about timestamps if we're not
7287 actually installing.
7289 2000-07-09 DJ Delorie <dj@cygnus.com>
7291 * Makefile.in: add -I$(srcdir) for ini.h
7293 2000-07-06 DJ Delorie <dj@cygnus.com>
7295 * Replace everything with a new GUI version
7296 * zlib/gzio.c: add gzctell() for progress displays
7298 2000-06-22 DJ Delorie <dj@cygnus.com>
7300 * setup.c (tarx): re-add call to write_pkg()
7302 2000-06-07 DJ Delorie <dj@cygnus.com>
7304 * cygcalls.c: new, call cygwin1.dll functions directly
7305 * cygcalls.h: header for same
7306 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
7307 exes, fix cinstall.rc dependencies.
7308 * path.c: remove unneeded code
7309 * setup.c: use cygcalls instead of xcreate_process.
7310 uncompress embedded files with zlib
7311 add "-d" for "download only"
7313 postpone mount changes until very end
7314 add download progress indicators
7315 pack multi-column listings more
7316 auto-delete temp files
7317 customize banner message according to options
7318 prompt user for text/binary mounts
7319 add warnings about empty setup directory, root installs, etc
7321 2000-05-24 DJ Delorie <dj@cygnus.com>
7323 * tar.c: New file; built-in tar using zlib.
7324 * tar.h: New file; header for same.
7325 * ctar.c: New file; test program for same.
7326 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
7327 * path.c (pathcat): convert slashes and canonicalize, instead of
7329 * setup.c (tarx): add support for built-in tar
7330 (main): accept unix-style slashes, check root dir for drive letters,
7331 warn about installing in /, make sure cwd is empty for internet
7332 installs, defer mounts to end of install, support built-in tar.
7334 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
7336 Fix compiler warnings throughout.
7337 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
7339 * setup.c: Make 'root' global.
7340 (istargz): Return pointer to "stem" of matched .tar.gz file.
7341 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
7342 bogus check_for_installed check.
7343 (recurse_dirs): Add preliminary support for .bat file execution.
7344 (create_uninstall): Eliminate unneeded parameter.
7345 (do_start_menu): Ditto.
7347 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
7348 scanning for the version number. Eliminate unneeded argument to
7350 (getdownloadsource): Add 'name' to list of names rather than url.
7351 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
7352 unneeded argument in mkmount and do_start_menu.
7354 2000-05-18 DJ Delorie <dj@cygnus.com>
7356 * setup.c (optionprompt): allow multi-column, clean up message
7357 about more options, be more robust about user input.
7358 (getdownloadsource): make the mirror URL a macro.
7359 (main): do mounts after done prompting user.
7361 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
7363 * setup.c (cleanup): Inverse order of deletion stands a better chance
7364 of deleting cygpath.exe. Still seems to suffer from occasional races,
7366 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
7368 (output_file): Defend against an unlikely handle leak.
7369 (main): Don't set up signal handling until we have something special to
7372 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
7374 * path.c (kill_cygpath): Delete function.
7375 (exit_cygpath): Make more defensive so that it can be called at any
7377 (cygpath_pipe): Don't set up signal here. Do it in main().
7378 * setup.c (istargz): New function.
7379 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
7380 inexplicably fails on samba mounted partitions. Use istargz to match
7382 (processdirlisting) Use istargz to match tar.gz tail.
7383 (cleanup): Renamed from filedel.
7384 (cleanup_on_signal): New function. Called on CTRL-C.
7385 (main): Record handle of main thread so that it can be suspended when
7386 CTRL-C occurs. Set up cleanup_on_signal signal handler.
7388 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
7390 * setup.c (do_start_menu): Don't concatenate paths to already built
7393 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
7395 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
7396 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
7398 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
7400 * setup.c (filedel): Call exit_cygpath here so that we can be assured
7401 that cygpath subprocess has died. This allows us to delete cygpath.exe
7403 (optionprompt): Initialize response to -1 so that second screen of
7404 mirrors will appear.
7405 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
7406 * setup.h: Reflect init_pkgs prototype change.
7408 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
7410 * pkg.c (init_pkgs): Accept an argument to control what root registry
7412 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
7413 * setup.h: Reflect init_pkgs prototype change.
7415 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
7417 * error.c (winerror): Respond to gcc warning.
7418 * path.c (cygpath_pipe): Ditto.
7419 * setup.c (filedel): Call sa_cleanup on deleteme.
7420 (create_shortcut): Coerce argument to eliminate compiler warning.
7421 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
7422 (refmatches): New function. Tests if ref is contained in a list of
7423 packages to install.
7424 (filematches): New function. Tests if filename matches one of a list
7425 of packages to install.
7426 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
7427 test to accomodate _tar.gz.
7428 (prompt): Ensure that stdout is flushed prior to asking for input.
7429 (findhref): Initialize variables to quiet a compiler warning.
7430 (processdirlisting): Accept list of packages to install. Special case
7431 cygwin tar file version number.
7432 (downloaddir): Accept list of packages to install.
7433 (downloadfrom): Ditto.
7434 (create_uninstall): Eliminate unneeded variables. Quote arguments to
7436 (do_start_menu): Don't create uninstall bat file if updating or user
7437 specified a list of packages.
7438 (mkmount): Eliminate unneeded variables.
7439 (get_pkg_stuff): New function. Checks for previous unversioned
7441 (main): Accept -u and -f options and package names on the command line.
7442 Use get_pkg_stuff to initialize package information. Umount /etc.
7443 Call recurse_dirs and downloadfrom with list of package to install.
7444 Ensure that all /usr/local directories are created. Output
7445 installation time to setup.log.
7446 * setup.h: Add some prototypes.
7447 * xsystem.c (xcreate_process): Eliminate unneeded variable.
7449 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
7451 * setup.c (optionprompt): Don't overlap display of already seen options
7453 (geturl): Print name of site which we're connecting to rather than "ftp
7455 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
7456 test too simplistic?
7457 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
7458 problems when user chooses x:\ as their root.
7459 (main): For now, default to "non-update" mode. Allow -u option to
7462 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
7465 * setup.c (tarx): Skip already installed or older packages. Report
7466 when a package has been updated.
7467 (processdirlisting): Skip already installed or older packages.
7468 (main): Detect -f option for forced installation. Initialize pkg stuff
7470 * setup.h: Add pkg definitions.
7472 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
7474 * setup.c (findhref): Return NULL on empty string. Eat any trailing
7476 (processdirlisting): Attempt to limit recursively processing the same
7479 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
7481 * setup.c (filedel): New function.
7482 (output_file): Keep track of files extracted from setup.exe for
7483 subsequent deletion.
7484 (tarx): Close process handle of child tar process or suffer handle
7486 (getdownloadsource): Close mirror file so that it can be unlinked.
7487 (processdirlisting): Return total number of files extracted.
7488 (main): Initialize array of files to delete. Ensure that files are
7489 closed on exit. Make the directory that setup.exe is started from ==
7490 the directory where temporary files are placed. Issue an error if no
7491 files were found to download.
7492 * xsystem.c (xcreate_process): Close the thread handle. Close the
7493 process handle if we waited for it to exit.
7495 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
7497 * setup.c (main): Change version number output.
7499 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
7501 * setup.c (tarx): Use full path name to tar executable.
7502 (main): Build full pathname to tar executable. Create /usr/local/etc
7505 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
7507 * setup.c (findhref): Change method for scanning for href= to choose
7508 the last one on the line. This is still not foolproof and probably
7509 will need to be changed eventually. Don't abort if no "size" field is
7511 (processdirlisting): Fix boolean algebra.
7513 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
7515 * main.c (tarx): Add some code for future task of unmounting
7516 directories encountered in tar file.
7518 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
7520 * setup.c (findhref): Decode file size, when appropriate.
7521 (needfile): New function. Returns 1 when file should be
7523 (processdirlisting): Always download if file size does not
7524 match. Prompt when download fails for some reason.
7525 (getdownloadsource): Accomodate findhref argument changes.
7527 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
7529 Throughout, use global session handle rather than reinitializing for
7530 each connect. Don't pass session as an argument to setup.c functions.
7531 * setup.c (geturl): Only issue "Connecting to.." message when using
7532 http or first time for ftp since subsequent connections will be fast.
7533 (processdirlisting): Allocate space for "N" when user has specified
7534 "N"ever option so that it can be subsequently freed.
7535 (main): Abort if we can't get the list of mirrors.
7537 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
7539 * setup.c (main): Umount /bin and /lib.
7541 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
7543 * setup.c (main): Create an empty /var/run/utmp.
7545 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
7547 * Makefile.in: Add umount to list of files to include in setup.exe.
7548 * setup.c (xumount): New function for unmounting directories.
7549 (main): Unmount /usr.
7550 (mkmount): Unmount "unix directory" before trying to figure out where
7551 to create the directory.
7553 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
7555 * setup.c (mkmount): Use xcreate_process to start mount process,
7557 (main): Don't do buffering on stdout or prompts won't be displayed
7558 correctly if running in a cygwin shell with CYGWIN=tty.
7560 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
7562 * setup.c (main): Remove the CYGWIN environment variable before
7563 starting any cygwin programs.
7565 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
7567 * setup.c (geturl): Use alternative method for finding filename part of
7569 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
7570 (downloaddir): Unlink file containing dir listing.
7571 (downloadfrom): Ditto.
7573 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
7575 * setup.c (main): Disallow running setup.exe from the "root".
7577 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
7579 Use "warning" function, where appropriate, to output warnings.
7580 * setup.c (warning): New function -- outputs warning to console and log
7582 (tarx): Fix index used to reset file protection.
7583 (main): Open the log file earlier so that more stuff can be sent to it.
7585 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
7587 * setup.c (processdirlisting): Make "N" option a little less aggressive.
7589 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
7591 * setup.c (tarx): Wait to after tar has completed to reset protections
7592 or suffer races with tar process.
7594 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
7596 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
7597 * setup.c (create_uninstall): Create the uninstall .bat file in the
7598 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
7599 list of files to be deleted. Fix directory detection for determining
7600 when to use 'rmdir'.
7601 (do_start_menu): Add /usr/local/bin to the path.
7602 (main): Add slop to files.array allocation so that we don't have to
7603 worry about reallocating the array when it grows too large when doing
7604 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
7607 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
7609 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
7612 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
7614 * path.c (kill_cygpath): New cleanup function.
7615 (exit_cygpath): New cleanup function.
7616 (cygpath_pipe): New function. Sets up cygpath in the background for
7617 translating filenames.
7618 (pathcvt): Use background cygpath for file translation.
7619 * setup.c (tarx): New function. Called to extract tar files, capture
7620 logging output, and translate it to Windows format.
7621 (recurse_dirs): Use 'tarx' function to extract files.
7622 (create_uninstall): Use file list built up by tarx rather than reading
7624 (mkmount): Add ability to mount root.
7625 (main): Track elapsed install time. Mount root.
7626 * starry.h: Add index field to strarry for tracking of tarx's usage of
7628 * xsystem.c (xcreate_process): Return proces handle when not waiting.
7630 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
7633 (pathfp): New function. Preliminary work for new -f cygpath
7635 * Makefile.in: Add new file.
7636 (pathcvt): Move to new file.
7640 * setup.c (processdirlisting): Always open file in text mode.
7641 (create_uninstall): Ditto.
7642 (getdownloadsource): Ditto.
7645 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
7647 * xsystem.c: New file.
7648 * Makefile.in: Accomodate new file.
7649 * setup.c (xsystem): Move to new file.
7650 (recurse_dirs): Accept handle to output log file. Don't use ">"
7651 redirection to trap tar output. Use supplied handle instead.
7652 (create_uninstall): Accept FILE pointer to opened log file. Don't
7653 unlink log file here.
7654 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
7655 (main): Open log file here and pass it to various functions. Unlink
7658 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
7660 Change occurrences of .usr.bin to .bin throughout.
7661 * setup.c (geturl): Increase number of retries to 20. Let user know
7662 what's going on during long connects.
7663 (processdirlisting): Accept "A"lways and "N"ever as update options.
7664 (create_uninstall): Load cygwin1.dll from the current directory rather
7666 (main): Add some expository text.
7668 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
7670 * Makefile.in: Change method for compressing cygwin1.dll to avoid
7671 creating a cygwin1.dll in the current directory. Ensure the addition
7672 of -nostdinc to MINGW_CFLAGS.
7674 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
7676 * Makefile.in: Augment clean target.
7678 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
7680 * README: Added info about non-working mingw implementation
7681 * gzip.exe.gz: Replace with a version from the same build as the other
7683 * tar.exe.gz: Replace with a version from the same build as the other
7685 * mount.exe.gz: Add to repository until, mingw can build setup.
7686 * cygpath.exe.gz: ditto
7687 * cygwin1.dll.gz: ditto
7688 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
7689 for Win9x. Display only a screenfull of options at a time. Call all
7690 tools with an absolute path.
7691 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
7696 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
7698 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
7699 cygwin1.dll from ../cygwin subdirectory.
7700 * gzip.exe.gz: Update.
7701 * tar.exe.gz: Update.
7703 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
7705 * Makefile.in: Use ZLIB variable as a target.
7707 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
7709 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
7710 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
7712 * configure.in: Locate correct objcopy.
7713 * configure: Regenerate.
7715 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
7717 * Makefile.in: New file.
7718 * configure.in: New file.
7719 * configure: New file.
7720 * zlib/Makefile.am: New file.
7721 * zlib/configure.in: New file.
7722 * zlib/aclocal.m4: New file.
7723 * zlib/acinclude.m4: New file.
7724 * zlib/configure: Regenerate from configure.in.
7725 * zlib/Makefile.in: Regenerate from Makefile.am