diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2009-10-16 18:29:44 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2009-10-16 18:29:44 +0000 |
commit | eca3ac27f95703deb9a83d857252279906a2c3c8 (patch) | |
tree | 47275758d2086189302046bf07318cfb7992b8d2 /usr.sbin/pkg_add/OpenBSD | |
parent | 56fa722071ce7b3a57553f37e3538ac1bf5ea103 (diff) |
ouch. delete is not undef. We need to make sure the entries vanish,
otherwise, find_dep_in_stuff_to_install will still find the key.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Tracker.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Tracker.pm b/usr.sbin/pkg_add/OpenBSD/Tracker.pm index c4563356bda..fa761ca4ace 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.2 2009/10/15 18:32:11 espie Exp $ +# $OpenBSD: Tracker.pm,v 1.3 2009/10/16 18:29:43 espie Exp $ # # Copyright (c) 2009 Marc Espie <espie@openbsd.org> # @@ -54,11 +54,11 @@ sub mark_installed { my ($self, $set) = @_; for my $n ($set->newer) { - undef $self->{to_install}->{$n->pkgname}; + delete $self->{to_install}->{$n->pkgname}; $self->{installed}->{$n->pkgname} = 1; } for my $n ($set->older) { - undef $self->{to_update}->{$n->pkgname}; + delete $self->{to_update}->{$n->pkgname}; } } |