diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2009-12-28 21:28:36 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2009-12-28 21:28:36 +0000 |
commit | 28740fe51ae5c074ed5577d884652903b3129130 (patch) | |
tree | e90ef1fc7ba40c16068391b7354cca2b97db2b3c /usr.sbin | |
parent | 432ca01d60d5ea7a97399fa6447e05cf6c002313 (diff) |
new method for adjusting forward dependencies, much simpler.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/ForwardDependencies.pm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/ForwardDependencies.pm b/usr.sbin/pkg_add/OpenBSD/ForwardDependencies.pm index bdf8aa5eb33..013e272bc25 100644 --- a/usr.sbin/pkg_add/OpenBSD/ForwardDependencies.pm +++ b/usr.sbin/pkg_add/OpenBSD/ForwardDependencies.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: ForwardDependencies.pm,v 1.2 2009/12/28 19:27:58 espie Exp $ +# $OpenBSD: ForwardDependencies.pm,v 1.3 2009/12/28 21:28:35 espie Exp $ # # Copyright (c) 2009 Marc Espie <espie@openbsd.org> # @@ -47,7 +47,12 @@ sub adjust for my $check ($deps_f->list) { if (defined $set->{older}->{$check}) { my $r = $set->{older}->{$check}->{update_found}->pkgname; - $state->say("Should adjust $check to $r in $f"); + $state->say("Adjusting $check to $r in $f") + if $state->verbose >= 3; + if ($check ne $r) { + $deps_f->delete($check)->add($r); + } + OpenBSD::RequiredBy->new($r)->add($f); } } } |