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-09-17 21:27:01 +0200
committerErich Eckner <git@eckner.net>2017-09-17 21:27:01 +0200
commit32616421b0e2894ef61d56891e30ff8547e0aca6 (patch)
tree69c0e6fac624bab481109fbee5e0043f81ce316a /bin
parent26b553926dd28e830f43a173c0315b2dca272d4d (diff)
bin/seed-build-list: bugfix - seed with newest revision instead of last known (and most probably outdated) one
Diffstat (limited to 'bin')
-rwxr-xr-xbin/seed-build-list11
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/seed-build-list b/bin/seed-build-list
index d58c1f9..b3f2cd0 100755
--- a/bin/seed-build-list
+++ b/bin/seed-build-list
@@ -208,8 +208,17 @@ rm "${tmp_dir}/delta-packages"
# convert append-packages to build-list.new (add git hashes)
-cut -d' ' -f1,2,3,4 < \
+cut -d' ' -f1,4 < \
"${tmp_dir}/append-packages" | \
+ sort -u | \
+ while read -r pkg repo; do
+ git_repo=$(find_git_repository_to_package_repository "${repo}")
+ printf '%s %s %s %s\n' \
+ "${pkg}" \
+ "$(cat "${work_dir}/${git_repo}.revision")" \
+ "$(cat "${work_dir}/archlinux32.revision")" \
+ "${repo}"
+ done | \
sort -u > \
"${tmp_dir}/build-list.append"