]> cygwin.com Git - cygwin-apps/setup.git/log
cygwin-apps/setup.git
22 years agoWed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com Z-cygwin_daemon_merge-new_HEAD Z-cygwin_daemon_merge_HEAD
Robert Collins [Wed, 26 Sep 2001 21:44:57 +0000 (21:44 +0000)]
Wed Sep 26 21:39:00  Robert Collins rbtcollins@hotmail.com

        * choose.cc (_view::insert_pkg): Correctly exit loop.
        * iniparse.y (register_category): Always insert new categories.

22 years ago* inilex.l (yylex): For comments, eat all characters up to, but not including
Christopher Faylor [Fri, 21 Sep 2001 17:57:52 +0000 (17:57 +0000)]
* inilex.l (yylex): For comments, eat all characters up to, but not including
newline.

22 years agoupdate
Christopher Faylor [Thu, 20 Sep 2001 02:38:22 +0000 (02:38 +0000)]
update

22 years agoTemporary checkin
Christopher Faylor [Thu, 20 Sep 2001 02:11:12 +0000 (02:11 +0000)]
Temporary checkin

22 years ago* fromcwd.cc (found_file): Use correct package name when adding an unknown cygwin-1-3-3
Christopher Faylor [Sun, 26 Aug 2001 17:44:05 +0000 (17:44 +0000)]
* fromcwd.cc (found_file): Use correct package name when adding an unknown
package rather than random stack garbage.

22 years ago* desktop.cc (make_passwd_group): .bat files need \r\n endings.
Christopher Faylor [Sun, 12 Aug 2001 18:26:26 +0000 (18:26 +0000)]
* desktop.cc (make_passwd_group): .bat files need \r\n endings.

22 years ago* desktop.cc (etc_profile): Leave environment variables untouched.
Christopher Faylor [Wed, 8 Aug 2001 17:54:45 +0000 (17:54 +0000)]
* desktop.cc (etc_profile): Leave environment variables untouched.

22 years ago * autoload.c: Add dynamic load statements for NT/W2K
Corinna Vinschen [Tue, 7 Aug 2001 08:00:58 +0000 (08:00 +0000)]
    * autoload.c: Add dynamic load statements for NT/W2K
        advapi32 functions not available in 9x/ME.
        * main.cc (set_default_dacl): New function.
        (WinMain): Call `set_default_dacl' if running on NT/W2K.

22 years ago* ini.h (_CategoryPackage): Change pkg field to pkgname for consistency.
Christopher Faylor [Sun, 5 Aug 2001 01:38:46 +0000 (01:38 +0000)]
* ini.h (_CategoryPackage): Change pkg field to pkgname for consistency.
* choose.cc: Use pkgname field when referencing _CategoryPackage throughout.
(fill_missing_category): Don't add excluded packages.
(default_trust): Ditto.
(_view::insert_pkg): Ditto.
* iniparse.y (register_category): Use consistent variable name.

23 years ago* choose.cc: Use system foreground color for text output.
Egor Duda [Mon, 9 Jul 2001 14:44:26 +0000 (14:44 +0000)]
* choose.cc: Use system foreground color for text output.

23 years ago* choose.cc (set_action): Use default trust for determining reinstall and
Christopher Faylor [Sat, 7 Jul 2001 04:46:31 +0000 (04:46 +0000)]
* choose.cc (set_action): Use default trust for determining reinstall and
source only.
(default_trust): Set default trust.
(pick_line::paint): Allow source selection when reinstalling or retrieving.

23 years ago* choose.cc (isinstalled): Modify to properly accomodate special case of
Christopher Faylor [Fri, 6 Jul 2001 22:20:34 +0000 (22:20 +0000)]
* choose.cc (isinstalled): Modify to properly accomodate special case of
"download only".
(set_action): Check downloaded components, not installed components if
"download only".
(set_existence): Always include full list of files when "download only".

23 years ago* choose.cc (pick_line::paint): Properly display "na" field when no source
Christopher Faylor [Fri, 6 Jul 2001 04:38:30 +0000 (04:38 +0000)]
* choose.cc (pick_line::paint): Properly display "na" field when no source
exists.

23 years ago* choose.cc (scan2): Ensure that older versions do not show up in "Test" slot.
Christopher Faylor [Thu, 5 Jul 2001 04:46:59 +0000 (04:46 +0000)]
* choose.cc (scan2): Ensure that older versions do not show up in "Test" slot.

23 years agoremove binary file intended for deletion.
Christopher Faylor [Thu, 5 Jul 2001 02:58:20 +0000 (02:58 +0000)]
remove binary file intended for deletion.

23 years agoadd file to be deleted.
Christopher Faylor [Thu, 5 Jul 2001 02:56:21 +0000 (02:56 +0000)]
add file to be deleted.

23 years agoremove file added to delete.
Christopher Faylor [Tue, 3 Jul 2001 01:41:30 +0000 (01:41 +0000)]
remove file added to delete.

23 years agoadd file to be removed.
Christopher Faylor [Tue, 3 Jul 2001 01:40:33 +0000 (01:40 +0000)]
add file to be removed.

23 years agominor reformatting
Christopher Faylor [Tue, 3 Jul 2001 01:38:04 +0000 (01:38 +0000)]
minor reformatting

23 years ago* choose.cc (set_action): Allow "Skip" action if trust != installed.
Christopher Faylor [Mon, 2 Jul 2001 19:49:58 +0000 (19:49 +0000)]
* choose.cc (set_action): Allow "Skip" action if trust != installed.
* res.rc: Fix copyright.

23 years agofix inexplicable typo.
Christopher Faylor [Mon, 2 Jul 2001 03:45:43 +0000 (03:45 +0000)]
fix inexplicable typo.

23 years ago* res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog boxes.
Christopher Faylor [Sun, 1 Jul 2001 03:19:01 +0000 (03:19 +0000)]
* res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog boxes.
(IDD_CHOOSE))))))))): Adjust horizontal size so package names are visible.
* choose.cc: Restore some more changes from 2001-06-25, throughout.
(paint): Wrap some excessively long lines.
(pick_line::paint): Ditto.  Move the arrow in the "Current" column right to
where it belongs.  Move the source checkbox slightly to the right.
(do_choose): List categories and required packages in setup.log.full.
* choose.cc (scan2): Restore source scanning eliminated by previous checkin.

23 years agoFix typo.
Christopher Faylor [Sun, 1 Jul 2001 02:18:20 +0000 (02:18 +0000)]
Fix typo.

23 years ago* ini.h (struct _Info): Add "derived" element.
Christopher Faylor [Sat, 30 Jun 2001 19:20:24 +0000 (19:20 +0000)]
* ini.h (struct _Info): Add "derived" element.
* choose.cc (scan2): Try to place unknown tar files into proper slot when
package exists in setup.ini but tar file does not.

23 years agoSat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sat, 30 Jun 2001 03:43:33 +0000 (03:43 +0000)]
Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>

* choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
(do_choose): Log the first category name.

23 years ago*ini.h: Reapply 2001-06-25 changes.
Christopher Faylor [Sat, 30 Jun 2001 03:11:46 +0000 (03:11 +0000)]
*ini.h: Reapply 2001-06-25 changes.
* choose.cc (add_required): Ditto.  Default to "Keep" state if UNINSTALL and
product is installed.  Default to curr state if SKIP, etc.
(keep_or_skip): New function.  Returns skip or keep state depending on
installed state of package.
(default_trust): Use keep_or_skip to set state.
(_view::insert_pkg): Use calloc to allocate lines.
(set_view_mode): Adapt 2001-06-25 change to set_full_list here.

23 years agoSat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sat, 30 Jun 2001 01:37:55 +0000 (01:37 +0000)]
Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>

* choose.cc: Remove globals full_list, headers, package_indexes and
nindexes.
Add globals cat_headers, pkg_headers and chooser.
(add_required): New function.
(paint): Use the chooser for header details.
Call into the chooser to paint each line.
(list_click): Use new global variables.
Call into the chooser to handle the click.
Repaint the entire view if packages have been added or removed.
(note_width): Get passed a headers struct rather than using a global
variable.
(fill_missing_category): New function.
(default_trust): Skip non-"Required" or "Misc" packages.
(pick_line::set_line (Package *)): New function.
(pick_line::set_line (Category *)): New function.
(pick_line::paint): New function.
(pick_line::click): New function.
(_view::_view): New function.
(_view::set_view_mode): New function.
(_view::mode_caption): New function.
(_view::set_headers): New function.
(_view::init_header): New function.
(_view::insert_pkg): New function.
(_view::insert_category): New function.
(_view::insert_at): New function.
(_view::insert_under): New function.
(_view::clear_view): New function.
(viewsplusplus): New function.
(_view::client): New function.
(set_view_mode): Use new chooser functionality.
(set_full_list): Use new global variables.
(create_listview): Instantiate chooser.
Remove all hardcoded headers[] code.
(dialog_cmd): On trust changes, check dependencies.
(getcategorybyname): New function.
(getpackagecategorybyname): New function.
(scan2): Use case-insensitive package comparison.
(do_choose): Use fill_missing_category ().
Show some category data.
* ini.h: Protect against multiple inclusion.
(views) New enum.
(_CategoryPackage): New struct.
(_Category): New struct.
(_Package): Change category to Category * from char *.
(extern Category category): New global variable.
(extern in ncategories): Ditto.
(getcategorybyname): New prototype.
(catpackagecategorybyname): New prototype.
(register_category): New prototype.
(add_category): New prototype.
* iniparse.y: Parse multiple categories per package.
category: New global variable.
ncategories: New global variable.
(new_package): Compare package against NULL, not 0.
(new_requirement): Source formatting fix.
(register_category): New function.
(add_category): New function.
* res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
IDC_CHOOSE_VIEWCAPTION: New control.
* resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
IDC_CHOOSE_VIEWCAPTION: New control.
Increment _APS_NEXT_CONTROL_VALUE.

23 years agoFix typo.
Christopher Faylor [Fri, 29 Jun 2001 02:39:25 +0000 (02:39 +0000)]
Fix typo.

23 years ago* choose.cc (paint): Wrap lines excessively long lines.
Christopher Faylor [Mon, 25 Jun 2001 05:55:22 +0000 (05:55 +0000)]
* choose.cc (paint): Wrap lines excessively long lines.
(list_click): Ditto.
(create_listview): Ditto.
(do_choose): Ditto.  Replace TABs and remove CRs in lines written to
setup.log.full.  Allow "Yes" for source exists in setup.log.full when
installing from local directories.

23 years ago* choose.cc (set_action): Only clear srcpicked when moving to next state.
Christopher Faylor [Mon, 25 Jun 2001 05:48:38 +0000 (05:48 +0000)]
* choose.cc (set_action): Only clear srcpicked when moving to next state.
Allow source installation if it exists in the current "trust" state.  Don't
move to skip state when package is installed.
(list_click): Don't allow source clicking when no source is available.
(set_full_list): Display package when not is_full_action.
* ini.h (is_full_action): Define.

23 years agoAdd some comments.
Christopher Faylor [Mon, 18 Jun 2001 00:43:57 +0000 (00:43 +0000)]
Add some comments.

23 years ago* install.cc (check_for_old_cygwin): New function. First stab at checking for
Christopher Faylor [Sun, 17 Jun 2001 16:06:56 +0000 (16:06 +0000)]
* install.cc (check_for_old_cygwin): New function.  First stab at checking for
old cygwin versions.
(do_install): Call check_for_old_cygwin if there were no errors during the
install.

23 years agoadd comment
Christopher Faylor [Sat, 16 Jun 2001 18:50:13 +0000 (18:50 +0000)]
add comment

23 years ago* choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather than
Christopher Faylor [Sat, 16 Jun 2001 18:47:44 +0000 (18:47 +0000)]
* choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather than
zeroed "source" element.

23 years ago* choose.cc (scan2): Insert unknown tar archives, found on disk, into the
Christopher Faylor [Sat, 16 Jun 2001 00:55:40 +0000 (00:55 +0000)]
* choose.cc (scan2): Insert unknown tar archives, found on disk, into the
highest available "hole" in the trust array.

23 years ago* choose.cc (set_existence): Use pointer method for indexing in trust array.
Christopher Faylor [Fri, 15 Jun 2001 04:23:01 +0000 (04:23 +0000)]
* choose.cc (set_existence): Use pointer method for indexing in trust array.
(create_listview): Ditto.
(scan2): Ditto.  Also, use consistent variable name for indexing into trust
array.
* ini.h (Package): Reorganize info array for easier scanning.

23 years ago* choose.cc (isinstalled): Eliminate special download only test.
Christopher Faylor [Fri, 15 Jun 2001 04:05:31 +0000 (04:05 +0000)]
* choose.cc (isinstalled): Eliminate special download only test.
(set_action): Don't move to next state if in ACTION_SAME range and not
incrementing.
(choose_caption): Display "Retrieve" rather than "Reinstall" when just
downloading.
(do_choose): Sort packages after all packages have been read.  Accomodate the
fact that first element in trust array is empty so that log files don't report
the wrong trust value.
* iniparse.y (new_package): Malloc space for package name or suffer memory
corruption.

23 years ago* ini.h (Dependency): New structure. Declare new function.
Christopher Faylor [Fri, 15 Jun 2001 02:48:37 +0000 (02:48 +0000)]
* ini.h (Dependency): New structure.  Declare new function.
* inilex.l (yylex): Detect new setup.ini options - category and requires.
* iniparse.y: Declare new setup.ini token values.
(yyparse): Parse new token values.
(new_requirement): New function.
* choose.cc (read_installed_db): Eliminate obsolete code.

23 years ago* choose.cc (set_action): Set trust on "redo".
Christopher Faylor [Fri, 15 Jun 2001 02:16:41 +0000 (02:16 +0000)]
* choose.cc (set_action): Set trust on "redo".
(_Info::_Info): New constructor.
(read_installed_db): Use new constructor.  Use trusts type for iterator.
* ini.h (struct _Info): Label struct, add constructor.
(Package): Make installed_ix a type 'trusts.'
* install.cc (uninstall_one): Unset any installed info for current package.
(install_one): Allocate new Info struct for installed reflecting new installed
info.
(do_install): Don't output line to installed.db if package is being
uninstalled.

23 years ago* choose.cc (getpkgbyname): Use consistent method for scanning package array.
Christopher Faylor [Fri, 15 Jun 2001 00:33:33 +0000 (00:33 +0000)]
* choose.cc (getpkgbyname): Use consistent method for scanning package array.

23 years ago* choose.cc: Add some comments.
Christopher Faylor [Thu, 14 Jun 2001 03:38:45 +0000 (03:38 +0000)]
* choose.cc: Add some comments.
(getpkgbyname): Use strcasecmp for comparisons.

23 years agoFix typo.
Christopher Faylor [Wed, 13 Jun 2001 21:40:55 +0000 (21:40 +0000)]
Fix typo.

23 years ago* install.cc (do_install): Avoid checking for download action of package wasn't
Christopher Faylor [Wed, 13 Jun 2001 20:07:32 +0000 (20:07 +0000)]
* install.cc (do_install): Avoid checking for download action of package wasn't
currently retrieved.

23 years ago* choose.cc: Eliminate extra array throughout. Use element in package
Christopher Faylor [Wed, 13 Jun 2001 16:11:01 +0000 (16:11 +0000)]
* choose.cc: Eliminate extra array throughout.  Use element in package
structure instead.  Use pointers rather than array indexes where appropriate.
(set_action): New function to set next action based on current.
(choose_caption): New function.  Returns display caption.
(check_existence): Change arguments.  Use pointer to 'info' structure.
(set_existence): Use pointer rather than array index.
(default_trust): Use trusts enum for second argument.
(set_full_list): Honor exclude element in package structure.
(build_labels): Eliminate.
(base): Make global.  Use const char * argument.
(get_package_version): Eliminate.
(getpkgbyname): New function.
(read_installed_db): Use parse_filename to get version info.
* desktop.cc (make_passwd_group): Use getpkgbyname function.
* download.cc (get_file_size): const argument.
(do_download): Use is_download_action to determine when something should be
downloaded.
* filemanip.h: Add some functions.
* ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
* ini.h: Use enums for actions and trusts.
(is_download_action): New macro.
(is_upgrade_action): Ditto.
(is_uninstall_action): Ditto.
(struct Package): Add new fields.
* inilex.l (yylex): Detect new setup.ini options.
* iniparse.y: Declare new tokens.
(yyparse): Detect exclude keyword.  Fill out version field even if version ==
0.
(new_package): Use greater granularity when allocating package array to avoid
repeated calls to realloc.
* install.cc (exists): const argument.
(uninstall_one): Take pkg argument.
(install_one): Ditto.  Eliminate unneeded arguments which can be derived from
package info.
(do_install): Iterate over package array using a pointer.  Use
is_download_action to control when package should be downloaded.
* tar.cc (tar_open): const argument.
* tar.h: Refloect const argument.

23 years ago* main.cc (WinMain): Add setup version to starting setup.log entry
Christopher Faylor [Thu, 31 May 2001 19:04:29 +0000 (19:04 +0000)]
* main.cc (WinMain): Add setup version to starting setup.log entry

23 years ago* inilex.l: Add + to list of valid string characters.
Christopher Faylor [Wed, 30 May 2001 01:38:41 +0000 (01:38 +0000)]
* inilex.l: Add + to list of valid string characters.

23 years agominor tweak
Christopher Faylor [Tue, 29 May 2001 18:05:26 +0000 (18:05 +0000)]
minor tweak

23 years ago* Makefile.in: Remove more stuff in the clean target.
Christopher Faylor [Tue, 29 May 2001 00:56:17 +0000 (00:56 +0000)]
* Makefile.in: Remove more stuff in the clean target.

23 years ago* Makefile.in: Correctly generate iniparse.h.
Christopher Faylor [Mon, 28 May 2001 22:26:48 +0000 (22:26 +0000)]
* Makefile.in: Correctly generate iniparse.h.

23 years ago * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
Corinna Vinschen [Mon, 28 May 2001 08:31:02 +0000 (08:31 +0000)]
    * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
        * geturl.h: Change declaration of `get_url_to_file' accordingly.
        * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
        Set member `ftp_auth'.
        (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
        to constructors of derived classes.
        (NetIO::get_ftp_auth): New method.
        * netio.h: Change class definition accordingly.
        * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
        Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
        Add code for ftp authentication retry.
        * nio-ftp.h: Change class definition accordingly.
        * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
        Add code for ftp authentication retry in case of proxy connection.
        * nio-http.h: Change class definition accordingly.
        * res.rc: Add FTP authentication dialog.
        * resource.h: Add new constants used in res.rc.
        * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.

23 years ago* res.rc (IDD_SPLASH): Add a copyright year.
Christopher Faylor [Sun, 27 May 2001 21:12:58 +0000 (21:12 +0000)]
* res.rc (IDD_SPLASH): Add a copyright year.

23 years ago* Makefile.in: Make iniparse.y produce a c++ file.
Christopher Faylor [Sun, 27 May 2001 19:43:52 +0000 (19:43 +0000)]
* Makefile.in: Make iniparse.y produce a c++ file.
* choose.cc (set_existence): Revert 2001-05-27 change.
* ini.cc: Remove "C" from declaration of yyparse.
* iniparse.y (yyparse): Fill out version field by default when a binary install
is detected and no version has been set yet.
* install.cc (do_install): Mount things earlier so that we can use proper mount
table settings.  Don't remove mounts since they are now honored.
* mount.cc (create_mount): Reread the mount table after establishing a new
mount.
(read_mounts): Explicitly clear root_here to allow multiple uses of this
function.  Ensure that there is no garbage in the table when we've exhausted
all of the mounts in the registry.
(cygpath): Accomodate ./ in path.

23 years agoAvoid a compiler warning.
Christopher Faylor [Sun, 27 May 2001 07:06:22 +0000 (07:06 +0000)]
Avoid a compiler warning.

23 years agoUse parse_filename method to parse filenames throughout. Use get_root_dir to
Christopher Faylor [Sun, 27 May 2001 07:05:09 +0000 (07:05 +0000)]
Use parse_filename method to parse filenames throughout.  Use get_root_dir to
retrieve the current root directory throughout.  Set const in argument list,
where appropriate, throughout.
* choose.cc (set_existence): Detect case of uninstalled package with no
version.
(parse_filename): New function.
* filemanip.h (fileparse): New structure.
* mount.cc (read_mounts): Remember where we found the root mount.
(set_root_dir): New function.
(get_root_dir): Ditto.
* mount.h: Declare new functions.
* site.cc (get_root_dir_now): Renamed from get_root_dir.
(save_site_url): Use new function name.
(get_initial_list_idx): Ditto.

23 years ago* choose.cc: Use a constant throughout to deal with chooser icon length.
Christopher Faylor [Sun, 27 May 2001 01:26:47 +0000 (01:26 +0000)]
* choose.cc: Use a constant throughout to deal with chooser icon length.
* res.rc (IDD_CHOOSE): Increase size of chooser box.

23 years ago* choose.cc (do_choose): Fix incorrect assignment of trust setting to use when cygwin-1-3-2
Christopher Faylor [Fri, 18 May 2001 14:56:22 +0000 (14:56 +0000)]
* choose.cc (do_choose): Fix incorrect assignment of trust setting to use when
Redownload or Sources Only selected.

23 years agoReformat file after botched patch formatting.
Christopher Faylor [Fri, 11 May 2001 02:39:27 +0000 (02:39 +0000)]
Reformat file after botched patch formatting.
* choose.cc (which_trust): Eliminate variable.
(default_trust): Don't set which_trust.
(do_choose): Use selected trust when reinstalling or installing source.

23 years agoChange concat to cygpath throughout. Change map_filename to cygpath
Christopher Faylor [Fri, 11 May 2001 01:40:36 +0000 (01:40 +0000)]
Change concat to cygpath throughout.  Change map_filename to cygpath
throughout.
* concat.cc (vconcat): New function.
(concat): Use vconcat.
* concat.h: Reflect above.
* install.cc (map_filename): Eliminate.
(install_one): Free dest_file.
* mount.cc (find2): Expect input key to be pointing to mount record.
(in_table): New function.
(is_admin): Move from root.cc.
(read_mounts): New function.
(path_prefix_p): New function.
(cygpath): New function.
* mount.h: Define new functions and structure.
* root.cc (in_table): Move to mount.cc.
(do_root): Call read_mounts to initialize root stuff and mount table.
* site.cc (get_root_dir): Ditto.

23 years ago* Makefile.in: Remove *.rc from clean.
Christopher Faylor [Wed, 9 May 2001 13:46:24 +0000 (13:46 +0000)]
* Makefile.in: Remove *.rc from clean.

23 years ago* choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than TRUST_PREV
Christopher Faylor [Wed, 9 May 2001 03:37:32 +0000 (03:37 +0000)]
* choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than TRUST_PREV
which produced "0" versions.

23 years ago* resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
Christopher Faylor [Tue, 8 May 2001 04:03:02 +0000 (04:03 +0000)]
* resource.h: Add new field IDC_CHOOSE_INST_TEXT.  Modify
_APS_NEXT_CONTROL_VALUE to account for addition of IDC_CHOOSE_INST_TEXT.
* res.rc (IDD_CHOOSE): Modify choose dialog to use new field
IDC_CHOOSE_INST_TEXT for screen text.  Modify choose Dialog to allow hot keys
to select Prev, Curr, Exp.
* ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY.  Modify define
for LOOP_PACKAGES to include new actions ACTION_REDO and ACTION_SRC_ONLY.
* choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
(paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for source
Checkbox to use.
(build_labels): Add logic to allow for selection of Source only
Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall current
version binary.
(dialog_proc): Add conditional display for file selection prompt based on
download vs install using IDC_CHOOSE_INST_TEXT.
(do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection and
modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to handle the
instance where Source Download/Install was selected.  Modify log file to store
appropriate information regarding Action selected and the new actions that were
added (I.E.: ACTION_REDO and ACTION_SRC_ONLY).
* download.cc: Add include for <unistd.h> and "port.h".
(download_one): Modify parameter list to include the selected action for the
file to be downloaded.  Modify size check against expected size to include
check for ACTION_REDO and ACTION_SRC_ONLY.  Modify rename of .tmp file to also
remove the destination file if exists due to ability to redownload source and
binary now.
(do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
calculation of Download Bytes.  Modify to also use ACTION_REDO and
ACTION_SRC_ONLY in determining files selected for download.
* install.cc (uninstall_one): Add check to treat a Reinstall like an upgrade so
current version will be uninstalled prior to reinstall.
(do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
uninstalling and installing binary and source packages.
* desktop.cc (make_passwd_group): Modify logic to account for a Source only
cygwin install when checking for cygwin to determine need for mkpasswd and
mkgroup.

23 years ago* winsup/cinstall/res.rc: Added accelerators and improved focus order. Removed
Christopher Faylor [Tue, 8 May 2001 03:35:55 +0000 (03:35 +0000)]
* winsup/cinstall/res.rc: Added accelerators and improved focus order.  Removed
WS_DISABLED from "OK" buttons to accomodate default focus changes in net.cc and
source.cc.
* winsup/cinstall/net.cc (dialog_proc): If no radio button is selected, a
default is selected.
* winsup/cinstall/source.cc (dialog_proc): Ditto.
(check_if_enable_next): Removed.  No longer needed since a radio button will
always be selected.
(load_dialog): Removed call to check_if_enable_next.
(dialog_cmd): Ditto.  Also added default to switch.

23 years ago* res.rc: Resize affected text.
Christopher Faylor [Wed, 25 Apr 2001 03:44:08 +0000 (03:44 +0000)]
* res.rc: Resize affected text.

23 years ago* net.cc (do_net): Default to direct download.
Christopher Faylor [Wed, 25 Apr 2001 03:35:52 +0000 (03:35 +0000)]
* net.cc (do_net): Default to direct download.
* res.c: Move default selections to the top.

23 years ago * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME. cygwin-1-3-1
Earnie Boyd [Thu, 19 Apr 2001 00:40:39 +0000 (00:40 +0000)]
* win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
Must now include <windows.h> and not the pieces.
* choose.cc (create_listview): Clean up type mismatch problems.
* dialog.h (NEXT(id)): Ditto.
* geturl.cc (dialog): Ditto.
* install.cc (dialog): Ditto.
* splash.cc (load_dialog): Ditto.

23 years ago* tar.cc (class gzbz): Define dummy virtual functions.
Christopher Faylor [Wed, 18 Apr 2001 23:03:02 +0000 (23:03 +0000)]
* tar.cc (class gzbz): Define dummy virtual functions.

23 years agoCheck in missing file.
Christopher Faylor [Wed, 18 Apr 2001 21:30:48 +0000 (21:30 +0000)]
Check in missing file.

23 years ago* Makefile.in: Add bz2 include/library support.
Christopher Faylor [Wed, 18 Apr 2001 20:11:58 +0000 (20:11 +0000)]
* Makefile.in: Add bz2 include/library support.
* filemanip.h: New file.
* choose.cc (find_tar_ext): New function.  Returns TRUE if .tar.gz or .tar.bz2
found.
(scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
(read_installed_db): Ditto.
(do_choose): Ditto.
* fromcwd.cc (found_file): Ditto.
(do_fromcwd): Ditto.
* tar.cc (class gzbz): New super class for uncompression support.
(gz): New class for gzip support.
(bz): New class for bzip2 support.
(tar_open): Use gzbz class to control file opening.
(tar_ftell): Ditto for returning position in file.
(skip_file): Ditto for reading file.
(tar_next_file): Ditto.
(tar_read_file): Ditto.
(tar_close): Ditto for close.
* zlib/configure.in: Force NM substitution.
* source.cc (do_source): Default to "Install from Internet".

23 years ago* nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of `stat'.
Christopher Faylor [Sat, 17 Mar 2001 04:45:08 +0000 (04:45 +0000)]
* nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of `stat'.
* choose.cc (list_click): Correct inability to select source code for download.
(scan2): Modify to skip source tarballs when scanning disk for installable
packages.

23 years ago * install.cc: install sources into /usr/src instead
Corinna Vinschen [Thu, 15 Mar 2001 19:06:23 +0000 (19:06 +0000)]
    * install.cc: install sources into /usr/src instead
        of /, also include the sizes of source tarballs
        in total_bytes.
        * download.cc: include sizes of source tarballs in
        total_download_bytes.

23 years ago * download.cc (get_file_size): Remove `static'.
Corinna Vinschen [Tue, 6 Mar 2001 18:32:15 +0000 (18:32 +0000)]
    * download.cc (get_file_size): Remove `static'.

23 years ago * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
Corinna Vinschen [Tue, 6 Mar 2001 18:13:31 +0000 (18:13 +0000)]
   * tar.cc (tar_open): Use `get_file_size' instead of `stat'.

23 years ago * choose.cc (paint): Modify message for nothing to download vs
Corinna Vinschen [Tue, 6 Mar 2001 13:21:58 +0000 (13:21 +0000)]
    * choose.cc (paint): Modify message for nothing to download vs
        nothing to install/update based on installation method.
        (list_click): Modify to skip versions in selection process if
        installing from local directory and installation file does not exist.
        Also leaves Source Action set to N/A if the source file does not exist
        and installing from local directory.
        (check_existence): New method to check current existence of installation
        files based on selected installation method.
        (set_existence): New method to set the current existence of installation
        files based on selected installation method.
        (best_trust): Modify decision process for best trust to base decision on
        current trust selected (IE: Prev, Curr, or Test), existence of file and
        installation method selected.
        (default_trust): Add logic to capture the current trust level and the
        trust selected for the given package.
        (set_full_list): Expand decision criteria for displaying a package in
        the selection list to include file existence/non-existence and selected
        installation method.
        (build_labels): Modify criteria for label addition to include
        installation method and file existence/non-existence.
        (create_listview): Modify to establish package trust level for each
        package before setting up the display list.  Also modification to set
        current trust button as the default.
        (dialog_cmd): Set response for Prev, Curr, Test button push to perform
        a reset of the selection list in addition to setting the default trust.
        (get_package_version): New method to provide reusable code for
        determining the package version from the file name for a specified
        trust.
        (scan2): Modify to use new method get_package_version and
        also enhance handling of the build for the structures package and
        extra.
        (read_installed_db): Modify to use the new method
        get_package_version and also enhance handling of the build for the
        structures package and extra.
        (do_choose): Add additional initialization of package and extra
        structures.  Modify to use read_installed_db all the time despite
        install method.  Modify output to setup.log.full log file to increase
        readability by adding additional spacing, expanded code and available
        versions.
        * ini.h: Add new fields install_exists, source_exists and
        partial_list_display to the structure definition for package.
        * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
        pushbuttons by replacing with Radio Buttons thus allowing the
        operator to better determine which is selected.

23 years agoChanges by Brian Keener <bkeener@thesoftwaresource.com>
Corinna Vinschen [Tue, 27 Feb 2001 12:27:58 +0000 (12:27 +0000)]
Changes by Brian Keener <bkeener@thesoftwaresource.com>

        * download.cc (do_download): Add new variables total_download_bytes and
        total_download_bytes_sofar for download progress meter.  Add loop
        to accumulate the total bytes to download from the selected packages.
        * geturl.cc: Add state.h and diskfull.h to include list.  Add new
        variables gw_iprogress, gw_pprogress, gw_progress_text,
        gw_pprogress_text, and gw_iprogress_text to allow for addition of
        total packages download progress meter and disk full percent
        progress meter.  Add variables total_download_bytes and
        total_download_bytes_sofar for use by progress meters.
        (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
        gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
        allow for addition of total packages download progress meter and disk
        full percent progress meter.
        (init_dialog): Ditto.
        (progress): Ditto.
        (get_url_to_file): Ditto.
        * geturl.h: Add external definition for total_download_bytes and
        total_download_bytes_sofar.
        * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
        and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
        and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
        download meters.
        * resource.h: Add new fields for progress meters and text and update
        _APS_NEXT_CONTROL_VALUE.

23 years ago * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
Corinna Vinschen [Wed, 21 Feb 2001 12:06:28 +0000 (12:06 +0000)]
    * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
for NULL.

23 years ago * download.cc (download_one): Add missing parenthesis.
Corinna Vinschen [Wed, 21 Feb 2001 10:21:04 +0000 (10:21 +0000)]
    * download.cc (download_one): Add missing parenthesis.

23 years ago * download.cc (get_file_size): New function. Eliminates the need
Corinna Vinschen [Mon, 19 Feb 2001 18:02:19 +0000 (18:02 +0000)]
    * download.cc (get_file_size): New function. Eliminates the need
        to call `stat'.
        (download_one): Call `get_file_size' instead of `stat'. This
        workarounds a problem with mingw's `stat' call.

23 years ago * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
Earnie Boyd [Thu, 8 Feb 2001 01:59:42 +0000 (01:59 +0000)]
* Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
This is to allow cinstall to build with 2.95.2-7 and to make the
use of headers consistent.

23 years ago* Makefile.in (autoload.o): Add target to specify -fno-inline-functions cygwin-1-1-8
DJ Delorie [Tue, 26 Dec 2000 23:19:41 +0000 (23:19 +0000)]
* Makefile.in (autoload.o): Add target to specify -fno-inline-functions

23 years ago* winsup/cinstall/res.rc: Added accelerators and improved focus
DJ Delorie [Tue, 26 Dec 2000 23:15:56 +0000 (23:15 +0000)]
* winsup/cinstall/res.rc: Added accelerators and improved focus
order.

23 years ago* choose.cc (paint): Use system background color for text output. cygwin-1-1-7
Christopher Faylor [Mon, 11 Dec 2000 00:07:56 +0000 (00:07 +0000)]
* choose.cc (paint): Use system background color for text output.
* Makefile.in: Use CXX for linking and for compiling .cc files.
* configure.in: Find correct c++ compiler.
* configure: Regenerate.

23 years ago* splash.cc (load_dialog): Make message more obvious. cygwin-1-1-6
DJ Delorie [Fri, 17 Nov 2000 22:45:09 +0000 (22:45 +0000)]
* splash.cc (load_dialog): Make message more obvious.
* res.rc: Ditto.

23 years ago* Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
Christopher Faylor [Fri, 17 Nov 2000 22:17:06 +0000 (22:17 +0000)]
* Makefile.in: Use g++ to link so that libstdc++.a gets used.  This is
necessary for newer compilers.

23 years ago * desktop.cc: Include "ini.h" and "version.h".
Corinna Vinschen [Thu, 9 Nov 2000 01:40:15 +0000 (01:40 +0000)]
    * desktop.cc: Include "ini.h" and "version.h".
        (make_passwd_group): Skip the function on 9x/ME boxes when an
        older version of Cygwin has been installed which doesn't
        support mkpasswd/mkgroup on 9x/ME.
        * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
        * ini.h: ...here.

23 years ago * desktop.cc (make_passwd_group): Don't exit when started
Corinna Vinschen [Wed, 8 Nov 2000 16:24:38 +0000 (16:24 +0000)]
   * desktop.cc (make_passwd_group): Don't exit when started
       on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.

23 years ago* install.cc (do_install): Add call to set_cygdrive_flags to sync
DJ Delorie [Mon, 6 Nov 2000 17:04:14 +0000 (17:04 +0000)]
* install.cc (do_install): Add call to set_cygdrive_flags to sync
the mount modes.
* mount.cc (set_cygdrive_flags): New function.
(get_cygdrive_flags): Ditto.
(default_cygdrive): Ditto.
(set_cygdrive_flags): Ditto.
* mount.h: Add prototype for set_cygdrive_flags.

23 years ago* ini.h: add source actions cygwin-1-1-5
DJ Delorie [Mon, 23 Oct 2000 19:46:01 +0000 (19:46 +0000)]
* ini.h: add source actions
* fromcwd.cc: check for available sources
* res.rc: add checkbox bitmaps
* resource.h: ditto
* check-*.bmp: new
* choose.cc: add source column
* download.cc: download sources if called for
* install.cc: [un]install sources too

23 years ago* choose.cc (build_labels): Don't skip TRUST_PREV completely; only
DJ Delorie [Sun, 22 Oct 2000 15:38:07 +0000 (15:38 +0000)]
* choose.cc (build_labels): Don't skip TRUST_PREV completely; only
ignore it wrt full_list if there's already a version installed.
(do_choose): Sort the list.
(package_sort): New.

23 years ago* res.rc: Add more error strings.
DJ Delorie [Thu, 12 Oct 2000 19:53:48 +0000 (19:53 +0000)]
* res.rc: Add more error strings.
* resource.h: Ditto.
* iniparse.y (new_package): re-initialize if needed.
* download.cc (do_download): Keep track of errors; notify and
allow retry.
* install.cc (do_install): Ditto.

23 years agofix %.cc rule
DJ Delorie [Thu, 5 Oct 2000 16:39:58 +0000 (16:39 +0000)]
fix %.cc rule

23 years ago* desktop.cc: quote HOME and USER, don't . ./.profile
DJ Delorie [Wed, 4 Oct 2000 20:15:12 +0000 (20:15 +0000)]
* desktop.cc: quote HOME and USER, don't . ./.profile

* choose.cc (build_labels): don't include in partial list just
because there's a *previous* version available.

* install.cc (do_install): if installing from local directory with
setup.ini and the file isn't found, look in "." also.  Note errors.

23 years ago* ini.cc (do_ini): save setup.ini locally
DJ Delorie [Mon, 2 Oct 2000 16:44:43 +0000 (16:44 +0000)]
* ini.cc (do_ini): save setup.ini locally
* desktop.cc: quote escapes in prompt

23 years ago* root.cc (is_admin): New function.
DJ Delorie [Mon, 2 Oct 2000 16:28:21 +0000 (16:28 +0000)]
* root.cc (is_admin): New function.
(read_mount_table): Check for administrative priviledges and set
installation scope as appropriate.

23 years ago* nio-ftp.cc (ftp_line): handle continuations more robustly
DJ Delorie [Thu, 28 Sep 2000 21:53:39 +0000 (21:53 +0000)]
* nio-ftp.cc (ftp_line): handle continuations more robustly

23 years agocorrect a date
DJ Delorie [Tue, 26 Sep 2000 01:17:53 +0000 (01:17 +0000)]
correct a date

23 years ago* res.rc: increased the size of the site dialog (IDD_SITE) & the
DJ Delorie [Thu, 14 Sep 2000 15:56:31 +0000 (15:56 +0000)]
* res.rc: increased the size of the site dialog (IDD_SITE) & the
corresponding list box to provide for more URL's to be listed.
Modified the position of the Back, Next and Cancel buttons to
correspond to the new size of the dialog.

23 years ago* install.cc (do_install): update disk fullness once per package
DJ Delorie [Thu, 14 Sep 2000 03:14:28 +0000 (03:14 +0000)]
* install.cc (do_install): update disk fullness once per package
to improve performance

* choose.cc (create_listview): call ReleaseDC

23 years ago* mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
DJ Delorie [Wed, 13 Sep 2000 22:03:10 +0000 (22:03 +0000)]
* mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
returned, as it seems Samba 2.0.6+ returns this instead of
ERROR_PATH_NOT_FOUND

* iniparse.y: add setup-version support, fix bug in blank line
handling

23 years ago* site.cc (get_initial_list_idx): Don't default to saved URL if it refers to
Christopher Faylor [Mon, 11 Sep 2000 23:38:48 +0000 (23:38 +0000)]
* site.cc (get_initial_list_idx): Don't default to saved URL if it refers to
sources.

23 years ago* splash.cc: use version.h, not local decl
DJ Delorie [Fri, 8 Sep 2000 00:14:21 +0000 (00:14 +0000)]
* splash.cc: use version.h, not local decl
* res.rc: add "old version" message
* resource.h: ditto
* version.h: new
* fromcwd.cc (canonicalize_version): make global
* iniparse.y: add setup-version support
* inilex.l: add [exp] as alias for [test], add setup-version
* Makefile.in (version.c): add setup-version tag

* desktop.cc (do_desktop): remove 1.1 version number
(do_desktop_setup): ditto

* ini.cc (do_ini): zero out package list just in case we redo it.

This page took 0.069577 seconds and 5 git commands to generate.