summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2004-12-18 14:40:28 +0000
committerMarc Espie <espie@cvs.openbsd.org>2004-12-18 14:40:28 +0000
commitaa8ccf671140e6d454a9de81994bec3893e037e5 (patch)
treeb60399a5cda63e7e9ab04a436daa7cb49e83d8a1 /usr.sbin/pkg_add
parent9eaf819134980857755c4ba139328b121afb286e (diff)
kitchensink mode will proceed if it can't find a dependent package...
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/pkg_add6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/pkg_add b/usr.sbin/pkg_add/pkg_add
index bfeed38d44e..6d7c889dc0c 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.149 2004/12/18 14:37:30 espie Exp $
+# $OpenBSD: pkg_add,v 1.150 2004/12/18 14:40:27 espie Exp $
#
# Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org>
#
@@ -154,7 +154,9 @@ sub pre_add($$)
print $state->{deptree}->{$pkg}, ":";
}
print "Can't find $pkg\n";
- $errors++;
+ if (!$state->{forced}->{kitchensink}) {
+ $errors++;
+ }
return undef;
}
my $dir = $handle->info();