summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/pkg_delete
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pkg_add/pkg_delete')
-rw-r--r--usr.sbin/pkg_add/pkg_delete3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/pkg_delete b/usr.sbin/pkg_add/pkg_delete
index 47546600625..cc26534467d 100644
--- a/usr.sbin/pkg_add/pkg_delete
+++ b/usr.sbin/pkg_add/pkg_delete
@@ -1,6 +1,6 @@
#!/usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: pkg_delete,v 1.10 2003/11/06 17:49:31 espie Exp $
+# $OpenBSD: pkg_delete,v 1.11 2003/11/06 18:42:01 espie Exp $
#
# Copyright (c) 2003 Marc Espie.
#
@@ -272,6 +272,7 @@ sub delete_package
die "Package $pkgname real name does not match";
}
+ $ENV{'PKG_PREFIX'} = $plist->prefix();
if ($plist->has(REQUIRE)) {
$plist->get(REQUIRE)->delete($state);
}