diff options
author | Renato Botelho <renato@netgate.com> | 2017-08-10 10:31:28 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-08-15 13:31:22 -0300 |
commit | 998a9d62e90f9addb2bc585cc0058f2492bf7b43 (patch) | |
tree | 0394ada8858683c6b0fcbd5645ead518b6af8456 /src | |
parent | df464c21e0adfbb845ce38ede5e289b21c8ed083 (diff) | |
download | pfsense-998a9d62e90f9addb2bc585cc0058f2492bf7b43.zip pfsense-998a9d62e90f9addb2bc585cc0058f2492bf7b43.tar.gz |
Run rc.update_pkg_metadata in background when repository changes
Diffstat (limited to 'src')
-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 8262936..6de5edd 100644 --- a/src/etc/inc/pkg-utils.inc +++ b/src/etc/inc/pkg-utils.inc @@ -1299,7 +1299,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; } ?> |