aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2011-01-07 21:56:04 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2011-01-07 21:56:04 +0000
commit898580c35bc6acd75b6e1d4c8691f9d91391aaf8 (patch)
tree0bc9effc4ee24472d836cddb945896b83160442e
parent9ba32c6dbfd7d236b26b394642ae980c7b8d7415 (diff)
downloadrpmdrake-898580c35bc6acd75b6e1d4c8691f9d91391aaf8.tar
rpmdrake-898580c35bc6acd75b6e1d4c8691f9d91391aaf8.tar.gz
rpmdrake-898580c35bc6acd75b6e1d4c8691f9d91391aaf8.tar.bz2
rpmdrake-898580c35bc6acd75b6e1d4c8691f9d91391aaf8.tar.xz
rpmdrake-898580c35bc6acd75b6e1d4c8691f9d91391aaf8.zip
ndle URPM::Package->fullname returning vector of different lengths (#61702)
-rw-r--r--Makefile2
-rw-r--r--NEWS4
-rw-r--r--Rpmdrake/formatting.pm4
3 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5f9c9cef..92a7bad0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-VERSION = 5.26.5
+VERSION = 5.26.6
NAME = rpmdrake
DIRS = grpmi po data mime
diff --git a/NEWS b/NEWS
index da644e94..046c4f16 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,7 @@
+Version 5.26.6 - 7 Januar 2011, Per Øyvind Karlsen
+
+- handle URPM::Package->fullname returning vector of different lengths (#61702)
+
Version 5.26.5 - 24 October 2010, Thierry Vignaud
- add a minimal "testsuite" in order to prevent syntax errors such as #60901
diff --git a/Rpmdrake/formatting.pm b/Rpmdrake/formatting.pm
index 6e4e0dc7..b60b01e1 100644
--- a/Rpmdrake/formatting.pm
+++ b/Rpmdrake/formatting.pm
@@ -91,7 +91,9 @@ sub my_fullname {
sub urpm_name {
return '?-?-?.?' unless ref $_[0];
- my ($name, $version, $release, $arch) = $_[0]->fullname;
+ my @fullname = $_[0]->fullname;
+ my ($name, $version, $release) = @fullname;
+ my $arch = @fullname[-1];
"$name-$version-$release.$arch";
}