diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2004-11-11 11:51:54 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2004-11-11 11:51:54 +0000 |
commit | b842578bc80b961af0f55d2a6ad7c1dab12e1191 (patch) | |
tree | 536e4d18f036c29f0a0af55243f72c2fa7acd91e /usr.sbin/pkg_add | |
parent | 27392fa00fa30d31e4646e377f239bf2d6409e72 (diff) |
synch validate_plist
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Delete.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Delete.pm b/usr.sbin/pkg_add/OpenBSD/Delete.pm index 6acc7b6ffdb..b99f3b63dca 100644 --- a/usr.sbin/pkg_add/OpenBSD/Delete.pm +++ b/usr.sbin/pkg_add/OpenBSD/Delete.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Delete.pm,v 1.7 2004/11/11 11:16:39 espie Exp $ +# $OpenBSD: Delete.pm,v 1.8 2004/11/11 11:51:53 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -45,8 +45,9 @@ sub manpages_unindex sub validate_plist($$) { - my ($plist, $destdir) = @_; + my ($plist, $state) = @_; + my $destdir = $state->{destdir}; my $problems = 0; my $totsize = 0; for my $item (@{$plist->{items}}) { @@ -86,7 +87,7 @@ sub delete_package Fatal "Package $pkgname real name does not match"; } - validate_plist($plist, $state->{destdir}); + validate_plist($plist, $state); delete_plist($plist, $state); } |