From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9126 invoked by alias); 18 Nov 2016 01:21:15 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 9111 invoked by uid 89); 18 Nov 2016 01:21:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=prompted, quietly, Automated, Best X-HELO: mail-wm0-f47.google.com Received: from mail-wm0-f47.google.com (HELO mail-wm0-f47.google.com) (74.125.82.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 18 Nov 2016 01:21:04 +0000 Received: by mail-wm0-f47.google.com with SMTP id f82so7358268wmf.1 for ; Thu, 17 Nov 2016 17:21:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=CI9dHd3j3lI7uplkcetda+FiM8/EGY5v9Wc+zcf9XaE=; b=XZhcBze52u2Dn8i7KVjJNPgoS+QkIpyqqVhIzWuJIKuQuJUI6S5i1YNnCXXJODzh4m 9lKGbSma861+FIH7NKeT9saLv8q4L0O4RBbgCS6uE/I+QiyVGGzPxsKMZvsMbmDpQ1yD M0yGBrj5f7jcVQH79N5OGI9Vg+Qm8Gr2JH7lXGg51xv/v3OrAeywXDWyZV1gry/mcntb IvHPPb5RVryzQ1jd1WOejrHFACLXhlJJl7Rxs0XucLa0qFxA3nfPQzu02URl5IGvmzVV opE8F5h5fLMPnG+NFOqyHM9X5EFNynJRieEh7HFbv8ZpX9ZaUt8cd7I5Khk0ENt6h6+C yC2w== X-Gm-Message-State: ABUngvdDdjhMLlodH/aDEkN4RpH0ta3pRhZnny/uvjXYwgKmK/4Bx1cnHxVOCc4duVK7UR08KcoE8duqncQNiQ== X-Received: by 10.28.69.217 with SMTP id l86mr18631255wmi.129.1479432061496; Thu, 17 Nov 2016 17:21:01 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.75.71 with HTTP; Thu, 17 Nov 2016 17:21:01 -0800 (PST) From: OwN-3m-All Date: Fri, 18 Nov 2016 03:20:00 -0000 Message-ID: Subject: Cygwin Setup - Choose Best Mirror Automatically for Automated / Silent Installs To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg00215.txt.bz2 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