contrib/makerepo: update detection of base commit for libnl3

libnl3 now contains the git commit id in ./configure as
LIBNL_GIT_SHA.

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller 2014-07-16 12:33:18 +02:00
parent 682f26fd2d
commit 9b34f04e67

View file

@ -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