From 8db4eb6564f2e810ac681b34b350157255d6d26c Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Fri, 27 May 2022 16:27:24 -0400 Subject: [PATCH] make sure the timestamp file is the same for all arches in case koji freaks out --- roles/grobisplitter/files/cents8-split.sh | 5 +++-- roles/grobisplitter/files/rhel8-split.sh | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/roles/grobisplitter/files/cents8-split.sh b/roles/grobisplitter/files/cents8-split.sh index fdc5315581..5516f04f30 100755 --- a/roles/grobisplitter/files/cents8-split.sh +++ b/roles/grobisplitter/files/cents8-split.sh @@ -9,6 +9,8 @@ DATE=$(date -Ih | sed 's/+.*//') KOJIDIR=/mnt/fedora/app/fi-repo/centos/stream8-kojitarget DATEDIR=${KOJIDIR}/${DATE} +TIME_FILE=${DATEDIR}/timestamp +touch ${TIME_FILE} ## ## Make a directory for where the new tree will live. Use a new date @@ -71,8 +73,7 @@ for ARCH in ${ARCHES}; do # Go into the main tree pushd CS-8-001 - touch timestamp - find . -type f -print | xargs touch -r timestamp + find . -type f -print | xargs touch -r ${TIME_FILE} # Mergerepo didn't work so lets just createrepo in the top directory. createrepo_c . &> /dev/null popd diff --git a/roles/grobisplitter/files/rhel8-split.sh b/roles/grobisplitter/files/rhel8-split.sh index 6216ce344c..cc766d82b2 100755 --- a/roles/grobisplitter/files/rhel8-split.sh +++ b/roles/grobisplitter/files/rhel8-split.sh @@ -8,6 +8,8 @@ ARCHES="aarch64 ppc64le s390x x86_64" DATE=$(date -Ih | sed 's/+.*//') DATEDIR=${HOMEDIR}/koji/${DATE} +TIME_FILE=${DATEDIR}/timestamp +touch ${TIME_FILE} ## ## Make a directory for where the new tree will live. Use a new date @@ -68,8 +70,7 @@ for ARCH in ${ARCHES}; do # Go into the main tree pushd RHEL-8-001 - touch timestamp - find . -type f -print | xargs touch -r timestamp + find . -type f -print | xargs touch -r ${TIME_FILE} # Mergerepo didn't work so lets just createrepo in the top directory. createrepo_c . &> /dev/null popd