aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
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 /Rpmdrake
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)
Diffstat (limited to 'Rpmdrake')
-rw-r--r--Rpmdrake/formatting.pm4
1 files changed, 3 insertions, 1 deletions
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";
}