diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2005-08-16 16:24:25 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2005-08-16 16:24:25 +0000 |
commit | 8b36809a520b18156d0b2fdbaebf123e7b11f2c6 (patch) | |
tree | be89fd79490841ade8fd561ffb312f92b06420ca /usr.sbin/pkg_add/OpenBSD | |
parent | ec8d2e5cad4ef109a024c1cb84536ef7a88f94b5 (diff) |
in case we're pretending to install, there's no borked package to create.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Add.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Add.pm b/usr.sbin/pkg_add/OpenBSD/Add.pm index b59da32396b..483ee9c6abf 100644 --- a/usr.sbin/pkg_add/OpenBSD/Add.pm +++ b/usr.sbin/pkg_add/OpenBSD/Add.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Add.pm,v 1.37 2005/08/13 16:46:35 espie Exp $ +# $OpenBSD: Add.pm,v 1.38 2005/08/16 16:24:24 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -132,10 +132,12 @@ sub validate_plist($$) sub borked_installation { - my ($plist, $dir, @msg) = @_; + my ($plist, $dir, $not, @msg) = @_; + Fatal @msg if $not; use OpenBSD::PackingElement; + my $borked = borked_package($plist->pkgname()); # fix packing list for pkg_delete $plist->{items} = $plist->{done}; |