diff options
author | Erich Eckner <git@eckner.net> | 2018-05-30 14:56:40 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-05-30 14:56:40 +0200 |
commit | cda2392404925c6b2bc6a82ff60b8553869b1db0 (patch) | |
tree | d4c851e8580b90732bbe7ca9d71f9e1a83e386eb /bin | |
parent | 406a834672bc40826fc49cd27d5f0a0506ab6b9d (diff) | |
download | builder-cda2392404925c6b2bc6a82ff60b8553869b1db0.tar.xz |
bin/return-assignment: put packages in /pool (currently as a copy to not break anything)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/return-assignment | 17 |
1 files changed, 17 insertions, 0 deletions
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."* \ |