diff options
author | Renato Botelho <renato@netgate.com> | 2015-07-01 10:57:26 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-07-01 10:57:26 -0300 |
commit | fad3ad5973356a8d2526697d5a96782b8697cf14 (patch) | |
tree | e702a8a73621486c86d43f425a5d87289f7f37a6 /etc | |
parent | 6a3380dd99f1321c742dc49fecdcabeae2c2b73f (diff) | |
download | pfsense-fad3ad5973356a8d2526697d5a96782b8697cf14.zip pfsense-fad3ad5973356a8d2526697d5a96782b8697cf14.tar.gz |
Fix install_package() return for failure
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pkg-utils.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index eaa65fa..c2da5dd 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -442,7 +442,7 @@ function sync_package($package_name) { } else { log_error("Reinstalling package {$package['name']} because its include file({$include_file}) is missing!"); uninstall_package($package['name']); - if (install_package($package['name']) < 0) { + if (install_package($package['name']) != 0) { log_error("Reinstalling package {$package['name']} failed. Take appropriate measures!!!"); return; } |