diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2009-11-24 11:35:19 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2009-11-24 11:35:19 +0000 |
commit | d5b0de95e83d3530c96b2ca835bb34e5dd9fb824 (patch) | |
tree | cbd0b4018a35af7d066f28d1c40521e6677fa75a | |
parent | b16bad08dcc10c54fda2589cdf3f665e47d5565f (diff) |
better
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Tracker.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Tracker.pm b/usr.sbin/pkg_add/OpenBSD/Tracker.pm index f94ad253b40..6107c1a209d 100644 --- a/usr.sbin/pkg_add/OpenBSD/Tracker.pm +++ b/usr.sbin/pkg_add/OpenBSD/Tracker.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Tracker.pm,v 1.9 2009/11/16 14:42:18 espie Exp $ +# $OpenBSD: Tracker.pm,v 1.10 2009/11/24 11:35:18 espie Exp $ # # Copyright (c) 2009 Marc Espie <espie@openbsd.org> # @@ -91,10 +91,13 @@ sub mark_cant_update sub mark_installed { my ($self, $set) = @_; + + $self->remove_set($set); + for my $n ($set->newer) { + $self->{uptodate}->{$n->pkgname} = 1; $self->{installed}->{$n->pkgname} = 1; } - $self->remove_set($set); } sub is_installed |