summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/pkg_add3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/pkg_add b/usr.sbin/pkg_add/pkg_add
index f652b00e87a..f4b1f2526de 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.2 2003/10/19 18:42:55 espie Exp $
+# $OpenBSD: pkg_add,v 1.3 2003/10/20 17:29:56 espie Exp $
#
# Copyright (c) 2003 Marc Espie.
#
@@ -146,6 +146,7 @@ sub preadd
$handle->{conflicts} = $l;
if ($l->conflicts_with(installed_packages())) {
print "package $pkg has conflicts\n";
+ return undef;
}
return $handle;
}