diff options
author | François Andriot <albator78@libertysurf.fr> | 2024-04-17 19:16:43 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2024-04-17 19:17:09 +0200 |
commit | c34960529cde4e1c5721191d897761f059c35748 (patch) | |
tree | 0eca82c4e0c7c5a53931a62ae8718d3f6d8b2914 /redhat/build | |
parent | 4682d07bdc78302d8eb5caf4d6aea5381c1c1df5 (diff) | |
download | tde-packaging-c34960529cde4e1c5721191d897761f059c35748.tar.gz tde-packaging-c34960529cde4e1c5721191d897761f059c35748.zip |
RPM: lots of updates for Trinity 14.1.2
Signed-off-by: François Andriot <albator78@libertysurf.fr>
Diffstat (limited to 'redhat/build')
-rwxr-xr-x | redhat/build/update_repository.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/redhat/build/update_repository.sh b/redhat/build/update_repository.sh index 83887fd9b..641cdf2db 100755 --- a/redhat/build/update_repository.sh +++ b/redhat/build/update_repository.sh @@ -11,6 +11,7 @@ done ARCH="$(rpm -E %{_target_cpu})" RPMDIR=$(rpm -E %{_rpmdir}.tde-${TDE_VERSION}) +dist="$(rpm -E %dist)" [ -d "${RPMDIR}/noarch" ] || mkdir -p "${RPMDIR}/noarch" [ -d "${RPMDIR}/${ARCH}" ] || mkdir -p "${RPMDIR}/${ARCH}" @@ -23,7 +24,7 @@ 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='(rsync -av ${RPMDIR}/ /tmp/rpm${dist}/ && cd /tmp/rpm${dist}; umask 0000; createrepo --workers=${WORKERS} ${ARCH} & createrepo --workers=${WORKERS} noarch & wait; rsync -av /tmp/rpm${dist}/ ${RPMDIR}/; sudo zypper refresh rpmbuild.${ARCH} rpmbuild.noarch)' elif [ -x /usr/bin/yum ]; then - if [ "$(rpm -E %dist)" = ".el5" ]; then + if [ "${dist}" = ".el5" ]; then REPOUPDATE='(cd ${RPMDIR}; createrepo ${ARCH} & createrepo noarch & wait; sudo yum clean metadata --disablerepo="*" --enablerepo="rpmbuild*")' else REPOUPDATE='(cd ${RPMDIR}; createrepo --workers=${WORKERS} ${ARCH} & createrepo --workers=${WORKERS} noarch & wait; sudo yum clean metadata --disablerepo="*" --enablerepo="rpmbuild*")' |