From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 836CC138247 for ; Mon, 23 Dec 2013 15:28:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 229A5E0A5B; Mon, 23 Dec 2013 15:28:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A099BE0A52 for ; Mon, 23 Dec 2013 15:28:53 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A37A133F559 for ; Mon, 23 Dec 2013 15:28:52 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 2F7ACE55EF for ; Mon, 23 Dec 2013 15:28:51 +0000 (UTC) From: "Kent Fredric" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Kent Fredric" Message-ID: <1387806016.ee9388f2aebb4cd02f3ebd661b4e5229f5b157d2.kent@gentoo> Subject: [gentoo-commits] proj/perl-overlay:master commit in: scripts/ X-VCS-Repository: proj/perl-overlay X-VCS-Files: scripts/gen_ebuild.pl X-VCS-Directories: scripts/ X-VCS-Committer: kent X-VCS-Committer-Name: Kent Fredric X-VCS-Revision: ee9388f2aebb4cd02f3ebd661b4e5229f5b157d2 X-VCS-Branch: master Date: Mon, 23 Dec 2013 15:28:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 5b9738ff-b144-4810-8782-bd945488349c X-Archives-Hash: e3c5322322ccd907b73d0a228776d841 commit: ee9388f2aebb4cd02f3ebd661b4e5229f5b157d2 Author: Kent Fredric gmail com> AuthorDate: Mon Dec 23 13:40:16 2013 +0000 Commit: Kent Fredric gmail com> CommitDate: Mon Dec 23 13:40:16 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/perl-overlay.git;a=commit;h=ee9388f2 [scripts] Handle a single license field graciously --- scripts/gen_ebuild.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/gen_ebuild.pl b/scripts/gen_ebuild.pl index 2181a54..a54a665 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} };