aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-09-21 11:31:05 +0000
committerThierry Vignaud <tv@mageia.org>2012-09-21 11:31:05 +0000
commit300aee1bb2bf682cb16b646705032cf1505e2a43 (patch)
tree097c5f319498bdac186fd72e046070d33add3ab1
parent2e0c34747d00d7f0b5857b22913e32566a3380dd (diff)
downloadrpmdrake-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--NEWS2
-rw-r--r--Rpmdrake/gui.pm2
-rw-r--r--Rpmdrake/pkg.pm2
3 files changed, 4 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 9c006b13..541c97b0 100644
--- a/NEWS
+++ b/NEWS
@@ -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)");
}