From 146d12a4aa709825665dde89c676b0cefa5f353a Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 30 Sep 2008 01:37:22 +0000 Subject: (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 --- NEWS | 4 ++++ Rpmdrake/gui.pm | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 7c571c46..b7afcfc0 100644 --- a/NEWS +++ b/NEWS @@ -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 -- cgit v1.2.1