diff options
Diffstat (limited to 'apkbuild-cpan.in')
-rwxr-xr-x | apkbuild-cpan.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apkbuild-cpan.in b/apkbuild-cpan.in index 75e7dd0..f5c88d9 100755 --- a/apkbuild-cpan.in +++ b/apkbuild-cpan.in @@ -249,8 +249,10 @@ sub do_depends { $text =~ s/^pkgdesc=\"([^\"]*)\"$/pkgdesc=\"$abstract\"/mg or die "Can't find cpandepends line in APKBUILD"; } - $text =~ s/^license=\"([^\"]*)\"$/license=\"$license\"/mg or - die "Can't find cpandepends line in APKBUILD"; + if ($license ne 'unknown') { + $text =~ s/^license=\"([^\"]*)\"$/license=\"$license\"/mg or + die "Can't find license line in APKBUILD"; + } $text =~ s/^cpandepends=\"([^\"]*)\"$/cpandepends=\"$deps\"/mg or die "Can't find cpandepends line in APKBUILD"; $text =~ s/^cpanmakedepends=\"([^\"]*)\"$/cpanmakedepends=\"$makedeps\"/mg or |