summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-07-01 10:57:26 -0300
committerRenato Botelho <renato@netgate.com>2015-07-01 10:57:26 -0300
commitfad3ad5973356a8d2526697d5a96782b8697cf14 (patch)
treee702a8a73621486c86d43f425a5d87289f7f37a6 /etc
parent6a3380dd99f1321c742dc49fecdcabeae2c2b73f (diff)
downloadpfsense-fad3ad5973356a8d2526697d5a96782b8697cf14.zip
pfsense-fad3ad5973356a8d2526697d5a96782b8697cf14.tar.gz
Fix install_package() return for failure
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pkg-utils.inc2
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;
}
OpenPOWER on IntegriCloud