diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-09-30 01:37:22 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-09-30 01:37:22 +0000 |
commit | 146d12a4aa709825665dde89c676b0cefa5f353a (patch) | |
tree | f26e7431895283b34785dc76f593f84520138ea6 | |
parent | b15f2a586aebe08466a90c463daf5436c015cea9 (diff) | |
download | rpmdrake-146d12a4aa709825665dde89c676b0cefa5f353a.tar rpmdrake-146d12a4aa709825665dde89c676b0cefa5f353a.tar.gz rpmdrake-146d12a4aa709825665dde89c676b0cefa5f353a.tar.bz2 rpmdrake-146d12a4aa709825665dde89c676b0cefa5f353a.tar.xz rpmdrake-146d12a4aa709825665dde89c676b0cefa5f353a.zip |
(node_state) only warn once per session when media XML metadata are
newer than synthesis (#42737) (meaning package list & metadata are not
syncrhonised and that media need updates)
another solution would for for urpmi to be be less strict when
searching
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | Rpmdrake/gui.pm | 6 |
2 files changed, 9 insertions, 1 deletions
@@ -1,6 +1,10 @@ - rpmdrake: o fix listing updates per importance (#41331) (regression introduced in 3.95 on 2007-09-14) + o only warn once per session when media XML metadata are newer than + synthesis (#42737) + (meaning package list & metadata are not syncrhonised and that + media need updates) Version 4.9.13.4 - 9 September 2008, Thierry Vignaud diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index 85d7cd29..382b911d 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -241,7 +241,10 @@ sub node_state { my $urpm_obj = $pkg->{pkg}; if (!$urpm_obj) { my ($short_name) = split_fullname($name); - interactive_msg(N("Warning"), + state $warned; + if (!$warned) { + $warned = 1; + interactive_msg(N("Warning"), join("\n", N("The package \"%s\" was found.", $name), N("However this package is not in the package list."), @@ -257,6 +260,7 @@ sub node_state { ), scroll => 1, ); + } return 'XXX'; } #- checks $_[0] -> hack for partial tree displaying |