summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-10-20 16:33:46 -0200
committerRenato Botelho <renato@netgate.com>2015-10-20 16:33:46 -0200
commit7734024685c6097cbf2727dfaaa778798307ccbe (patch)
tree7c1a1e3b9600e0eed6ffe0e39f772db4fe6680b7
parent6551511c28f7d6f478b33a13a5db1a9b78154a92 (diff)
downloadpfsense-7734024685c6097cbf2727dfaaa778798307ccbe.zip
pfsense-7734024685c6097cbf2727dfaaa778798307ccbe.tar.gz
Make get_pkg_info() add a tag saying when package is installed
-rw-r--r--src/etc/inc/pkg-utils.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/etc/inc/pkg-utils.inc b/src/etc/inc/pkg-utils.inc
index 1eca82d..230ba5c 100644
--- a/src/etc/inc/pkg-utils.inc
+++ b/src/etc/inc/pkg-utils.inc
@@ -433,6 +433,10 @@ function get_pkg_info($pkgs = 'all', $info = 'all') {
continue;
}
+ if (is_pkg_installed($pkg_info['name'])) {
+ $pkg_info['installed'] = true;
+ }
+
$pkg_info['desc'] = preg_replace('/\n+WWW:.*$/', '', $pkg_info['desc']);
$result[] = $pkg_info;
OpenPOWER on IntegriCloud