diff options
author | Kent Fredric <kentfredric@gmail.com> | 2013-12-24 02:40:16 +1300 |
---|---|---|
committer | Kent Fredric <kentfredric@gmail.com> | 2013-12-24 02:40:16 +1300 |
commit | ee9388f2aebb4cd02f3ebd661b4e5229f5b157d2 (patch) | |
tree | 31677112f25b2e6a8910567c996385738b35a719 | |
parent | [newversion] dev-perl/Module-Build-Tiny-0.30.0 (diff) | |
download | perl-overlay-ee9388f2aebb4cd02f3ebd661b4e5229f5b157d2.tar.gz perl-overlay-ee9388f2aebb4cd02f3ebd661b4e5229f5b157d2.tar.bz2 perl-overlay-ee9388f2aebb4cd02f3ebd661b4e5229f5b157d2.zip |
[scripts] Handle a single license field graciously
-rwxr-xr-x | scripts/gen_ebuild.pl | 3 |
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} }; |