Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2019-08-14 20:17:05 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2019-08-14 20:17:05 +0200
commitdcd396bec86f38eae147e0242a6519ef41d45a63 (patch)
treea7b2b566c955d334e752e68ce0e64bdeecfee69a
parent18d34fab0d1664112bb76c6dc4867f81a165fdb9 (diff)
make local-build-package only touch files of the specified architecture
-rwxr-xr-xbin/local-build-package12
1 files changed, 7 insertions, 5 deletions
diff --git a/bin/local-build-package b/bin/local-build-package
index 53d9515..c990042 100755
--- a/bin/local-build-package
+++ b/bin/local-build-package
@@ -2,7 +2,7 @@
# build one package to test if modifications are ok (before opening a pull
# request in https://github.com/archlinux32/packages)
-# package is built directly on a i486/i586/i686 host without any chroots
+# package is built directly on a i486/i686/pentium4 host without any chroots
# shellcheck source=../lib/load-configuration
. "${0%/*}/../lib/load-configuration"
@@ -166,7 +166,7 @@ if ! ${nobuild}; then
extract_source_directory "${git_repo}" "${git_revision}" "${mod_git_revision}" "${tmp_dir}"
- rm -f ./*".pkg.tar.xz" ./*".pkg.tar.xz.sig"
+ rm -f ./*"${arch}.pkg.tar.xz" ./*"${arch}.pkg.tar.xz.sig"
cd "${tmp_dir}" || exit 1
@@ -183,7 +183,9 @@ else
fi
if ${bootstrap}; then
- find . -maxdepth 1 -type f -name '*.pkg.tar.xz' \
+ rm -f ./*"${arch}.pkg.tar.xz.sig"
+
+ find . -maxdepth 1 -type f -name "*${arch}.pkg.tar.xz" \
-execdir gpg --local-user="${signkey}" --detach-sign '{}' \;
case "$repository" in
@@ -198,8 +200,8 @@ if ${bootstrap}; then
;;
esac
- scp -P "${bootstrap_port}" -rC "${tmp_dir}/"*.pkg.tar.xz "${tmp_dir}/"*.pkg.tar.xz.sig "${bootstrap_host}:${bootstrap_dir}/${staging_repo}/."
- ssh -p "${bootstrap_port}" "${bootstrap_host}" bash -l -c "'cd ${bootstrap_dir}/${staging_repo} && repo-add -n bootstrap-${staging_repo}.db.tar.gz *.pkg.tar.xz'"
+ scp -P "${bootstrap_port}" -rC "${tmp_dir}/"*${arch}.pkg.tar.xz "${tmp_dir}/"*${arch}.pkg.tar.xz.sig "${bootstrap_host}:${bootstrap_dir}/${staging_repo}/."
+ ssh -p "${bootstrap_port}" "${bootstrap_host}" bash -l -c "'cd ${bootstrap_dir}/${staging_repo} && repo-add -n bootstrap-${staging_repo}.db.tar.gz *${arch}.pkg.tar.xz'"
fi
# do not delete build reports, why might actually to want to have a look for things