]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix --distribution-label erroneously requiring --development.
authorPeter Powell <petpow@saberuk.com>
Fri, 3 May 2019 14:17:15 +0000 (15:17 +0100)
committerPeter Powell <petpow@saberuk.com>
Fri, 3 May 2019 14:17:15 +0000 (15:17 +0100)
Reported by @ensra.

configure
make/common.pm

index a9d02ffc449c793bb0c7f1e958f1c580c368d7c2..269d1927f3a91f79e25cbf0dcfc5e50ec836c0da 100755 (executable)
--- a/configure
+++ b/configure
@@ -261,7 +261,7 @@ EOW
 }
 
 # Check that the user actually wants this version.
-if ($version{LABEL} ne 'release') {
+if (defined $version{REAL_LABEL}) {
        print_warning <<'EOW';
 You are building a development version. This contains code which has
 not been tested as heavily and may contain various faults which could seriously
index ba6b03f87d4472d19640e98021c0f3114578cd38..742d372245619a4138dc22119cb7cd521c9cd734 100644 (file)
@@ -68,6 +68,7 @@ sub get_version {
 
        # If the user has specified a distribution label then we use it in
        # place of the label from src/version.sh or Git.
+       $version{REAL_LABEL} = $version{LABEL};
        $version{LABEL} = shift // $version{LABEL};
 
        # If any of these fields are missing then the user has deleted the