aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/gui.pm
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 /Rpmdrake/gui.pm
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
Diffstat (limited to 'Rpmdrake/gui.pm')
-rw-r--r--Rpmdrake/gui.pm6
1 files changed, 5 insertions, 1 deletions
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