diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2009-11-10 11:14:00 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2009-11-10 11:14:00 +0000 |
commit | dc9c70c619b7537adbae2719745ecb81e1647f91 (patch) | |
tree | 1752baf3e99a1edec020fa359f3c7ae99cfe2cf3 | |
parent | 4d39816ee2793a52f80eb0dee92463ebd8b00c62 (diff) |
proposing details when we remove one single package is ridiculous
-rw-r--r-- | usr.sbin/pkg_add/pkg_delete | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/pkg_delete b/usr.sbin/pkg_add/pkg_delete index ebedd89e4e9..d99dc0819ce 100644 --- a/usr.sbin/pkg_add/pkg_delete +++ b/usr.sbin/pkg_add/pkg_delete @@ -1,6 +1,6 @@ #!/usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: pkg_delete,v 1.114 2009/11/03 09:57:27 espie Exp $ +# $OpenBSD: pkg_delete,v 1.115 2009/11/10 11:13:59 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> # @@ -132,7 +132,8 @@ if (@todo > @realnames) { delete $deps{$p}; } &$show([@realnames], [keys %deps]); - if ((keys %deps) > 1 && OpenBSD::Interactive::confirm( + if (@realnames > 1 && (keys %deps) > 1 && + OpenBSD::Interactive::confirm( "Do you want details", $state->{interactive}, 1)) { $details = 1; } |