Compare commits

..

2 Commits

Author SHA1 Message Date
Junxuan Liao
fee1f6b226 Merge branch 'master' into 'master'
fix(makechrootpkg): add environmental variables to verifysource_args

Closes #197

See merge request archlinux/devtools!217
2025-07-30 21:24:34 +00:00
Liao Junxuan
15d920765a fix(makechrootpkg): add environmental variables to verifysource_args
This is useful for setting proxies for downloading files. Fixes #197.
2025-07-22 04:45:30 +00:00
2 changed files with 6 additions and 2 deletions

View File

@@ -123,9 +123,10 @@ fi
needsversioning=()
if [[ ! -e REUSE.toml || ! -e LICENSE || ! -d LICENSES ]]; then
error "package doesn't have proper licensing information, set it up using:"
# TODO: Make this a hard failure in the future after packagers have had
# some time to add licenses to all packages.
warning "package doesn't have proper licensing information, set it up using:"
msg2 'pkgctl license setup'
exit 1
else
pkgctl license check
needsversioning+=(REUSE.toml LICENSE LICENSES/*)

View 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