diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2011-01-25 11:46:58 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2011-01-25 11:46:58 +0000 |
commit | b76a97c8d4638445883f6c23ea0697db80e022f2 (patch) | |
tree | 973be78550eff35bcdc211d4f61127bc71b19dc8 | |
parent | 8e27578e39235e64029f3ad87f4965719057f029 (diff) |
prepend pkgname to ask-update prompt, so that user knows for sure which
package is asking.
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Add.pm | 4 |
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 7fce8996b00..60cfc7f25b9 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.121 2011/01/23 06:56:53 espie Exp $ +# $OpenBSD: Add.pm,v 1.122 2011/01/25 11:46:57 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> # @@ -727,7 +727,7 @@ sub prepare_for_addition my $key = "update_".OpenBSD::PackageName::splitstem($pkgname); return if $state->defines($key); if ($state->{interactive}) { - if ($state->confirm($self->{message}."\n". + if ($state->confirm($pkgname.":".$self->{message}."\n". "Do you want to update now", 0)) { return; } |