diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2018-12-21 14:04:20 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2018-12-21 14:04:20 +0000 |
commit | ce491d8c9c208c49ff35b3880e6a9f2a4b6006f9 (patch) | |
tree | b40d16a9686a09a8e30f21f74b0bb9c5815d2576 /usr.sbin/pkg_add | |
parent | 95c59fb6c82535c5d96b80d76671356a5529c1f4 (diff) |
do not try merging packages that are already kept, the forward dependency
check did fail
(noticed by bluhm@)
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PkgAdd.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm b/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm index e59b39907c0..83d2c87e6b1 100644 --- a/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm +++ b/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm @@ -1,7 +1,7 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: PkgAdd.pm,v 1.107 2018/12/13 12:48:53 espie Exp $ +# $OpenBSD: PkgAdd.pm,v 1.108 2018/12/21 14:04:19 espie Exp $ # # Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org> # @@ -553,6 +553,10 @@ sub check_forward_dependencies if (!$state->defines('dontmerge')) { my $okay = 1; for my $m (keys %$bad) { + if ($set->{kept}{$m}) { + $okay = 0; + next; + } if ($set->try_merging($m, $state)) { $no_merge = 0; } else { |