summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2017-08-10 10:31:28 -0300
committerRenato Botelho <renato@netgate.com>2017-08-10 10:31:28 -0300
commitb58c1588769fe5d3e66eb90d880f98a9c0ff5beb (patch)
tree34272a8c3c1fe6acf56f6636ce057618958e4e87 /src/etc
parent52e827acf2860d098c2e6ac35e8260b2bce9543c (diff)
downloadpfsense-b58c1588769fe5d3e66eb90d880f98a9c0ff5beb.zip
pfsense-b58c1588769fe5d3e66eb90d880f98a9c0ff5beb.tar.gz
Run rc.update_pkg_metadata in background when repository changes
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/inc/pkg-utils.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/etc/inc/pkg-utils.inc b/src/etc/inc/pkg-utils.inc
index e342d94..cb805eb 100644
--- a/src/etc/inc/pkg-utils.inc
+++ b/src/etc/inc/pkg-utils.inc
@@ -1282,7 +1282,9 @@ function pkg_switch_repo($path) {
file_put_contents("/usr/local/etc/pkg.conf", $pkg_conf);
}
- return pkg_update(true);
+ /* Update pfSense_version cache */
+ mwexec_bg("/etc/rc.update_pkg_metadata now");
+ return;
}
?>
OpenPOWER on IntegriCloud