qtestblacklist: check against duplicating versioned distro
Also check the version is non-empty. Probably makes no difference, but it's obviously more correct. Change-Id: I05eee5623ac432d2ea02f7aad874513beeb2ceeb Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
This commit is contained in:
parent
832715a679
commit
6f59926e67
@ -144,7 +144,11 @@ static QSet<QByteArray> activeConditions()
|
||||
if (!distributionName.isEmpty()) {
|
||||
if (result.find(distributionName) == result.end())
|
||||
result.insert(distributionName);
|
||||
result.insert(distributionName + "-" + distributionRelease);
|
||||
if (!distributionRelease.isEmpty()) {
|
||||
QByteArray versioned = distributionName + "-" + distributionRelease;
|
||||
if (result.find(versioned) == result.end())
|
||||
result.insert(versioned);
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user