From patchwork Fri May 10 07:55:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Koch X-Patchwork-Id: 2248 Return-Path: Received: from mail01.ipfire.org (unknown [172.28.1.200]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail01.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web07.i.ipfire.org (Postfix) with ESMTPS id 828C387AF61 for ; Thu, 9 May 2019 22:56:19 +0100 (BST) Received: from mail01.i.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 450RxY2Lyxz5Kk9L; Thu, 9 May 2019 22:56:17 +0100 (BST) Received: from nx107.node01.secure-mailgate.com (nx107.node01.secure-mailgate.com [89.22.108.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPS id 450RxT0Vw6z56Xt3 for ; Thu, 9 May 2019 22:56:11 +0100 (BST) Received: from dehamd003.servertools24.de ([31.47.254.18]) by node01.secure-mailgate.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1hOr1H-000334-Qq for development@lists.ipfire.org; Thu, 09 May 2019 23:56:04 +0200 Received: from localhost.localdomain (dslb-094-218-246-002.094.218.pools.vodafone-ip.de [94.218.246.2]) by dehamd003.servertools24.de (Postfix) with ESMTPSA id B238682960 for ; Thu, 9 May 2019 23:55:56 +0200 (CEST) From: Alexander Koch To: development@lists.ipfire.org Subject: [PATCH] Pakfire: Add Core-Version to "status" Date: Thu, 9 May 2019 23:55:58 +0200 Message-Id: <1557438958-21595-1-git-send-email-ipfire@starkstromkonsument.de> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1556393206-17040-2-git-send-email-ipfire@starkstromkonsument.de> References: <1556393206-17040-2-git-send-email-ipfire@starkstromkonsument.de> X-Originating-IP: 31.47.254.18 X-SecureMailgate-Domain: dehamd003.servertools24.de X-SecureMailgate-Username: 31.47.254.18 X-SecureMailgate-Outgoing-Class: ham X-SecureMailgate-Outgoing-Evidence: Combined (0.09) X-Recommended-Action: accept X-Filter-ID: Mvzo4OR0dZXEDF/gcnlw0R4iIUvzjp5U0k+OHPPhRGapSDasLI4SayDByyq9LIhVwYx23KzoQdfv LqsPLMz57UTNWdUk1Ol2OGx3IfrIJKywOmJyM1qr8uRnWBrbSAGDjJTO55kJBbv01x7dn2l3rPNh vhTXFC3uEZfNFh1aVkTnx8yeplRO3sLIqUlSH7OGu1/V+XsBCv+37pGq6eEH/ZOIWFXUh+IpRF9t B9BlKGgqiQyFiY4MkwUDnmHVPmgaLwLttZCuueq0/bsif7I4E0dO1ihNTNoIY+uvgLsSnaWurJgD argkG9PATBdWslmXeBBXj/FLZHcMxTpe0TqFxea3RoZYudjXpS9urC5NEuzH9Rt64qK6xgEbUyz8 b+ZxKtxIULowMEFNxFnMw43xHnL8t5Sf00iCgTacju14zsbuddEhLZzucArTwFf/Rxyvc9yYGhUD 2hGyiZO+qkiw0xCAcWuOOohc3fM6Q9TCJMvXs2KsRjKrCowEavDwQuKoRWe/BLbgLK4nr64Lz0+T 5joF1cwbZEcJthebTJehPr1heyJUXnB99bIX9h11Era+W8XUES5zefmADtIua3Ur6eEiz00XkiFq q6ASUKX0g2JWgWWsfzmdEBxk/w4+z2XWK+ueo9UGfn1iavZZfv6xve7QRc5rOZ0PAhMLU+YkKcQU rQwlc6/2blujkzCThGJ46QTJqE+gTD3LxkH8+rmQhCWb0WMvKEIqaiGxrQ9XnVcPUwgpFy4LeRiA Yk3Sh5L+g9gI+z7YmwUIQUXy1WNPC/PFg/2TMHL3jlu0UEfHKQOdDKRu5EcLafNyIMGZ2rQHjSYx QASmTb9Rs/1Qc+kwSqt+KbM2e/itmfh8ZdciY4d3K7sbcvfLVVW/NWRoQALFVNso2Q1Jiv5TUuMp WBEuNmGc+45UkkR7+Qos4inpA1N7LIVjwaWbNGYgA6dL4YRfk5tbQM9qeegCGHuKh3ZLPU7Mv6DX thHPMQjUBleczIM3oto0tveWGbkxfhWtKX3ek4SBLUeK4fGRQSE+/yr+DOUDCIIcKXYGfTVBO2Xo H5rxRIfd0bAuQbjqt+XCpWwAmE2owUB6yEduhvNKA0H0Sg== X-Report-Abuse-To: spam@node01.secure-mailgate.com Authentication-Results: mail01.ipfire.org; dkim=none; dmarc=none; spf=pass (mail01.ipfire.org: domain of ipfire@starkstromkonsument.de designates 89.22.108.107 as permitted sender) smtp.mailfrom=ipfire@starkstromkonsument.de X-Rspamd-Queue-Id: 450RxT0Vw6z56Xt3 X-Spamd-Result: default: False [-6.86 / 11.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_XOIP(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:89.22.108.0/24]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[development@lists.ipfire.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[starkstromkonsument.de]; MX_GOOD(-0.01)[mail.starkstromkonsument.de]; RCVD_IN_DNSWL_NONE(0.00)[107.108.22.89.list.dnswl.org : 127.0.5.0]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM(-2.96)[-0.986,0]; IP_SCORE(-1.67)[ipnet: 89.22.96.0/19(-4.89), asn: 45031(-3.36), country: DE(-0.09)]; RECEIVED_SPAMHAUS_PBL(0.00)[2.246.218.94.zen.spamhaus.org : 127.0.0.11]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:45031, ipnet:89.22.96.0/19, country:DE]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-2.92)[99.67%]; FROM_EQ_ENVFROM(0.00)[] X-Rspamd-Server: mail01.i.ipfire.org X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Add the IPFire-Core-Version to the status message. Signed-off-by: Alexander Koch --- src/pakfire/lib/functions.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pakfire/lib/functions.pl b/src/pakfire/lib/functions.pl index 9ed911d..460eaf3 100644 --- a/src/pakfire/lib/functions.pl +++ b/src/pakfire/lib/functions.pl @@ -925,7 +925,8 @@ sub reboot_required { sub status { # General info - my $return = "Core-Update-Level: $Conf::core_mine\n"; + my $return = "Core-Version: $Conf::version\n"; + $return .= "Core-Update-Level: $Conf::core_mine\n"; $return .= "Last update: " . &General::age("/opt/pakfire/db/core/mine") . " ago\n"; $return .= "Last core-list update: " . &General::age("/opt/pakfire/db/lists/core-list.db") . " ago\n"; $return .= "Last server-list update: " . &General::age("/opt/pakfire/db/lists/server-list.db") . " ago\n";