[pacman-dev] [PATCH] Remove makepkg license check
Allan McRae
allan at archlinux.org
Wed Oct 2 23:43:19 EDT 2013
There is little reason for this field to be checked over all other
fields.
Signed-off-by: Allan McRae <allan at archlinux.org>
---
scripts/makepkg.sh.in | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 666ad59..30a162e 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1782,15 +1782,6 @@ find_libprovides() {
printf '%s\n' "${libprovides[@]}"
}
-check_license() {
- # TODO maybe remove this at some point
- # warn if license array is not present or empty
- if [[ -z $license ]]; then
- warning "$(gettext "Please add a license line to your %s!")" "$BUILDSCRIPT"
- plain "$(gettext "Example for GPL\'ed software: %s.")" "license=('GPL')"
- fi
-}
-
write_pkginfo() {
local builddate=$(date -u "+%s")
if [[ -n $PACKAGER ]]; then
@@ -1842,8 +1833,6 @@ write_pkginfo() {
;;
esac
done
-
- check_license
}
create_package() {
@@ -1987,8 +1976,6 @@ create_srcpackage() {
local srclinks="$(mktemp -d "$startdir"/srclinks.XXXXXXXXX)"
mkdir "${srclinks}"/${pkgbase}
- check_license
-
msg2 "$(gettext "Adding %s...")" "$BUILDSCRIPT"
ln -s "${BUILDFILE}" "${srclinks}/${pkgbase}/${BUILDSCRIPT}"
--
1.8.4
More information about the pacman-dev
mailing list