aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-20 19:52:58 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-20 19:52:58 +0000
commit6e1c3f46692061bf03dc37d47125818d29b2b957 (patch)
treedbc3c95437740147727ab483478a2f13dce50693
parent28bf87e09235344d99fa728d8d144f680561ba33 (diff)
downloadrpmdrake-6e1c3f46692061bf03dc37d47125818d29b2b957.tar
rpmdrake-6e1c3f46692061bf03dc37d47125818d29b2b957.tar.gz
rpmdrake-6e1c3f46692061bf03dc37d47125818d29b2b957.tar.bz2
rpmdrake-6e1c3f46692061bf03dc37d47125818d29b2b957.tar.xz
rpmdrake-6e1c3f46692061bf03dc37d47125818d29b2b957.zip
(node_state) display backported packages with a different icon (which
the mirror of the to_delete icon in order to make clear that backports are dangerous)
-rw-r--r--NEWS3
-rw-r--r--Rpmdrake/gui.pm1
-rw-r--r--icons/state_backport.pngbin0 -> 966 bytes
3 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index de5c3564..c1d8ab39 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- rpmdrake:
+ o display backported packages with a different icon
+
Version 5.31 - 20 March 2012, Thierry Vignaud
- fix a rare crash when some packages are installed twice (mga#4972)
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index c2be82c4..d197c645 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -385,6 +385,7 @@ sub node_state {
my $pkg = $pkgs->{$name};
my $urpm_obj = $pkg->{pkg};
return warn_if_no_pkg($name) if !$urpm_obj;
+ return 'backport' if $pkgs->{$name}{is_backport};
$pkg->{selected} ?
($urpm_obj->flag_installed ?
($urpm_obj->flag_upgrade ? 'to_install' : 'to_remove')
diff --git a/icons/state_backport.png b/icons/state_backport.png
new file mode 100644
index 00000000..db11b94e
--- /dev/null
+++ b/icons/state_backport.png
Binary files differ