Commit b4ae9e07 authored by Emma Anholt's avatar Emma Anholt Committed by Marge Bot
Browse files

xmlconfig: Warn if parsing the engine/app versions fails.


Reviewed-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
Part-of: <!7048>
parent 1618bd1b
Pipeline #239099 waiting for manual action with stages
......@@ -741,9 +741,13 @@ parseAppAttr(struct OptConfData *data, const char **attr)
}
if (application_versions) {
driOptionValue v = { ._int = data->applicationVersion };
if (parseRange(&version_range, application_versions) &&
!checkValue(&v, &version_range))
data->ignoringApp = data->inApp;
if (parseRange(&version_range, application_versions)) {
if (!checkValue(&v, &version_range))
data->ignoringApp = data->inApp;
} else {
XML_WARNING("Failed to parse application_versions range=\"%s\".",
application_versions);
}
}
}
......@@ -774,9 +778,13 @@ parseEngineAttr(struct OptConfData *data, const char **attr)
}
if (engine_versions) {
driOptionValue v = { ._int = data->engineVersion };
if (parseRange(&version_range, engine_versions) &&
!checkValue(&v, &version_range))
data->ignoringApp = data->inApp;
if (parseRange(&version_range, engine_versions)) {
if (!checkValue(&v, &version_range))
data->ignoringApp = data->inApp;
} else {
XML_WARNING("Failed to parse engine_versions range=\"%s\".",
engine_versions);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment