summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2004-10-05 19:52:45 +0000
committerMarc Espie <espie@cvs.openbsd.org>2004-10-05 19:52:45 +0000
commitd5b26286d5d56be00d1cc56a3a3e6e7115998305 (patch)
tree6ae989c71bd072219efd68084506195c2e25788e
parent7dd131084e34f4727b58d59430a26a16cad19f7d (diff)
make a list of all conflicts.
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgCfl.pm10
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgCfl.pm b/usr.sbin/pkg_add/OpenBSD/PkgCfl.pm
index aed27e04558..dab2affb809 100644
--- a/usr.sbin/pkg_add/OpenBSD/PkgCfl.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PkgCfl.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: PkgCfl.pm,v 1.5 2004/09/24 08:46:04 espie Exp $
+# $OpenBSD: PkgCfl.pm,v 1.6 2004/10/05 19:52:44 espie Exp $
#
# Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org>
#
@@ -57,13 +57,11 @@ sub make_conflict_list($)
sub conflicts_with
{
my ($self, @pkgnames) = @_;
+ my @l = ();
for my $cfl (@$self) {
- my @l = &$cfl(@pkgnames);
- if (@l) {
- return @l;
- }
+ push(@l, &$cfl(@pkgnames));
}
- return 0;
+ return @l;
}
1;