summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2005-03-09 11:53:58 +0000
committerMarc Espie <espie@cvs.openbsd.org>2005-03-09 11:53:58 +0000
commitfc53a8b28ac25bacb30b18fa5781efeab1f5c30f (patch)
tree45e9cf0a3538eb61adb583d028ee9b4ec0f68ec2
parent8a54f0b0c1af7a2a5e661dfd2d8ea74b7d0052c0 (diff)
just clue() the first time a library is not found.
More clues are generally useless...
-rw-r--r--usr.sbin/pkg_add/pkg_add6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/pkg_add b/usr.sbin/pkg_add/pkg_add
index b9b34d3793e..3766fa97296 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.172 2005/03/09 11:46:07 espie Exp $
+# $OpenBSD: pkg_add,v 1.173 2005/03/09 11:53:57 espie Exp $
#
# Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org>
#
@@ -663,7 +663,7 @@ sub install_package
if (!lookup_library($state, $spec, $plist,
$handle->{solved_dependencies}, 0)) {
Warn "Can't install $pkg: lib not found $spec\n";
- clue($handle->{solved_dependencies});
+ clue($handle->{solved_dependencies}) if $okay;
$okay = 0;
}
}
@@ -673,7 +673,7 @@ sub install_package
if (!lookup_library($state, $lib->{name}, $plist,
$handle->{solved_dependencies}, 1, $extra)) {
Warn "Can't install $pkg: lib not found ", $lib->{name}, "\n";
- clue($extra);
+ clue($extra) if $okay;
$okay = 0;
}
}