summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_update_settings.php
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-01-26 13:29:14 -0200
committerRenato Botelho <renato@netgate.com>2016-01-26 13:29:14 -0200
commitecef6a27b2422be7b3951176e2937f963bdefb9c (patch)
tree5b5c4e4e44eed6459f7ab2025cbd753ad853cbf7 /src/usr/local/www/system_update_settings.php
parentf9b0a04d7b604ef3b72ce17e69f52ec8d28a06cd (diff)
downloadpfsense-ecef6a27b2422be7b3951176e2937f963bdefb9c.zip
pfsense-ecef6a27b2422be7b3951176e2937f963bdefb9c.tar.gz
Make sure we install repo package when it's not installed
Diffstat (limited to 'src/usr/local/www/system_update_settings.php')
-rw-r--r--src/usr/local/www/system_update_settings.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/system_update_settings.php b/src/usr/local/www/system_update_settings.php
index a5494fc..bdd4ac7 100644
--- a/src/usr/local/www/system_update_settings.php
+++ b/src/usr/local/www/system_update_settings.php
@@ -67,9 +67,9 @@ require("pkg-utils.inc");
if ($_POST) {
// Set the firmware branch, but only if we are not using it already
if ($_POST['fwbranch']) {
- if (($_POST['fwbranch'] == "development") && is_pkg_installed($g['product_name'] . "-repo")) {
+ if (($_POST['fwbranch'] == "development") && !is_pkg_installed($g['product_name'] . "-repo-devel")) {
pkg_switch_repo(true);
- } else if (($_POST['fwbranch'] == "stable") && is_pkg_installed($g['product_name'] . "-repo-devel")) {
+ } else if (($_POST['fwbranch'] == "stable") && !is_pkg_installed($g['product_name'] . "-repo")) {
pkg_switch_repo(false);
}
}
OpenPOWER on IntegriCloud