Commit 9c8f411a authored by Timo Teräs's avatar Timo Teräs

apkbuild-cpan: fix handling of license meta-data

Don't update if it's unknown, and fix the error message.
parent f670c88e
...@@ -249,8 +249,10 @@ sub do_depends { ...@@ -249,8 +249,10 @@ sub do_depends {
$text =~ s/^pkgdesc=\"([^\"]*)\"$/pkgdesc=\"$abstract\"/mg or $text =~ s/^pkgdesc=\"([^\"]*)\"$/pkgdesc=\"$abstract\"/mg or
die "Can't find cpandepends line in APKBUILD"; die "Can't find cpandepends line in APKBUILD";
} }
$text =~ s/^license=\"([^\"]*)\"$/license=\"$license\"/mg or if ($license ne 'unknown') {
die "Can't find cpandepends line in APKBUILD"; $text =~ s/^license=\"([^\"]*)\"$/license=\"$license\"/mg or
die "Can't find license line in APKBUILD";
}
$text =~ s/^cpandepends=\"([^\"]*)\"$/cpandepends=\"$deps\"/mg or $text =~ s/^cpandepends=\"([^\"]*)\"$/cpandepends=\"$deps\"/mg or
die "Can't find cpandepends line in APKBUILD"; die "Can't find cpandepends line in APKBUILD";
$text =~ s/^cpanmakedepends=\"([^\"]*)\"$/cpanmakedepends=\"$makedeps\"/mg or $text =~ s/^cpanmakedepends=\"([^\"]*)\"$/cpanmakedepends=\"$makedeps\"/mg or
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment