diff options
author | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2024-08-08 13:21:45 +0200 |
---|---|---|
committer | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2024-08-08 13:21:45 +0200 |
commit | 225c6234ebe0e825194b38de6bba2f2257fec699 (patch) | |
tree | 286d5fea1544282662152d9c1a036bed40a59c7c /sign-and-upload-all | |
parent | 8ae114d63dd919cce2ff118ddb2945be9ae1493d (diff) | |
download | archlinuxewe-225c6234ebe0e825194b38de6bba2f2257fec699.tar.xz |
sign-and-upload-all: fix correct dir removal of pkgs
Diffstat (limited to 'sign-and-upload-all')
-rwxr-xr-x | sign-and-upload-all | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sign-and-upload-all b/sign-and-upload-all index c823d5027..cd5558217 100755 --- a/sign-and-upload-all +++ b/sign-and-upload-all @@ -52,6 +52,7 @@ for distro in arch artix; do parch="${pkg##*-}" parch="${parch%%.*}" pkgs["${parch}"]+=" ${pkg}" + pkgfiles["${parch}"]+=" ${pkg##*/}" done for archdir in "${!pkgs[@]}"; do rsync -av --progress \ @@ -64,11 +65,11 @@ for distro in arch artix; do for arch in */; do [ "${arch}" = '"'"'any/'"'"' ] && continue cd ${arch} - for pkg in '"${pkgs["${archdir}"]##*/}"'; do + for pkg in '"${pkgfiles["${archdir}"]}"'; do ln -s ../any/${pkg} ln -s ../any/${pkg}.sig done - repo-add -s -k 0x3CFB0AD8F60030F8 '"${distro}"'linuxewe.db.tar.gz '"${pkgs["${archdir}"]##*/}"' + repo-add -s -k 0x3CFB0AD8F60030F8 '"${distro}"'linuxewe.db.tar.gz '"${pkgfiles["${archdir}"]}"' find -maxdepth 1 -mindepth 1 -not -type d -printf '"'"'%f\n'"'"' \ | grep -vxFf <( ls '"${distro}"'linuxewe.{db,files}* @@ -107,7 +108,7 @@ for distro in arch artix; do else ssh ${distro}linuxewe@eckner.net ' cd os/'"${archdir}"' - repo-add -s -k 0x3CFB0AD8F60030F8 '"${distro}"'linuxewe.db.tar.gz '"${pkgs["${archdir}"]##*/}"' + repo-add -s -k 0x3CFB0AD8F60030F8 '"${distro}"'linuxewe.db.tar.gz '"${pkgfiles["${archdir}"]}"' find -maxdepth 1 -mindepth 1 -not -type d -printf '"'"'%f\n'"'"' \ | grep -vxFf <( ls '"${distro}"'linuxewe.{db,files}* |