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-07-04 21:57:07 +0200
committerErich Eckner <git@eckner.net>2017-07-04 21:57:07 +0200
commitb8df7a8b87508d851b46c0078b73727e2c346190 (patch)
treea69ba7a865f2e69b17faac7928b9f36dd8658e67 /bin/return-assignment
parent8f5836072478f46131e90c7df004accf0172004f (diff)
bin/common-functions, bin/db-update, bin/return-assignment: recognize build-support as untested, unstaged repository
Diffstat (limited to 'bin/return-assignment')
-rwxr-xr-xbin/return-assignment8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index 345abf2..a7ab92f 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -179,7 +179,7 @@ if [ -n "${package_errors}" ]; then
fi
# move packages
-destination="$(official_or_community "$1.$2.$3.$4")staging"
+destination="$(official_or_community "$1.$2.$3.$4" 'staging')"
${master_mirror_rsync_command} \
"${master_mirror_rsync_directory}/i686/${destination}/${destination}.db."* \
@@ -223,8 +223,10 @@ fi
sed -i "/^$(str_to_regex "$1 $2 $3 $4")\$/d" "${work_dir}/build-list"
# remove package lock file
-printf '%s\n' ${packages} > \
- "${work_dir}/package-states/$1.$2.$3.$4.done"
+if ! [ "${destination}" = 'build-support' ]; then
+ printf '%s\n' ${packages} > \
+ "${work_dir}/package-states/$1.$2.$3.$4.done"
+fi
rm -f \
"${work_dir}/package-states/$1.$2.$3.$4.locked" \
"${work_dir}/package-states/$1.$2.$3.$4.broken"