From b58c1588769fe5d3e66eb90d880f98a9c0ff5beb Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Thu, 10 Aug 2017 10:31:28 -0300 Subject: Run rc.update_pkg_metadata in background when repository changes --- src/etc/inc/pkg-utils.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/etc/inc') 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; } ?> -- cgit v1.1