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
4 changed files with 4 additions and 5 deletions

View File

@@ -150,7 +150,6 @@ _pkgctl_cmds=(
db db
diff diff
issue issue
license
release release
repo repo
search search

View File

@@ -155,7 +155,7 @@ if (( ${#needsversioning[*]} )); then
if [[ ! -f "${file}" ]]; then if [[ ! -f "${file}" ]]; then
continue continue
fi fi
if ! git ls-files --error-unmatch "$file" >/dev/null; then if ! git ls-files --error-unmatch "$file"; then
die "%s is not under version control" "$file" die "%s is not under version control" "$file"
fi fi
done done

View File

@@ -188,13 +188,10 @@ path = [
"README.md", "README.md",
"keys/**", "keys/**",
".SRCINFO", ".SRCINFO",
".gitignore",
".nvchecker.toml", ".nvchecker.toml",
"*.install", "*.install",
"*.sysusers", "*.sysusers",
"*sysusers.conf",
"*.tmpfiles", "*.tmpfiles",
"*tmpfiles.conf",
"*.logrotate", "*.logrotate",
"*.pam", "*.pam",
"*.service", "*.service",

View File

@@ -345,6 +345,9 @@ for arg in "${@:$OPTIND}"; do
-*A*) verifysource_args+=(-A) ;;& -*A*) verifysource_args+=(-A) ;;&
-*R*|-*e*) keepbuilddir=1 ;;& -*R*|-*e*) keepbuilddir=1 ;;&
esac esac
if [[ $arg != -* && $arg == *=* ]]; then
verifysource_args+=("$arg")
fi
done done
umask 0022 umask 0022