aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2023-08-07 14:31:22 +0200
committerAndreas K. Hüttel <dilfridge@gentoo.org>2023-08-07 14:31:22 +0200
commit318de71660c3397fb5c06cf8747828c9a6dd0501 (patch)
tree90c99df406ab18313aefa76dfb5efff7bae6b36f
parentAdd --no-run-if-empty (diff)
downloadmastermirror-scripts-318de71660c3397fb5c06cf8747828c9a6dd0501.tar.gz
mastermirror-scripts-318de71660c3397fb5c06cf8747828c9a6dd0501.tar.bz2
mastermirror-scripts-318de71660c3397fb5c06cf8747828c9a6dd0501.zip
Minor fixes after testing
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
-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