summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2004-12-18 14:37:31 +0000
committerMarc Espie <espie@cvs.openbsd.org>2004-12-18 14:37:31 +0000
commit9eaf819134980857755c4ba139328b121afb286e (patch)
tree62ffe02f26fc729a2d5954a81ff011096c13a54e
parentf3ecd517e3b93f4f1ef9d3207503ba94a173dc1c (diff)
if we can't find a package, and it's there to solve a dependency,
say so.
-rw-r--r--usr.sbin/pkg_add/pkg_add5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/pkg_add b/usr.sbin/pkg_add/pkg_add
index a982ad3e955..bfeed38d44e 100644
--- a/usr.sbin/pkg_add/pkg_add
+++ b/usr.sbin/pkg_add/pkg_add
@@ -1,7 +1,7 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: pkg_add,v 1.148 2004/12/18 13:34:36 espie Exp $
+# $OpenBSD: pkg_add,v 1.149 2004/12/18 14:37:30 espie Exp $
#
# Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org>
#
@@ -150,6 +150,9 @@ sub pre_add($$)
my $handle = OpenBSD::PackageLocator->find($pkg);
if (!$handle) {
+ if (defined $state->{deptree}->{$pkg}) {
+ print $state->{deptree}->{$pkg}, ":";
+ }
print "Can't find $pkg\n";
$errors++;
return undef;