public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* Patch for command line install/download in setup.exe
@ 2008-09-03 13:40 Ralph Hempel
  2008-09-03 13:44 ` Ralph Hempel
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Ralph Hempel @ 2008-09-03 13:40 UTC (permalink / raw)
  To: cygwin-apps

[-- Attachment #1: Type: text/plain, Size: 911 bytes --]

Some time ago, I mentioned on this list that the -D -L 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

[-- Attachment #2: downloadinstall.diff --]
[-- Type: text/x-diff, Size: 385 bytes --]

--- setup/source.cc	2008-09-03 09:29:28.593750000 -0400
+++ setup-clean/source.cc	2008-08-12 16:32:08.000000000 -0400
@@ -86,9 +86,7 @@
 void
 SourcePage::OnActivate ()
 {
-  if (DownloadOption && LocalOption)
-    source = IDC_SOURCE_NETINST;
-  else if (DownloadOption)
+  if (DownloadOption)
     source = IDC_SOURCE_DOWNLOAD;
   else if (LocalOption)
     source = IDC_SOURCE_CWD;

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-12-11 18:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-03 13:40 Patch for command line install/download in setup.exe Ralph Hempel
2008-09-03 13:44 ` Ralph Hempel
2008-09-18 14:49 ` Ralph Hempel
2008-12-05 16:25 ` [PATCH] Setup 1.7 " Ralph Hempel
2008-12-08 10:41   ` Corinna Vinschen
2008-12-08 12:46     ` Ralph Hempel
2008-12-11  1:49     ` Ralph Hempel
2008-12-11  2:55       ` Christopher Faylor
2008-12-11  3:07         ` Christopher Faylor
2008-12-11  8:25           ` Ralph Hempel
2008-12-11 18:36             ` Christopher Faylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).