[patch] Setup.exe choose.cc selection enhancement based on file existence

Brian Keener bkeener@thesoftwaresource.com
Tue Feb 6 18:05:00 GMT 2001


The following change enhances the Setup.exe selection criteria for which 
files to show in the partial/full lists so that the selection criteria 
now include the installation method selected and the 
existence/non-existence of the installation file for each package as well 
as slightly different logic on Prev, Curr, and Test.
     
Sorry about the fact the attachment but the code diff was bigger than my 
email would allow me to send  but here is the Changelog entry


2001-02-05  Brian Keener   <bkeener@thesoftwaresource.com>
        *  choose.cc (paint) : modified message for nothing to download  
        vs nothing to install/update.
        (list_click) : modified 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_existance) : new method to check current existence of
        installation files based on selected installation method.
        (set_existance) : new method to set the current existence of 
        installation files based on selected installation method.
        (best_trust) : decision process modified for best trust to base 
        decision on current trust selected (IE: prev, curr, or test) and
        existence of file and installation method selected.
        (default_trust) : added logic to capture the current trust level 
        and the trust selected for the given package.
        (set_full_list) : expanded the decision criteria for displaying a 
        package in the selection list to include existence/non-existance 
        of the file and the selected installation method.
        (build_labels) : modified criteria for label addition to include
        installation method and file existence/non-existance.
        (create_listview) : modification to establish the trust on       
        packages 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 as well as setting the     
        default trust.
        (scan2) : modification to use the new method get_package_version 
        and also enhanced handling of the build for the structures       
        package and extra.
        (get_package_version) : new method to provide for reusable code  
        for determining the package version from the file name for a     
        specified trust.
        (read_installed_db) : modification to use the new method 
        get_package_version and also enhanced handling of the build for  
        the structures package and extra.
        (do_choose) : modification for additional initialization of      
        package and extra structures.  Uses read_installed_db all the    
        time despite install method.  Enhancement and changes to output  
        display for expanded code meanings and clarified output for      
        packages and available versions in the setup.log.full log file.
        *  ini.h :  added install_exists and source_exists and           
        in_partial_list to the structure definition for package.
        *  res.rc (IDD_CHOOSE) : Modify to choose dialog such that Prev, 
        Curr, and Test pushbuttons become Radio Buttons instead thus     
        allowing the operator to better determine which is selected.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo1
Type: text/x-diff
Size: 18368 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20010206/11063338/attachment.bin>


More information about the Cygwin-patches mailing list