diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-05-03 14:56:39 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-05-03 14:56:39 +0000 |
commit | c2c124f216c0184c5c145eb8e403369937fe7aa6 (patch) | |
tree | c5350acae21dc887d955788e63d478b67a5d394d | |
parent | ffd3d851104f33221b432d1ad1d5bc94e8edbff9 (diff) | |
download | urpmi-c2c124f216c0184c5c145eb8e403369937fe7aa6.tar urpmi-c2c124f216c0184c5c145eb8e403369937fe7aa6.tar.gz urpmi-c2c124f216c0184c5c145eb8e403369937fe7aa6.tar.bz2 urpmi-c2c124f216c0184c5c145eb8e403369937fe7aa6.tar.xz urpmi-c2c124f216c0184c5c145eb8e403369937fe7aa6.zip |
display "In order to satisfy the '%s' dependency, one of the following
packages is needed:" so that user can understand what dependency is used
(as suggested by Guillaume Rousse on cooker)
-rw-r--r-- | NEWS | 2 | ||||
-rwxr-xr-x | urpmi | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -9,6 +9,8 @@ o display "removing package ..." when removing, not before. o display "removing package ..." when upgrading package (may be too verbose though) + o display "In order to satisfy the '%s' dependency, one of the following + packages is needed:" so that user can understand what dependency is used - for rpmdrake o make translate_why_removed() safe to call (cf bug #28613) @@ -428,7 +428,7 @@ if (@src_names) { } sub ask_choice { - my ($urpm, $_db, $_state, $choices) = @_; + my ($urpm, $_db, $_state, $choices, $virtual_pkg_name) = @_; my $n = 1; #- default value. my (@l) = map { my ($name, $summary) = (scalar($_->fullname), translate($_->summary)); @@ -444,7 +444,7 @@ sub ask_choice { } @$choices; if (@l > 1 && !$urpm->{options}{auto}) { - print N("One of the following packages is needed:"), "\n"; + print N("In order to satisfy the '%s' dependency, one of the following packages is needed:", $virtual_pkg_name), "\n"; my $i = 0; foreach (@l) { print " " . ++$i . "- $_\n" } $n = message_input(N("What is your choice? (1-%d) ", $i), undef, range_min => 0, range => $i); |