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:
parent
38f3e28d77
commit
b111b02b53
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user