Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/build-packages11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/build-packages b/bin/build-packages
index 654da8d..d83a2e7 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -176,6 +176,17 @@ while [ "${count}" -ne 0 ]; do
git_revision="${package##* }"
package="${package% *}"
+ if [ "${mod_git_revision}" = 'work-tree' ]; then
+ mod_git_revision=$(
+ # we can't just create an empty index-file with mktemp, because git doesn't like it
+ tmp_subdir=$(mktemp -d);
+ trap 'rm -rf --one-file-system "${tmp_subdir}"' EXIT
+ export GIT_INDEX_FILE="${tmp_subdir}/index.new"
+ git -C "${repo_paths__archlinux32}" add -A
+ git -C "${repo_paths__archlinux32}" write-tree
+ )
+ fi
+
# Update git repositories (official packages, community packages and the repository of package customizations).
for repo_name in ${repo_names}; do