From 11898ced181c6e19164b4e4e87fa13e5ec226d7d Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Mon, 20 Apr 2009 08:29:03 +0000 Subject: restore tagged user packages to functionality (for now) --- usr.sbin/pkg_add/OpenBSD/Add.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'usr.sbin/pkg_add/OpenBSD') diff --git a/usr.sbin/pkg_add/OpenBSD/Add.pm b/usr.sbin/pkg_add/OpenBSD/Add.pm index 3b9d3cec6ca..fa686c059a8 100644 --- a/usr.sbin/pkg_add/OpenBSD/Add.pm +++ b/usr.sbin/pkg_add/OpenBSD/Add.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Add.pm,v 1.87 2009/04/19 14:58:32 espie Exp $ +# $OpenBSD: Add.pm,v 1.88 2009/04/20 08:29:02 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie # @@ -148,8 +148,10 @@ sub tweak_plist_status sub tag_user_packages { - for my $pkgname (@_) { - $user_tagged->{extract_pkgname($pkgname)} = 1; + for my $set (@_) { + for my $handle ($set->newer) { + $user_tagged->{$handle->{pkgname}} = 1; + } } } -- cgit v1.2.3