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