mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-12 04:15:06 -05:00
Remove makepkg license check
There is little reason for this field to be checked over all other fields. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
37242ceb30
commit
adfab9c899
@ -1782,15 +1782,6 @@ find_libprovides() {
|
|||||||
printf '%s\n' "${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() {
|
write_pkginfo() {
|
||||||
local builddate=$(date -u "+%s")
|
local builddate=$(date -u "+%s")
|
||||||
if [[ -n $PACKAGER ]]; then
|
if [[ -n $PACKAGER ]]; then
|
||||||
@ -1842,8 +1833,6 @@ write_pkginfo() {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
check_license
|
|
||||||
}
|
}
|
||||||
|
|
||||||
create_package() {
|
create_package() {
|
||||||
@ -1987,8 +1976,6 @@ create_srcpackage() {
|
|||||||
local srclinks="$(mktemp -d "$startdir"/srclinks.XXXXXXXXX)"
|
local srclinks="$(mktemp -d "$startdir"/srclinks.XXXXXXXXX)"
|
||||||
mkdir "${srclinks}"/${pkgbase}
|
mkdir "${srclinks}"/${pkgbase}
|
||||||
|
|
||||||
check_license
|
|
||||||
|
|
||||||
msg2 "$(gettext "Adding %s...")" "$BUILDSCRIPT"
|
msg2 "$(gettext "Adding %s...")" "$BUILDSCRIPT"
|
||||||
ln -s "${BUILDFILE}" "${srclinks}/${pkgbase}/${BUILDSCRIPT}"
|
ln -s "${BUILDFILE}" "${srclinks}/${pkgbase}/${BUILDSCRIPT}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user