mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
[grobisplitter] fix script to be less chatty AND to give proper error messages
This commit is contained in:
@@ -26,7 +26,7 @@ for ARCH in ${ARCHES}; do
|
||||
# in a daily tree. This allows us to point koji at a particular
|
||||
# day if we have specific build concerns.
|
||||
OUTDIR=${DATEDIR}/${ARCH}
|
||||
mkdir -vp ${OUTDIR}
|
||||
mkdir -p ${OUTDIR}
|
||||
if [ ! -d ${OUTDIR} ]; then
|
||||
echo "Unable to find ${ARCHDIR}"
|
||||
exit
|
||||
@@ -87,9 +87,13 @@ ln -s ${DATE} staged
|
||||
|
||||
for ARCH in ${ARCHES}; do
|
||||
pushd latest/
|
||||
mkdir -p $ARCH
|
||||
mkdir -p ${ARCH}
|
||||
dnf --disablerepo=\* --enablerepo=RHEL-8-001 --repofrompath=RHEL-8-001,https://infrastructure.fedoraproject.org/repo/rhel/rhel8/koji/staged/${ARCH}/RHEL-8-001/ reposync -a ${ARCH} -a noarch -p ${ARCH} --newest --delete &> /dev/null
|
||||
cd RHEL-8-001
|
||||
createrepo_c . &> /dev/null
|
||||
if [[ $? -eq 0 ]]; then
|
||||
cd ${ARCH}/RHEL-8-001
|
||||
createrepo_c . &> /dev/null
|
||||
else
|
||||
echo "Unable to run createrepo on latest/${ARCH}"
|
||||
fi
|
||||
popd
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user