summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2011-01-06 16:53:32 -0500
committerScott Ullrich <sullrich@pfsense.org>2011-01-06 16:53:32 -0500
commit28ed552d3d62789d08fb4422c7b8457d1aaf4248 (patch)
treec0bf2c82c64c21d91ad92b37fb8ee68042d40ae8
parent550fea7a19a8bba289e7a221389da534f5df4c5d (diff)
downloadpfsense-28ed552d3d62789d08fb4422c7b8457d1aaf4248.zip
pfsense-28ed552d3d62789d08fb4422c7b8457d1aaf4248.tar.gz
Strip off the space between @depend and the package name. Otherwise it will return a space in front of the pkgname
-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 b36dd59..3f44d21 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -829,7 +829,7 @@ function delete_package($pkg) {
$static_output .= "done.\n";
update_output_window($static_output);
foreach($info as $line) {
- $depend = trim(str_replace("@pkgdep", "", $line), " \n");
+ $depend = trim(str_replace("@pkgdep ", "", $line), " \n");
delete_package($depend);
}
OpenPOWER on IntegriCloud