From cef0e61af9bf99f731c1ab5ab964294ced532da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?= Date: Sat, 14 Nov 2020 11:31:43 +0100 Subject: [PATCH] Fix move for testing config and check testing first --- update-sources | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/update-sources b/update-sources index 5143abc3..aa11d65c 100755 --- a/update-sources +++ b/update-sources @@ -63,15 +63,15 @@ if [ "$BRANCH" == "master" ]; then RAWHIDE_KERNEL="$(dnf -q repoquery kernel --disablerepo=* --enablerepo=fedora --enablerepo=updates --releasever=rawhide | grep -v "rc[0-9]*" | sort -V | tail -1 | cut -d ':' -f2 | cut -d '-' -f1 || true)" fi -if distance_version "$STABLE_KERNEL" "$LATEST_KERNEL_VERSION"; then - "$LOCALDIR/get-fedora-latest-config" --releasever "$FC_LATEST" - mv config-base-"$STABLE_KERNEL" config-base -elif [ "$BRANCH" == "master" ] && { distance_version "$TESTING_KERNEL" "$LATEST_KERNEL_VERSION"; }; then +if [ "$BRANCH" == "master" ] && { distance_version "$TESTING_KERNEL" "$LATEST_KERNEL_VERSION"; }; then "$LOCALDIR/get-fedora-latest-config" --releasever "$FC_LATEST" --include-testing - mv config-base-"$STABLE_KERNEL" config-base + mv config-base-"$TESTING_KERNEL" config-base elif [ "$BRANCH" == "master" ] && { distance_version "$RAWHIDE_KERNEL" "$LATEST_KERNEL_VERSION"; }; then "$LOCALDIR/get-fedora-latest-config" --releasever rawhide mv config-base-"$RAWHIDE_KERNEL" config-base +elif distance_version "$STABLE_KERNEL" "$LATEST_KERNEL_VERSION"; then + "$LOCALDIR/get-fedora-latest-config" --releasever "$FC_LATEST" + mv config-base-"$STABLE_KERNEL" config-base else echo "Cannot determine latest config for kernel ${LATEST_KERNEL_VERSION}. Use the current existing config..." fi