|
|
@ -15,10 +15,10 @@ RPMDIR=$(rpm -E %{_rpmdir}.tde-${TDE_VERSION})
|
|
|
|
[ -d "${RPMDIR}/noarch" ] || mkdir -p "${RPMDIR}/noarch"
|
|
|
|
[ -d "${RPMDIR}/noarch" ] || mkdir -p "${RPMDIR}/noarch"
|
|
|
|
[ -d "${RPMDIR}/${ARCH}" ] || mkdir -p "${RPMDIR}/${ARCH}"
|
|
|
|
[ -d "${RPMDIR}/${ARCH}" ] || mkdir -p "${RPMDIR}/${ARCH}"
|
|
|
|
|
|
|
|
|
|
|
|
if [ -x /usr/bin/dnf ]; then
|
|
|
|
if [ -x /usr/sbin/urpmi ]; then
|
|
|
|
REPOUPDATE='(cd ${RPMDIR}; createrepo --workers=${WORKERS} ${ARCH} & createrepo --workers=${WORKERS} noarch & wait; sudo dnf clean expire-cache --disablerepo="*" --enablerepo="rpmbuild*")'
|
|
|
|
|
|
|
|
elif [ -x /usr/sbin/urpmi ]; then
|
|
|
|
|
|
|
|
REPOUPDATE='(cd ${RPMDIR}; genhdlist2 --clean --allow-empty noarch & genhdlist2 --clean --allow-empty ${ARCH} & wait; sudo urpmi.update rpmbuild.${ARCH} rpmbuild.noarch)'
|
|
|
|
REPOUPDATE='(cd ${RPMDIR}; genhdlist2 --clean --allow-empty noarch & genhdlist2 --clean --allow-empty ${ARCH} & wait; sudo urpmi.update rpmbuild.${ARCH} rpmbuild.noarch)'
|
|
|
|
|
|
|
|
elif [ -x /usr/bin/dnf ]; then
|
|
|
|
|
|
|
|
REPOUPDATE='(cd ${RPMDIR}; createrepo --workers=${WORKERS} ${ARCH} & createrepo --workers=${WORKERS} noarch & wait; sudo dnf clean expire-cache --disablerepo="*" --enablerepo="rpmbuild*")'
|
|
|
|
elif [ -x /usr/bin/zypper ]; then
|
|
|
|
elif [ -x /usr/bin/zypper ]; then
|
|
|
|
REPOUPDATE='(cd ${RPMDIR}; createrepo --workers=${WORKERS} ${ARCH} & createrepo --workers=${WORKERS} noarch & wait; sudo zypper refresh rpmbuild.${ARCH} rpmbuild.noarch)'
|
|
|
|
REPOUPDATE='(cd ${RPMDIR}; createrepo --workers=${WORKERS} ${ARCH} & createrepo --workers=${WORKERS} noarch & wait; sudo zypper refresh rpmbuild.${ARCH} rpmbuild.noarch)'
|
|
|
|
elif [ -x /usr/bin/yum ]; then
|
|
|
|
elif [ -x /usr/bin/yum ]; then
|
|
|
|