summaryrefslogtreecommitdiffstats
path: root/src/etc/inc
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-11-13 14:20:29 -0200
committerRenato Botelho <renato@netgate.com>2015-11-13 14:20:29 -0200
commit82692fe1029452ec529ee28c9ca97bf6aa99cd6a (patch)
treeeb758e487827717e1be638d794f1c580a5fb09bd /src/etc/inc
parent1a8258d4c5e438e9fc07f4aff3428bae0432cfbe (diff)
downloadpfsense-82692fe1029452ec529ee28c9ca97bf6aa99cd6a.zip
pfsense-82692fe1029452ec529ee28c9ca97bf6aa99cd6a.tar.gz
Add broken information on get_pkg_info(), it means config.xml contain package but binary pkg is not installed
Diffstat (limited to 'src/etc/inc')
-rw-r--r--src/etc/inc/pkg-utils.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/etc/inc/pkg-utils.inc b/src/etc/inc/pkg-utils.inc
index f4da7ff..f2dad80 100644
--- a/src/etc/inc/pkg-utils.inc
+++ b/src/etc/inc/pkg-utils.inc
@@ -451,6 +451,8 @@ function get_pkg_info($pkgs = 'all', $info = 'all') {
}
$pkg_info['installed_version'] = str_replace("\n", "", $out);
+ } else if (is_package_installed($pkg_info['shortname'])) {
+ $pkg_info['broken'] = true;
}
$pkg_info['desc'] = preg_replace('/\n+WWW:.*$/', '', $pkg_info['desc']);
OpenPOWER on IntegriCloud