diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2009-11-08 11:31:38 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2009-11-08 11:31:38 +0000 |
commit | 10774eb97fd32c01ddd778bc4d75708d06bddb87 (patch) | |
tree | 0c098240055d5430fcdc67b415b083593ce3f8e4 /usr.sbin/pkg_add | |
parent | 64fb7208ebfacb8c8dfee6cb22778c3fc601e53f (diff) |
bug-fix: if we can't find the package, it makes no sense to look in a
non-existent location...
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Handle.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Handle.pm b/usr.sbin/pkg_add/OpenBSD/Handle.pm index 54d4ea59fd0..f7affacf1c2 100644 --- a/usr.sbin/pkg_add/OpenBSD/Handle.pm +++ b/usr.sbin/pkg_add/OpenBSD/Handle.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Handle.pm,v 1.7 2009/11/08 11:18:41 espie Exp $ +# $OpenBSD: Handle.pm,v 1.8 2009/11/08 11:31:37 espie Exp $ # # Copyright (c) 2007-2009 Marc Espie <espie@openbsd.org> # @@ -226,6 +226,7 @@ sub complete if (!defined $handle->{location}) { $handle->get_location($state); } + return if $handle->has_error; if (!defined $handle->{plist}) { $handle->get_plist($state); } |