diff options
author | Renato Botelho <renato@netgate.com> | 2017-08-10 10:31:28 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-08-10 10:31:28 -0300 |
commit | b58c1588769fe5d3e66eb90d880f98a9c0ff5beb (patch) | |
tree | 34272a8c3c1fe6acf56f6636ce057618958e4e87 /src/etc/inc | |
parent | 52e827acf2860d098c2e6ac35e8260b2bce9543c (diff) | |
download | pfsense-b58c1588769fe5d3e66eb90d880f98a9c0ff5beb.zip pfsense-b58c1588769fe5d3e66eb90d880f98a9c0ff5beb.tar.gz |
Run rc.update_pkg_metadata in background when repository changes
Diffstat (limited to 'src/etc/inc')
-rw-r--r-- | src/etc/inc/pkg-utils.inc | 4 |
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; } ?> |