Pakfire: Add Core-Version to "status"

Add the IPFire-Core-Version to the status message.

Signed-off-by: Alexander Koch <ipfire@starkstromkonsument.de>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Alexander Koch
2019-05-09 23:55:58 +02:00
committed by Michael Tremer
parent b8b1f9eabe
commit 8c072c5c43

View File

@@ -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";