summaryrefslogtreecommitdiff
path: root/bin/return-assignment
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-19 13:47:32 +0200
committerErich Eckner <git@eckner.net>2017-06-19 13:47:32 +0200
commite4677e04f39bfca06ca7b1fb92f89b7684f20e87 (patch)
tree8d6724ef0ee19e840d8e62df5c71ec70b1e9cd3e /bin/return-assignment
parent5e7e1ac0a4932156cfd399447968959f6081d3fe (diff)
downloadbuilder-e4677e04f39bfca06ca7b1fb92f89b7684f20e87.tar.xz
switch from sshfs to rsync - to avoid needing to remount
Diffstat (limited to 'bin/return-assignment')
-rwxr-xr-xbin/return-assignment23
1 files changed, 11 insertions, 12 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index 78d888a..5252518 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -144,22 +144,21 @@ fi
# move packages
destination="$(official_or_community "$1.$2.$3.$4")staging"
-mkdir -p "${master_mirror_directory}/i686/${destination}/"
-mv \
+${master_mirror_command} \
+ "${master_mirror_directory}/i686/${destination}/${destination}.db.*" \
+ .
+repo-add "${destination}.db.tar.gz" ${packages}
+# repo-add -v -s -k "${repo_key}" "${destination}.db.tar.gz" ${packages}
+
+${master_mirror_command} \
+ "${destination}.db."*
*".pkg.tar.xz" \
*".pkg.tar.xz.sig" \
"${master_mirror_directory}/i686/${destination}/"
-(
- 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
- remove_old_package_versions "${package}"
- done
-)
+for package in ${packages}; do
+ remove_old_package_versions "i686/${destination}" "${package}"
+done
# remove old state files (these should be only "done" markers, but
# actually we don't care what it is)