diff options
| author | Pav Lucistnik <pav@FreeBSD.org> | 2008-05-03 22:56:50 +0000 |
|---|---|---|
| committer | Pav Lucistnik <pav@FreeBSD.org> | 2008-05-03 22:56:50 +0000 |
| commit | 2b520e6990511664a2f60bb78261e376c9393971 (patch) | |
| tree | 047e0d070e77398a2c7167602f4bfa0c7a91be2a /usr.sbin/pkg_install/delete | |
| parent | 72d9df0aa497e258050f852fac6b6610b6516e20 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/pkg_install/delete')
| -rw-r--r-- | usr.sbin/pkg_install/delete/perform.c | 7 |
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); } |
