From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] fireinfo.cgi: Use pakfire lib to gather the pakfire version. Date: Sun, 23 Feb 2020 16:13:46 +0100 Message-ID: <20200223151346.2704-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6043405812097256669==" List-Id: --===============6043405812097256669== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Stefan Schantl --- html/cgi-bin/fireinfo.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/html/cgi-bin/fireinfo.cgi b/html/cgi-bin/fireinfo.cgi index 08fee3d8a..967e250c7 100644 --- a/html/cgi-bin/fireinfo.cgi +++ b/html/cgi-bin/fireinfo.cgi @@ -28,6 +28,7 @@ use CGI::Carp 'fatalsToBrowser'; require '/var/ipfire/general-functions.pl'; require "${General::swroot}/lang.pl"; require "${General::swroot}/header.pl"; +require '/opt/pakfire/lib/functions.pl'; =20 my $configfile =3D "/var/ipfire/main/send_profile"; =20 @@ -84,7 +85,7 @@ if ($errormessage) { } =20 my $ipfire_version =3D `cat /etc/system-release`; -my $pakfire_version =3D `cat /opt/pakfire/etc/pakfire.conf | grep "version = =3D" | cut -d\\" -f2`; +my $pakfire_version =3D &Pakfire::make_version(); my $kernel_version =3D `uname -a`; =20 &Header::openbox('100%', 'left', $Lang::tr{'fireinfo system version'}); --=20 2.25.0 --===============6043405812097256669==--