Patch for command line install/download in setup.exe

Ralph Hempel rhempel@bmts.com
Thu Sep 18 14:49:00 GMT 2008


Sorry for resubmitting this, but I got no response from the setup
maintainer(s) and wanted to be sure it does not fall between the
cracks before the next release... I'm sure everyone is very busy.

Some time ago, I mentioned on this list that the -D -L command
line options for setup.exe don't operate quite the same as the
radio buttons on the setup dialog.

The operation I ended up describing was:

1. last-action should be consulted only if _neither_ -D nor -L are given
2. if -D is given, then download to local directory only
3. if -L is given, then install from local directory only
4. if both -D and -L are given, download and install

The attached patch to source.cc (HEAD) accomplishes this with
an absolute minimum set of changes. I have tested this patch using the
following command lines:

setup -L    -> sets the radio button for a local install
setup -D    -> sets the radio button for download only
setup -D -L -> sets the radio button for download and install
setup       -> sets the radio button to the previous(default) state

Please consider adding this to the current setup.exe source.

Cheers, Ralph




-------------- next part --------------
A non-text attachment was scrubbed...
Name: downloadinstall.diff
Type: text/x-diff
Size: 386 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20080918/6154819e/attachment.bin>


More information about the Cygwin-apps mailing list