summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Fredric <kentfredric@gmail.com>2013-12-24 02:40:16 +1300
committerKent Fredric <kentfredric@gmail.com>2013-12-24 02:40:16 +1300
commitee9388f2aebb4cd02f3ebd661b4e5229f5b157d2 (patch)
tree31677112f25b2e6a8910567c996385738b35a719
parent[newversion] dev-perl/Module-Build-Tiny-0.30.0 (diff)
downloadperl-overlay-ee9388f2aebb4cd02f3ebd661b4e5229f5b157d2.tar.gz
perl-overlay-ee9388f2aebb4cd02f3ebd661b4e5229f5b157d2.tar.bz2
perl-overlay-ee9388f2aebb4cd02f3ebd661b4e5229f5b157d2.zip
[scripts] Handle a single license field graciously
-rwxr-xr-xscripts/gen_ebuild.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/gen_ebuild.pl b/scripts/gen_ebuild.pl
index 2181a5422..a54a665fd 100755
--- a/scripts/gen_ebuild.pl
+++ b/scripts/gen_ebuild.pl
@@ -178,6 +178,9 @@ my $oddlic = {
},
};
+if ( not ref $release_info->{license} ) {
+ $release_info->{license} = [ $release_info->{license} ];
+}
for my $lic ( @{ $release_info->{license} } ) {
if ( exists $licmap->{$lic} ) {
push @$lics, @{ $licmap->{$lic} };