anaconda: Fix a regular expression determining Release

Without the start-of-line matcher, other lines are matched as well,
causing invalid PACKAGE_RELEASE variable substitutions within the
Makefiles.
This commit is contained in:
M. Vefa Bicakci 2016-04-10 00:00:00 -04:00
parent 38f3e28d77
commit b111b02b53
No known key found for this signature in database
GPG Key ID: 1DF87CE3B3A5DFAF

View File

@ -121,7 +121,7 @@ SHUT_UP_GCC="-Wno-unused-result"
CFLAGS="$CFLAGS -Wall -Werror $SHUT_UP_GCC"
# Get the release number from the spec file
rel="`awk '/Release:/ { split($2, r, "%"); print r[[1]] }' $srcdir/anaconda.spec`"
rel="`awk '/^Release:/ { split($2, r, "%"); print r[[1]] }' $srcdir/anaconda.spec`"
AC_SUBST(PACKAGE_RELEASE, [$rel])
# Perform arch related tests