summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/Add.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2011-07-12 10:09:53 +0000
committerMarc Espie <espie@cvs.openbsd.org>2011-07-12 10:09:53 +0000
commita6b718ed5775ddbb6d43ab2b8432523c122762f1 (patch)
tree0be6c3d4c31372dc6101a8fe658a7f083422a121 /usr.sbin/pkg_add/OpenBSD/Add.pm
parentc1254ada3c48e1f99938ec17d7199c992abd892e (diff)
tweak: need -a -a to reverse @option manual-install
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Add.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Add.pm4
1 files changed, 2 insertions, 2 deletions
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 <espie@openbsd.org>
#
@@ -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;