diff options
author | Renato Botelho <renato@netgate.com> | 2015-11-13 14:20:29 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-11-13 14:20:29 -0200 |
commit | 82692fe1029452ec529ee28c9ca97bf6aa99cd6a (patch) | |
tree | eb758e487827717e1be638d794f1c580a5fb09bd /src/etc/inc | |
parent | 1a8258d4c5e438e9fc07f4aff3428bae0432cfbe (diff) | |
download | pfsense-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.inc | 2 |
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']); |