summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2009-10-15 23:22:56 +0000
committerMarc Espie <espie@cvs.openbsd.org>2009-10-15 23:22:56 +0000
commitb9fdf5674d969d72e5289806da9acdacae771c65 (patch)
tree64ae0d92dad270ed1027126d153c6ac67a6e3af1 /usr.sbin/pkg_add
parent38ed8d6b1f630ba5fa68d89cd07f6d8361fea7bd (diff)
missed one, tell tracker this is already installed
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Handle.pm4
1 files 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 <espie@openbsd.org>
#
@@ -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);