diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2004-12-27 22:44:30 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2004-12-27 22:44:30 +0000 |
commit | 08dbb141576adf28e3123a3580e88442d81ce04d (patch) | |
tree | f283ec127530f637dddad28abb1642b062af76ec /usr.sbin/pkg_add | |
parent | 5b2d04d5ccd32066d398f578621fb5d670a66b5a (diff) |
better message
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/pkg_delete | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/pkg_delete b/usr.sbin/pkg_add/pkg_delete index b95d6ff28dd..4f31a066a63 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.82 2004/12/15 01:07:10 espie Exp $ +# $OpenBSD: pkg_delete,v 1.83 2004/12/27 22:44:29 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -155,7 +155,11 @@ if (keys(%extra_rm) != 0) { print "Can't remove ", join(' ', @ARGV), " without also removing:\n", join(' ', keys(%extra_rm)), "\n"; if ($forced{dependencies}) { - print "(removing them as well)\n"; + if (keys(%extra_rm) > 1) { + print "(removing them as well)\n"; + } else { + print "(removing it as well)\n"; + } push(@realnames, keys(%extra_rm)); } else { $bad = 1; |