diff options
-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}* |