From 28ed552d3d62789d08fb4422c7b8457d1aaf4248 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 6 Jan 2011 16:53:32 -0500 Subject: Strip off the space between @depend and the package name. Otherwise it will return a space in front of the pkgname --- etc/inc/pkg-utils.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.1