summaryrefslogtreecommitdiff
path: root/sign-and-upload-all
diff options
context:
space:
mode:
authorErich Eckner <erich.eckner.ext@bestsecret.com>2024-08-09 23:20:38 +0200
committerErich Eckner <erich.eckner.ext@bestsecret.com>2024-08-14 09:59:29 +0200
commitcdb8348951c88c59984f4765e24212ed844c68c2 (patch)
tree6ccc9c9b3d0c625b7b4ad37512a66a1bb72cd1d1 /sign-and-upload-all
parentbe484a850677228ce555e43478452f40d95f2044 (diff)
downloadarchlinuxewe-cdb8348951c88c59984f4765e24212ed844c68c2.tar.xz
sign-and-upload-all: never remove the currently uploaded file
* there seems to be a race condition, so sometimes the just-uploaded file is removed right-away
Diffstat (limited to 'sign-and-upload-all')
-rwxr-xr-xsign-and-upload-all6
1 files changed, 6 insertions, 0 deletions
diff --git a/sign-and-upload-all b/sign-and-upload-all
index cd5558217..ccc544c8c 100755
--- a/sign-and-upload-all
+++ b/sign-and-upload-all
@@ -73,6 +73,8 @@ for distro in arch artix; do
find -maxdepth 1 -mindepth 1 -not -type d -printf '"'"'%f\n'"'"' \
| grep -vxFf <(
ls '"${distro}"'linuxewe.{db,files}*
+ printf '%s\n' '"${pkgfiles["${archdir}"]}"'
+ printf '%s.sig\n' '"${pkgfiles["${archdir}"]}"'
bsdtar -Oxf '"${distro}"'linuxewe.db.tar.gz \
| sed -n '"'"'
/^%FILENAME%$/ {
@@ -90,6 +92,8 @@ for distro in arch artix; do
cd any
find -maxdepth 1 -mindepth 1 -not -type d -printf '"'"'%f\n'"'"' \
| grep -vxFf <(
+ printf '%s\n' '"${pkgfiles["${archdir}"]}"'
+ printf '%s.sig\n' '"${pkgfiles["${archdir}"]}"'
for db in ../*/'"${distro}"'linuxewe.db.tar.gz; do
bsdtar -Oxf "${db}"
done \
@@ -112,6 +116,8 @@ for distro in arch artix; do
find -maxdepth 1 -mindepth 1 -not -type d -printf '"'"'%f\n'"'"' \
| grep -vxFf <(
ls '"${distro}"'linuxewe.{db,files}*
+ printf '%s\n' '"${pkgfiles["${archdir}"]}"'
+ printf '%s.sig\n' '"${pkgfiles["${archdir}"]}"'
bsdtar -Oxf '"${distro}"'linuxewe.db.tar.gz \
| sed -n '"'"'
/^%FILENAME%$/ {