[freeside-commits] branch FREESIDE_4_BRANCH updated. ae1138aab04dbb2b84830cee9807bcb4a46987a2

Ivan Kohler ivan at freeside.biz
Wed Sep 18 19:16:32 PDT 2019


The branch, FREESIDE_4_BRANCH has been updated
       via  ae1138aab04dbb2b84830cee9807bcb4a46987a2 (commit)
      from  d6197d0cce537b7bbdd0f47db1351031e2c79bfa (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit ae1138aab04dbb2b84830cee9807bcb4a46987a2
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Sep 18 19:15:50 2019 -0700

    show deb pkg version

diff --git a/httemplate/view/Status.html b/httemplate/view/Status.html
index af58f3509..dbe08b5bc 100644
--- a/httemplate/view/Status.html
+++ b/httemplate/view/Status.html
@@ -30,6 +30,14 @@ if ( ! $@ && $os =~ /^\s*Description:\s*(.+)$/ ) {
   $os = "Debian $deb_version";
 }
 
+my $pkg_version = '';
+-e '/usr/bin/dpkg-query'
+  and run( ['/usr/bin/dpkg-query',
+              '--showformat=${Version}', '--show', 'freeside'
+           ],
+           '>', \$pkg_version
+         );
+
 ( my $perl_ver = $^V ) =~ s/^v//;
 
 my $db = driver_name;
@@ -58,6 +66,13 @@ tie my %status, 'Tie::IxHash',
     { 'title' => 'Freeside version',
       'value' => $FS::VERSION,
     },
+    ( length($pkg_version)
+        ? ( { 'title' => 'Package version',
+              'value' => $pkg_version,
+            },
+          )
+        : ()
+    ),
     { 'title' => 'Operating System',
       'value' => $os,
     },

-----------------------------------------------------------------------

Summary of changes:
 httemplate/view/Status.html | 15 +++++++++++++++
 1 file changed, 15 insertions(+)




More information about the freeside-commits mailing list