aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install/delete
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2008-05-03 22:56:50 +0000
committerPav Lucistnik <pav@FreeBSD.org>2008-05-03 22:56:50 +0000
commit2b520e6990511664a2f60bb78261e376c9393971 (patch)
tree047e0d070e77398a2c7167602f4bfa0c7a91be2a /usr.sbin/pkg_install/delete
parent72d9df0aa497e258050f852fac6b6610b6516e20 (diff)
Notes
Diffstat (limited to 'usr.sbin/pkg_install/delete')
-rw-r--r--usr.sbin/pkg_install/delete/perform.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/pkg_install/delete/perform.c b/usr.sbin/pkg_install/delete/perform.c
index aa1047cc0d0d..1519fd7d221a 100644
--- a/usr.sbin/pkg_install/delete/perform.c
+++ b/usr.sbin/pkg_install/delete/perform.c
@@ -122,7 +122,7 @@ static int
pkg_do(char *pkg)
{
FILE *cfile;
- char *deporigin, **deporigins = NULL, **depnames = NULL, **depmatches, home[FILENAME_MAX];
+ char *deporigin, **deporigins = NULL, **depnames = NULL, ***depmatches, home[FILENAME_MAX];
PackingList p;
int i, len;
int isinstalled;
@@ -295,7 +295,10 @@ pkg_do(char *pkg)
if (depmatches) {
for (i = 0; i < dep_count; i++) {
if (depmatches[i]) {
- undepend(depmatches[i], pkg);
+ char **tmp = depmatches[i];
+ int j;
+ for (j = 0; tmp[j] != NULL; j++)
+ undepend(tmp[j], pkg);
} else if (depnames[i]) {
undepend(depnames[i], pkg);
}