aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-03-26 18:42:07 +0000
committerThierry Vignaud <tv@mandriva.org>2009-03-26 18:42:07 +0000
commita87009ee4939352f523c27204f20570168b7c88b (patch)
tree98eb0672c28338484c9e0c005e2b57f6a91ee61e
parent2dc7599b10e65cc060f8b06d25aef3b317fe6312 (diff)
downloadrpmdrake-a87009ee4939352f523c27204f20570168b7c88b.tar
rpmdrake-a87009ee4939352f523c27204f20570168b7c88b.tar.gz
rpmdrake-a87009ee4939352f523c27204f20570168b7c88b.tar.bz2
rpmdrake-a87009ee4939352f523c27204f20570168b7c88b.tar.xz
rpmdrake-a87009ee4939352f523c27204f20570168b7c88b.zip
(show_urpm_progress) prevent dialog to enlarge too much when
displaying downloads of media meta_data (eg: adding or updating media)
-rw-r--r--NEWS2
-rw-r--r--rpmdrake.pm2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 39b3a9a5..c6ab4e28 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- prevent dialog to enlarge too much when displaying downloads of
+ media meta_data (eg: adding or updating media)
- gurpmi.addmedia:
o fix success message when adding mirrorlist (#48112)
diff --git a/rpmdrake.pm b/rpmdrake.pm
index c5edc33c..f9cf7443 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -711,7 +711,7 @@ sub show_urpm_progress {
$label->set_label($label->get_label . N(" failed!"));
$medium = undef;
} else {
- length($file) > 60 and $file = $medium ? #-PO: We're downloading the said file from the said medium
+ $file = $medium && length($file) < 40 ? #-PO: We're downloading the said file from the said medium
N("%s from medium %s", basename($file), $medium)
: basename($file);
if ($mode eq 'start') {