summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-08-06 21:33:36 +0000
committerErmal <eri@pfsense.org>2010-08-06 21:34:06 +0000
commit466f7000a13e1e0cf298a0191225024aa5eb7a60 (patch)
treee5132cabf24dc6331ef134a3bd91cba428feca48 /etc
parent50718c4680fe37a77e3468cc6d02272f11cdd806 (diff)
downloadpfsense-466f7000a13e1e0cf298a0191225024aa5eb7a60.zip
pfsense-466f7000a13e1e0cf298a0191225024aa5eb7a60.tar.gz
Use global to not cause breakage if path changes.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pkg-utils.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index 4950990..1434e25 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -785,7 +785,7 @@ function delete_package_recursive($pkg) {
exec("/usr/sbin/pkg_info -r {$pkg} 2>&1", $info);
remove_freebsd_package($pkg);
$pkgdb = "";
- exec("/bin/ls /var/db/pkg", $pkgdb);
+ exec("/bin/ls {$g['vardb_path']}/pkg", $pkgdb);
foreach($info as $line) {
$depend = trim(array_pop(explode(":", $line)));
if(in_array($depend, $pkgdb))
OpenPOWER on IntegriCloud