From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id A49D660695 for ; Sat, 17 Oct 2020 15:46:53 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 985F821E91 for ; Sat, 17 Oct 2020 15:46:23 +0200 (CEST) Received: from server2.johndoe666.info (server2.johndoe666.info [95.85.50.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 9A42B21E4D for ; Sat, 17 Oct 2020 15:46:22 +0200 (CEST) Received: by server2.johndoe666.info (Postfix, from userid 109) id 5240342E84; Sat, 17 Oct 2020 13:46:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on server2.johndoe666.info X-Spam-Status: No, score=-102.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED,USER_IN_WELCOMELIST,USER_IN_WHITELIST autolearn=unavailable autolearn_force=no version=3.4.5-pre1 X-Spam-AuthCookie: johndoe666.info:05e947ec98ed30fed23b5b5e38dcfd86d0e30c5e Received: from mailsrv.office.adreyer.com (mailsrv [192.0.2.246]) by server2.johndoe666.info (Postfix) with ESMTP id 0B69B4027D; Sat, 17 Oct 2020 13:46:21 +0000 (UTC) Authentication-Results: mail.johndoe666.info; dmarc=none (p=none dis=none) header.from=adreyer.com Received: from vostro.office.adreyer.com (vostro.office.adreyer.com [192.168.1.15]) by mailsrv.office.adreyer.com (Postfix) with ESMTP id AF2871F6AD; Sat, 17 Oct 2020 13:46:20 +0000 (UTC) Received: by vostro.office.adreyer.com (Postfix, from userid 1000) id A8E691C605DC; Sat, 17 Oct 2020 14:46:20 +0100 (BST) From: Achim Dreyer To: pve-devel@lists.proxmox.com Cc: Achim Dreyer Date: Sat, 17 Oct 2020 14:45:56 +0100 Message-Id: <20201017134556.2871759-2-ml11045@adreyer.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201017134556.2871759-1-ml11045@adreyer.com> References: <20201017134556.2871759-1-ml11045@adreyer.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 3 AWL 0.833 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods RCVD_ILLEGAL_IP 1.3 Received: contains illegal IP address SPF_HELO_PASS -0.001 SPF: HELO matches SPF record SPF_NONE 0.001 SPF: sender does not publish an SPF Record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [centos.pm] Subject: [pve-devel] SPAM: [PATCH v2 container 1/1] Fix numbering scheme detection for CentOS Stream releases. X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Oct 2020 13:46:53 -0000 Signed-off-by: Achim Dreyer --- src/PVE/LXC/Setup/CentOS.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/LXC/Setup/CentOS.pm b/src/PVE/LXC/Setup/CentOS.pm index 0825273..77eb6f7 100644 --- a/src/PVE/LXC/Setup/CentOS.pm +++ b/src/PVE/LXC/Setup/CentOS.pm @@ -19,7 +19,7 @@ sub new { my $version; - if ($release =~ m/release\s+(\d+\.\d+)(\.\d+)?/) { + if (($release =~ m/release\s+(\d+\.\d+)(\.\d+)?/) || ($release =~ m/release\s+(\d+)/)) { if ($1 >= 5 && $1 <= 9) { $version = $1; } -- 2.28.0