From e4677e04f39bfca06ca7b1fb92f89b7684f20e87 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 19 Jun 2017 13:47:32 +0200 Subject: switch from sshfs to rsync - to avoid needing to remount --- bin/return-assignment | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'bin/return-assignment') 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) -- cgit v1.2.3-54-g00ecf