diff options
author | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2011-01-07 21:56:04 +0000 |
---|---|---|
committer | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2011-01-07 21:56:04 +0000 |
commit | 898580c35bc6acd75b6e1d4c8691f9d91391aaf8 (patch) | |
tree | 0bc9effc4ee24472d836cddb945896b83160442e | |
parent | 9ba32c6dbfd7d236b26b394642ae980c7b8d7415 (diff) | |
download | rpmdrake-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-- | Makefile | 2 | ||||
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | Rpmdrake/formatting.pm | 4 |
3 files changed, 8 insertions, 2 deletions
@@ -1,4 +1,4 @@ -VERSION = 5.26.5 +VERSION = 5.26.6 NAME = rpmdrake DIRS = grpmi po data mime @@ -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"; } |