From: Ralph Hempel <rhempel@bmts.com>
To: cygwin-apps@cygwin.com
Subject: Patch for command line install/download in setup.exe
Date: Wed, 03 Sep 2008 13:40:00 -0000 [thread overview]
Message-ID: <48BE93AB.5090005@bmts.com> (raw)
[-- 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;
next reply other threads:[~2008-09-03 13:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-03 13:40 Ralph Hempel [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48BE93AB.5090005@bmts.com \
--to=rhempel@bmts.com \
--cc=cygwin-apps@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).