aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsign-sync-binpackages.sh13
1 files changed, 5 insertions, 8 deletions
diff --git a/sign-sync-binpackages.sh b/sign-sync-binpackages.sh
index b437ccb..c26a3f5 100755
--- a/sign-sync-binpackages.sh
+++ b/sign-sync-binpackages.sh
@@ -8,15 +8,12 @@
# secret key.
# NOTE 3: This script has to run as gmirror user.
-# for testing
-ARCHES="sparc"
-
# Keep this variable in sync
-_ARCHES="alpha amd64 arm64 arm hppa ia64 loong m68k mips ppc riscv s390 sh sparc x86"
+_ARCHES="alpha amd64 arm64 arm hppa ia64 loong m68k mips ppc riscv s390 sparc x86"
#alpha amd64 arm64 arm hppa ia64 loong m68k mips ppc riscv s390 sh sparc x86
ARCHES=${ARCHES:-${_ARCHES}}
-VERBOSE='1'
+VERBOSE='0'
INTREE=/release/weekly/binpackages
STAGINGTREE=/release/binpackages-staging
@@ -83,7 +80,7 @@ done
for t in ${STAGINGTREE}/*/*/* ; do
# find all unsigned packages as fast as possible
find "${t}" -name '*.gpkg.tar' -print0 | \
- parallel -0 -n1 -- "tar tf {} |grep -E -e '/metadata\.tar\..*\.sig$' -L --label={}" > ${STAGINGTREE}/.unsigned
+ parallel -0 -n1 --will-cite -- "tar tf {} |grep -E -e '/metadata\.tar\..*\.sig$' -L --label={}" > ${STAGINGTREE}/.unsigned
if [[ ${VERBOSE} == '1' ]] ; then
echo "List of unsigned pacakges:"
@@ -92,8 +89,8 @@ for t in ${STAGINGTREE}/*/*/* ; do
fi
# sign the packages
- [[ ${VERBOSE} == '1' ]] && xargs -n1 --no-run-if-empty -- gpkg-sign "{}" < ${STAGINGTREE}/.unsigned || exit 113
- [[ ${VERBOSE} == '1' ]] || xargs -n1 --no-run-if-empty -- gpkg-sign "{}" < ${STAGINGTREE}/.unsigned > /dev/null || exit 113
+ [[ ${VERBOSE} == '1' ]] && xargs -n1 --no-run-if-empty -- gpkg-sign < ${STAGINGTREE}/.unsigned || exit 113
+ [[ ${VERBOSE} == '1' ]] || xargs -n1 --no-run-if-empty -- gpkg-sign < ${STAGINGTREE}/.unsigned > /dev/null || exit 113
# regenerate the indices
[[ ${VERBOSE} == '1' ]] && PKGDIR=${t} emaint -f binhost || exit 114