From eca3ac27f95703deb9a83d857252279906a2c3c8 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Fri, 16 Oct 2009 18:29:44 +0000 Subject: 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. --- usr.sbin/pkg_add/OpenBSD/Tracker.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/pkg_add/OpenBSD') 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 # @@ -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}; } } -- cgit v1.2.3