From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Koch To: development@lists.ipfire.org Subject: [PATCH] Pakfire: Add Core-Version to "status" Date: Thu, 09 May 2019 23:55:58 +0200 Message-ID: <1557438958-21595-1-git-send-email-ipfire@starkstromkonsument.de> In-Reply-To: <1556393206-17040-2-git-send-email-ipfire@starkstromkonsument.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1194038691961291455==" List-Id: --===============1194038691961291455== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 { =20 sub status { # General info - my $return =3D "Core-Update-Level: $Conf::core_mine\n"; + my $return =3D "Core-Version: $Conf::version\n"; + $return .=3D "Core-Update-Level: $Conf::core_mine\n"; $return .=3D "Last update: " . &General::age("/opt/pakfire/db/core/mine") .= " ago\n"; $return .=3D "Last core-list update: " . &General::age("/opt/pakfire/db/lis= ts/core-list.db") . " ago\n"; $return .=3D "Last server-list update: " . &General::age("/opt/pakfire/db/l= ists/server-list.db") . " ago\n"; --=20 2.7.4 --===============1194038691961291455==--