From a6b718ed5775ddbb6d43ab2b8432523c122762f1 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Tue, 12 Jul 2011 10:09:53 +0000 Subject: tweak: need -a -a to reverse @option manual-install --- usr.sbin/pkg_add/OpenBSD/Add.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/pkg_add/OpenBSD/Add.pm') diff --git a/usr.sbin/pkg_add/OpenBSD/Add.pm b/usr.sbin/pkg_add/OpenBSD/Add.pm index 2e20ebbe9a7..91d0502e78b 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.123 2011/06/20 09:46:22 espie Exp $ +# $OpenBSD: Add.pm,v 1.124 2011/07/12 10:09:52 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie # @@ -127,7 +127,7 @@ sub tweak_package_status return 0 unless is_installed($pkgname); return 0 unless $user_tagged->{$pkgname}; my $plist = OpenBSD::PackingList->from_installation($pkgname); - if ($plist->has('manual-installation') && $state->{automatic}) { + if ($plist->has('manual-installation') && $state->{automatic} > 1) { delete $plist->{'manual-installation'}; $plist->to_installation; return 1; -- cgit v1.2.3