Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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