From cda2392404925c6b2bc6a82ff60b8553869b1db0 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 30 May 2018 14:56:40 +0200 Subject: bin/return-assignment: put packages in /pool (currently as a copy to not break anything) --- bin/return-assignment | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'bin') diff --git a/bin/return-assignment b/bin/return-assignment index 5d3afa0..322caf0 100755 --- a/bin/return-assignment +++ b/bin/return-assignment @@ -500,6 +500,9 @@ while read -r package_id package_name; do done < \ "${tmp_dir}/package-ids" +# TODO: once we honestly want to have multiple architectures, this needs +# to be changed fundamentally + # move packages ${master_mirror_rsync_command} \ "${master_mirror_rsync_directory}/i686/${destination}/${destination}.db."* \ @@ -509,6 +512,20 @@ ${master_mirror_rsync_command} \ repo-add "${destination}.db.tar.gz" ${packages} # repo-add -v -s -k "${repo_key}" "${destination}.db.tar.gz" ${packages} +# upload the packages into /pool +${master_mirror_rsync_command} \ + ./*".pkg.tar.xz" \ + ./*".pkg.tar.xz.sig" \ + "${master_mirror_rsync_directory}/pool/" + +# TODO: create symlinks +#find . \( -name '*.pkg.tar.xz' -o -name '*.pkg.tar.xz.sig' \) -printf '%f\n' | \ +# while read -r file; do +# rm "${file}" +# ln -s "../../pool/${file}" "${file}" +# done + +# upload the database and the symlinks into /$arch/$repo ${master_mirror_rsync_command} \ "${destination}.db."* \ "${destination}.files."* \ -- cgit v1.2.3-70-g09d2