Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/return-assignment
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-05-05 10:24:44 +0200
committerErich Eckner <git@eckner.net>2017-05-05 10:24:44 +0200
commitd3c0f340aaadeb57f4d4c4a94d4c3d2a3a4ed429 (patch)
treea25720a383a63d3bc7817145a00ecdabf1d88513 /bin/return-assignment
parenteda35a90de7ebe44362fcb0444c7be5139a4567d (diff)
bin/return-assignment: bugfix, add some comment
Diffstat (limited to 'bin/return-assignment')
-rwxr-xr-xbin/return-assignment6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index a010dd4..2528b44 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -2,13 +2,15 @@
# report back on a build assignment
# either on success via:
-# "$0 $package $revision $repository" and tar'ed packages on stdin
+# "$0 $package $revision $repository" and tar'ed packages (= a tar of
+# package(s) and signature(s)) on stdin
# or on failure via:
# "$0 $package $revision $repository ERROR"
# TODO:
# properly handle if built package is out of date
# sign package database
+# use lock file(s)
. "${0%/*}/../conf/default.conf"
@@ -51,7 +53,7 @@ repo-add "$3-staging.db.tar.gz" $(echo "${new_files}" | grep '\.pkg\.tar\.xz$')
#repo-add -v -s -k "${repo_key}" "$3-staging.tar.gz" $(echo "${new_files}" | grep '\.pkg\.tar\.xz$')
# remove all loops which are broken by this package
-sed '1d' "${work_dir}/package-states/$1.$2.$3" | \
+sed '1d' "${work_dir}/package-states/$1.$2.$3.locked" | \
sort -u | \
sed 'p;s|$|.locked|' | \
xargs -rn1 rm -f