need to check that kept packages are still okay.
authorespie <espie@openbsd.org>
Sat, 7 Aug 2010 10:26:58 +0000 (10:26 +0000)
committerespie <espie@openbsd.org>
Sat, 7 Aug 2010 10:26:58 +0000 (10:26 +0000)
fixes:

sudo pkg_add -r ghostscript-8.63p13-no_x11.tgz
quirks-1.17: 1/1
ghostscript-8.63p13->ghostscript-8.63p13-no_x11 forward dependencies:
| Dependency of libspectre-0.2.6 on ghostscript-*-!no_x11 doesn't match
Merging libspectre-0.2.6->libspectre-0.2.6 (1/3)
[libspectre-0.2.6]ghostscript-8.63p13->ghostscript-8.63p13-no_x11: 3/3
Read shared items: ok

usr.sbin/pkg_add/OpenBSD/Dependencies.pm

index d73c83f..b697646 100644 (file)
@@ -1,5 +1,5 @@
 # ex:ts=8 sw=4:
-# $OpenBSD: Dependencies.pm,v 1.132 2010/06/30 10:51:04 espie Exp $
+# $OpenBSD: Dependencies.pm,v 1.133 2010/08/07 10:26:58 espie Exp $
 #
 # Copyright (c) 2005-2010 Marc Espie <espie@openbsd.org>
 #
@@ -587,7 +587,7 @@ sub solve_depends
        $self->{deplist} = {};
        delete $self->{installed};
 
-       for my $package ($self->{set}->newer) {
+       for my $package ($self->{set}->newer, $self->{set}->kept) {
                $package->{before} = [];
                for my $dep (@{$package->{plist}->{depend}}) {
                        my $v = $self->solve_dependency($state, $dep, $package);