diff --git a/contrib/fedora/utils/makerepo.sh b/contrib/fedora/utils/makerepo.sh index a5f1d574ec..062406274c 100755 --- a/contrib/fedora/utils/makerepo.sh +++ b/contrib/fedora/utils/makerepo.sh @@ -249,6 +249,10 @@ pushd "$DIRNAME" # try to find the commit from which the original tarball originates # and base the new branch on to of it. RELEASE_BASE_COMMIT="$(sed -n 's/^NM_GIT_SHA=\(.*\)/\1/p' configure 2>/dev/null)" + elif [[ "$BUILD_LIBNL3" != "" ]]; then + # try to find the commit from which the original tarball originates + # and base the new branch on to of it. + RELEASE_BASE_COMMIT="$(sed -n 's/^LIBNL_GIT_SHA=\(.*\)/\1/p' configure 2>/dev/null)" elif [[ "$BUILD_NETWORMANAGER_OPENVPN" != "" ]]; then DATE="$(sed -n 's/%global snapshot .git\(20[0-3][0-9]\)\([0-1][0-9]\)\([0-3][0-9]\)/\1-\2-\3/p' "../$SPEC")" if [[ "x$DATE" != x ]]; then