Gentoo Archives: gentoo-commits

From: Kent Fredric <kentfredric@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/perl-overlay:master commit in: scripts/
Date: Mon, 23 Dec 2013 15:28:54
Message-Id: 1387806016.ee9388f2aebb4cd02f3ebd661b4e5229f5b157d2.kent@gentoo
1 commit: ee9388f2aebb4cd02f3ebd661b4e5229f5b157d2
2 Author: Kent Fredric <kentfredric <AT> gmail <DOT> com>
3 AuthorDate: Mon Dec 23 13:40:16 2013 +0000
4 Commit: Kent Fredric <kentfredric <AT> gmail <DOT> com>
5 CommitDate: Mon Dec 23 13:40:16 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/perl-overlay.git;a=commit;h=ee9388f2
7
8 [scripts] Handle a single license field graciously
9
10 ---
11 scripts/gen_ebuild.pl | 3 +++
12 1 file changed, 3 insertions(+)
13
14 diff --git a/scripts/gen_ebuild.pl b/scripts/gen_ebuild.pl
15 index 2181a54..a54a665 100755
16 --- a/scripts/gen_ebuild.pl
17 +++ b/scripts/gen_ebuild.pl
18 @@ -178,6 +178,9 @@ my $oddlic = {
19 },
20 };
21
22 +if ( not ref $release_info->{license} ) {
23 + $release_info->{license} = [ $release_info->{license} ];
24 +}
25 for my $lic ( @{ $release_info->{license} } ) {
26 if ( exists $licmap->{$lic} ) {
27 push @$lics, @{ $licmap->{$lic} };