public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: OwN-3m-All <own3mall@gmail.com>
To: cygwin@cygwin.com
Subject: Cygwin Setup - Choose Best Mirror Automatically for Automated / Silent Installs
Date: Fri, 18 Nov 2016 03:20:00 -0000	[thread overview]
Message-ID: <CAK0ZC5U9_tcsW_=EYEmfkHjWeEztOQ-ubjx9wqGdcWgrJyj4KQ@mail.gmail.com> (raw)

Hi All,

Is there a way to have the Cygwin setup utility pick a valid mirror
automatically from the list it downloads if the setup is run with the
following options:

setup-x86_64.exe --quiet-mode --root "C:\dir" --local-package-dir
"C:\dir\cygTemp" --packages "apache2"

If I run the setup utility with the parameters above, the user is
prompted to select a mirror.  This would be fine in itself if after
doing so the setup utility continued to operate in the quiet mode and
downloaded the selected packages (including dependencies for them)
automatically.  Instead, what happens is that the user selects a
mirror, and then the dialog is shown to confirm the packages even
though the --quiet-mode parameter was passed in.  So basically, the
way it works right now is not very consistent.  It should either
prompt a user to pick a mirror and then install packages quietly
without a confirmation dialog showing the packages that are going to
be installed, or a mirror should be automatically picked (select the
first one from the list the setup utility downloads), and the setup
should then continue quietly.

I'm trying to automate this as best as possible, and the only way to
do so right now is to specify the mirror the setup utility uses by
using something similar to:

setup-x86_64.exe --site "http://cygwin.mirror.constant.com/"
--quiet-mode --root "C:\dir" --local-package-dir "C:\dir\cygTemp"
--packages "apache2"

The problem with this is that it appears that mirror won't always work
with each version of Windows (at least I think that's the case based
on some strange behavior I'm seeing).

Is there a way to have the setup automatically pick a site from the
list of mirrors it downloads to use?

~
Thanks
OwN

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

             reply	other threads:[~2016-11-18  1:21 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-18  3:20 OwN-3m-All [this message]
2016-11-18  3:41 ` Andrey Repin
2016-11-18  6:04   ` OwN-3m-All
2016-11-18  6:11     ` Brian Inglis
2016-11-18  6:18       ` OwN-3m-All
2016-11-18  6:20         ` OwN-3m-All
2016-11-18  7:32           ` Andrey Repin
2016-11-18 12:59           ` Brian Inglis
2016-11-20 19:19           ` Achim Gratz
2016-11-21 13:40             ` OwN-3m-All
2016-11-21 16:17               ` Corinna Vinschen
2016-11-18  6:35         ` Andrey Repin
2016-11-18  7:13     ` Andrey Repin
2016-11-19  0:15     ` Achim Gratz
2016-11-19  2:08       ` OwN-3m-All
2016-11-19 13:42         ` OwN-3m-All
2016-11-19 14:41           ` Brian Inglis
2016-11-20 19:01           ` Jon Turney

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='CAK0ZC5U9_tcsW_=EYEmfkHjWeEztOQ-ubjx9wqGdcWgrJyj4KQ@mail.gmail.com' \
    --to=own3mall@gmail.com \
    --cc=cygwin@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).