mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
Bug fix: undefined macro's, e.g. RHEL_RELEASE_CODE, expand to the empty
string. The substitution for RHEL_RELEASE_CODE when it was not defined was missing. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@788 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -77,7 +77,10 @@ function evaluate(stmnt) {
|
||||
}
|
||||
|
||||
if (RHEL_MAJOR == "" || RHEL_MINOR == "")
|
||||
{
|
||||
gsub("defined\\(RHEL_RELEASE_CODE\\)", "0", stmnt)
|
||||
gsub("RHEL_RELEASE_CODE", "", stmnt)
|
||||
}
|
||||
else
|
||||
{
|
||||
gsub("defined\\(RHEL_RELEASE_CODE\\)", "1", stmnt)
|
||||
|
||||
Reference in New Issue
Block a user