summaryrefslogtreecommitdiff
path: root/bin/return-assignment
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-14 11:06:26 +0200
committerErich Eckner <git@eckner.net>2017-06-14 11:06:26 +0200
commitef56ac4ec9279867ac17156849bc371802e054d7 (patch)
tree57bd00f12e6af745b1e268dbf9a1afb8b47d3ccf /bin/return-assignment
parentf94f8508e646f08968f688618f291101bc00427f (diff)
downloadbuilder-ef56ac4ec9279867ac17156849bc371802e054d7.tar.xz
bin/return-assignment: differentiate between staging and community-staging
Diffstat (limited to 'bin/return-assignment')
-rwxr-xr-xbin/return-assignment14
1 files changed, 8 insertions, 6 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index 62b0796..6ea036a 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -134,13 +134,15 @@ if [ -n "${package_errors}" ]; then
fi
# move packages
-mkdir -p "${master_mirror_directory}/i686/staging/"
-mv *.pkg.tar.xz{,.sig} "${master_mirror_directory}/i686/staging/"
+destination="$(official_or_community "$1.$2.$3.$4")staging"
+
+mkdir -p "${master_mirror_directory}/i686/${destination}/"
+mv *.pkg.tar.xz{,.sig} "${master_mirror_directory}/i686/${destination}/"
(
- cd "${master_mirror_directory}/i686/staging"
- repo-add 'staging.db.tar.gz' "${packages[@]}"
- # repo-add -v -s -k "${repo_key}" 'staging.db.tar.gz' "${packages[@]}"
+ cd "${master_mirror_directory}/i686/${destination}"
+ repo-add "${destination}.db.tar.gz" "${packages[@]}"
+ # repo-add -v -s -k "${repo_key}" "${destination}.db.tar.gz" "${packages[@]}"
# remove old versions of same packages
for package in "${packages[@]}"; do
@@ -152,7 +154,7 @@ mv *.pkg.tar.xz{,.sig} "${master_mirror_directory}/i686/staging/"
done
)
-# remove old stage files (these should be only "done" markers, but
+# remove old state files (these should be only "done" markers, but
# actually we don't care what it is)
ls "${work_dir}/package-states" | \
grep "^${1//./\\.}\(\.[^.]\+\)\{4\}\$" | \