summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-02-14 11:59:52 -0200
committerRenato Botelho <garga@FreeBSD.org>2014-02-17 11:11:23 -0300
commite4a4ec896f59ba546740e1984408e982b266973f (patch)
treed5a2fb5d161ad0f89708271b64e64819ef380918
parent6191b3215c4e10bfe98e196291c864fb1db3d233 (diff)
downloadpfsense-e4a4ec896f59ba546740e1984408e982b266973f.zip
pfsense-e4a4ec896f59ba546740e1984408e982b266973f.tar.gz
Grab exec result just to be careful
-rw-r--r--etc/inc/pkg-utils.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index dc4ac94..1e5160a 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -567,11 +567,11 @@ function pkg_fetch_recursive($pkgname, $filename, $dependlevel = 0, $base_url =
if (isset($config['system']['pkg_nochecksig']))
$no_checksig = "--no-checksig";
- exec("/usr/local/sbin/pbi_add " . $pkgstaging . " -f -v {$no_checksig} " . escapeshellarg($fetchto) . " 2>&1", $pkgaddout, $rc);
+ $result = exec("/usr/local/sbin/pbi_add " . $pkgstaging . " -f -v {$no_checksig} " . escapeshellarg($fetchto) . " 2>&1", $pkgaddout, $rc);
pkg_debug($pkgname . " " . print_r($pkgaddout, true) . "\n");
if ($rc == 0) {
setup_library_paths();
- exec("/usr/local/sbin/pbi_info " . escapeshellarg(preg_replace('/\.pbi$/','',$filename)) . " | /usr/bin/awk '/Prefix/ {print $2}'",$pbidir);
+ $result = exec("/usr/local/sbin/pbi_info " . escapeshellarg(preg_replace('/\.pbi$/','',$filename)) . " | /usr/bin/awk '/Prefix/ {print $2}'",$pbidir);
$pbidir = $pbidir[0];
foreach(array('bin', 'sbin') as $dir) {
if(!is_dir("{$pbidir}/{$dir}"))
OpenPOWER on IntegriCloud