Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-03-18 08:40:35 +0100
committerErich Eckner <git@eckner.net>2017-03-18 08:40:35 +0100
commit4ca04e5c0d773d058a9c24bd0f01ecf9b72f659c (patch)
treed68db5f1ac4be053d754f46583f52c4f5c01998b /bin
parentebea71db535e461b5002702847e7105efe01fc0f (diff)
bin/get-package-updates: point 4 started
Diffstat (limited to 'bin')
-rwxr-xr-xbin/get-package-updates13
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates
index 1b95d7b..d4e826f 100755
--- a/bin/get-package-updates
+++ b/bin/get-package-updates
@@ -42,6 +42,17 @@ done
# If a package is deleted, remove from the rebuild list, and add it to the deletion list.
# If a new package is added, then ensure that it's not on the deletion list.
+for repo in "${!repo_paths[@]}"; do
+ current_HEAD="$(
+ git -C "${repo_paths["${repo}"]}" rev-parse HEAD
+ )"
+ git -C "${repo_paths["${repo}"]}" diff --name-only "${old_repo_revisions["${repo}"]}" HEAD | \
+ grep '^[^/]\+/repos/[^/]\+/PKGBUILD$' | \
+ sed 's|^\([^/]\+\)/repos/\([^/]\+\)-[^/-]\+/PKGBUILD$|\1 '"${current_HEAD}"' \2|' | \
+ grep -v '\(staging\|testing\)$'
+done | \
+ sort -u
+
# TODO:
# Put the list in the proper build order.
@@ -52,4 +63,6 @@ for repo in "${!repo_paths[@]}"; do
"${base_dir}/work/${repo}.revision"
done
+# Remove the lock file
+
rm -f "${lock_file}"