mirror of
https://gitlab.archlinux.org/archlinux/devtools.git
synced 2025-09-15 10:56:19 +02:00
Compare commits
2 Commits
feat/licen
...
fee1f6b226
Author | SHA1 | Date | |
---|---|---|---|
![]() |
fee1f6b226 | ||
![]() |
15d920765a |
@@ -94,19 +94,19 @@ pkgctl_license_check() {
|
||||
pushd "${path}" >/dev/null
|
||||
|
||||
if [[ ! -f PKGBUILD ]]; then
|
||||
msg_error "${BOLD}${path}:${ALL_OFF} no PKGBUILD found"
|
||||
msg_error "${BOLD}${pkgbase}:${ALL_OFF} no PKGBUILD found"
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [[ ! -f .SRCINFO ]]; then
|
||||
msg_error "${BOLD}${path}:${ALL_OFF} no .SRCINFO found"
|
||||
return 1
|
||||
fi
|
||||
# reset common PKGBUILD variables
|
||||
unset pkgbase
|
||||
|
||||
if ! pkgbase=$(grep --max-count=1 --extended-regexp "pkgbase = (.+)" .SRCINFO | awk '{print $3}'); then
|
||||
msg_error "${BOLD}${path}:${ALL_OFF} pkgbase not found in .SRCINFO"
|
||||
# shellcheck source=contrib/makepkg/PKGBUILD.proto
|
||||
if ! . ./PKGBUILD; then
|
||||
msg_error "${BOLD}${pkgbase}:${ALL_OFF} failed to source PKGBUILD"
|
||||
return 1
|
||||
fi
|
||||
pkgbase=${pkgbase:-$pkgname}
|
||||
|
||||
if [[ ! -e LICENSE ]]; then
|
||||
msg_error "${BOLD}${pkgbase}:${ALL_OFF} is missing the LICENSE file"
|
||||
|
@@ -345,6 +345,9 @@ for arg in "${@:$OPTIND}"; do
|
||||
-*A*) verifysource_args+=(-A) ;;&
|
||||
-*R*|-*e*) keepbuilddir=1 ;;&
|
||||
esac
|
||||
if [[ $arg != -* && $arg == *=* ]]; then
|
||||
verifysource_args+=("$arg")
|
||||
fi
|
||||
done
|
||||
|
||||
umask 0022
|
||||
|
Reference in New Issue
Block a user