diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-09-30 01:22:01 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-09-30 01:22:01 +0000 |
commit | be511894f5de911b3328a91e1f561ca6455e69a5 (patch) | |
tree | 9e9bf7a5f3d1a11a270263670e12e627039682c8 | |
parent | 3fd7a0075a2f5a3edb215bfb740d6f13933fc5c4 (diff) | |
download | rpmdrake-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-- | NEWS | 4 | ||||
-rw-r--r-- | Rpmdrake/gui.pm | 6 |
2 files changed, 9 insertions, 1 deletions
@@ -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 |