From b9fdf5674d969d72e5289806da9acdacae771c65 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Thu, 15 Oct 2009 23:22:56 +0000 Subject: missed one, tell tracker this is already installed --- usr.sbin/pkg_add/OpenBSD/Handle.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/pkg_add/OpenBSD/Handle.pm b/usr.sbin/pkg_add/OpenBSD/Handle.pm index ece0cf52bb1..1be9b2bf5df 100644 --- a/usr.sbin/pkg_add/OpenBSD/Handle.pm +++ b/usr.sbin/pkg_add/OpenBSD/Handle.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Handle.pm,v 1.3 2009/10/15 11:18:48 espie Exp $ +# $OpenBSD: Handle.pm,v 1.4 2009/10/15 23:22:55 espie Exp $ # # Copyright (c) 2007-2009 Marc Espie # @@ -152,7 +152,7 @@ sub get_plist OpenBSD::Add::tweak_package_status($pkgname, $state); print "Not reinstalling $pkgname\n" if $state->{verbose} and !$handle->{tweaked}; - $state->mark_installed($pkgname); + $state->{tracker}->{installed}->{$pkgname} = 1; $location->close_now; $location->wipe_info; $handle->set_error(ALREADY_INSTALLED); -- cgit v1.2.3