aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-30 01:22:01 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-30 01:22:01 +0000
commitbe511894f5de911b3328a91e1f561ca6455e69a5 (patch)
tree9e9bf7a5f3d1a11a270263670e12e627039682c8
parent3fd7a0075a2f5a3edb215bfb740d6f13933fc5c4 (diff)
downloadrpmdrake-be511894f5de911b3328a91e1f561ca6455e69a5.tar
rpmdrake-be511894f5de911b3328a91e1f561ca6455e69a5.tar.gz
rpmdrake-be511894f5de911b3328a91e1f561ca6455e69a5.tar.bz2
rpmdrake-be511894f5de911b3328a91e1f561ca6455e69a5.tar.xz
rpmdrake-be511894f5de911b3328a91e1f561ca6455e69a5.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--NEWS4
-rw-r--r--Rpmdrake/gui.pm6
2 files changed, 9 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 576a73ac..d68e3fad 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,10 @@
(regression introduced in drakxtools-11.10.2 on 18 August 2008 while
fixing focus issues)
- rpmdrake:
+ 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)
o workaround crashing when tree selection wasn't realized yet
(#41010)
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index 746531a9..a5ffbfe4 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -259,7 +259,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."),
@@ -275,6 +278,7 @@ sub node_state {
),
scroll => 1,
);
+ }
return 'XXX';
}
#- checks $_[0] -> hack for partial tree displaying