Do not call pkg_update() here since pkg_switch_repo() aldready does it

This commit is contained in:
Renato Botelho 2016-05-11 14:02:09 -03:00
parent 48d321ca07
commit 1a543cea40

View File

@ -72,10 +72,8 @@ if ($_POST) {
if ($_POST['fwbranch']) {
if (($_POST['fwbranch'] == "development") && !is_pkg_installed($g['product_name'] . "-repo-devel")) {
pkg_switch_repo(true);
pkg_update(true);
} else if (($_POST['fwbranch'] == "stable") && !is_pkg_installed($g['product_name'] . "-repo")) {
pkg_switch_repo(false);
pkg_update(true);
}
}