public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
From: jturney@sourceware.org
To: cygwin-apps-cvs@sourceware.org
Subject: [setup - the official Cygwin setup program used to install Cygwin and keep it up to date] branch master, updated. release_2.875-9-ge75d09f
Date: Fri, 02 Sep 2016 08:47:00 -0000	[thread overview]
Message-ID: <20160902084730.62302.qmail@sourceware.org> (raw)




https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/setup.git;h=e75d09f1cd2e1f3742bae648d48220901e2fb7b4

commit e75d09f1cd2e1f3742bae648d48220901e2fb7b4
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Thu Sep 1 20:30:44 2016 +0100

    Refuse to run on Windows XP and earlier
    
    Refuse to run on Windows versions less than 6.0 (XP or previous), as they
    are no longer supported by Cygwin.
    
    Future work: The version checked against should be read from setup.ini,
    rather than hard-coded here, so that this version of setup cannot be used to
    download a future version of Cygwin which isn't compatible with the Windows
    version it's running on...
    
    Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>


Diff:
---
 main.cc |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/main.cc b/main.cc
index 3d6e6fb..f08da00 100644
--- a/main.cc
+++ b/main.cc
@@ -290,6 +290,14 @@ WinMain (HINSTANCE h,
 			<< setup_version << endLog;
       }
 
+    /* Check if Cygwin works on this Windows version */
+    if (OSMajorVersion () < 6)
+      {
+        mbox (NULL, "Cygwin is not supported on this Windows version",
+              "Cygwin Setup", MB_ICONEXCLAMATION | MB_OK);
+        exit (1);
+      }
+
     if (help_option)
       {
 	if (invalid_option)


                 reply	other threads:[~2016-09-02  8:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20160902084730.62302.qmail@sourceware.org \
    --to=jturney@sourceware.org \
    --cc=cygwin-apps-cvs@sourceware.org \
    /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).