diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-09-21 11:31:05 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-09-21 11:31:05 +0000 |
commit | 300aee1bb2bf682cb16b646705032cf1505e2a43 (patch) | |
tree | 097c5f319498bdac186fd72e046070d33add3ab1 | |
parent | 2e0c34747d00d7f0b5857b22913e32566a3380dd (diff) | |
download | rpmdrake-300aee1bb2bf682cb16b646705032cf1505e2a43.tar rpmdrake-300aee1bb2bf682cb16b646705032cf1505e2a43.tar.gz rpmdrake-300aee1bb2bf682cb16b646705032cf1505e2a43.tar.bz2 rpmdrake-300aee1bb2bf682cb16b646705032cf1505e2a43.tar.xz rpmdrake-300aee1bb2bf682cb16b646705032cf1505e2a43.zip |
use new URPM EVR package method
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | Rpmdrake/gui.pm | 2 | ||||
-rw-r--r-- | Rpmdrake/pkg.pm | 2 |
3 files changed, 4 insertions, 2 deletions
@@ -1,3 +1,5 @@ +- use new URPM API + Version 5.37 - 20 September 2012, Thierry Vignaud - fix deselecting updates when clicking on "New dependancies" diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index f103fffa..95d90df1 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -207,7 +207,7 @@ sub get_details { my ($pkg, $upkg, $installed_version, $raw_medium) = @_; my $a = ugtk2::markup_to_TextView_format( $spacing . join("\n$spacing", - format_field(N("Version: ")) . evr($upkg), + format_field(N("Version: ")) . $upkg->EVR, ($upkg->flag_installed ? format_field(N("Currently installed version: ")) . $installed_version : () ), diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 12ab3452..3b171c4d 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -192,7 +192,7 @@ sub extract_header { sub find_installed_version { my ($p) = @_; my $version; - open_rpm_db()->traverse_tag_find('name', $p->name, sub { $version = evr($_[0]) }); + open_rpm_db()->traverse_tag_find('name', $p->name, sub { $version = $_[0]->EVR }); $version || N("(none)"); } |