Red Hat Bugzilla – Bug 1011452
rlIsRHEL: Space between arguments handled badly
Last modified: 2016-09-19 22:10:16 EDT
Created attachment 802144 [details]
Description of problem:
>> search your tests for incorrect usage of rlIsRHEL/rlIsFedora. If
>> you use rlIsRHEL/rlIsFedora with prefix consisting of ’<’, ’<=’, ’=’,
>> ’>=’, ’>’ there needs to be no space between this prefix and version
>> number or this command use silently returns true.
>>  $ grep -P -r "(rlIsRHEL|rlIsFedora)(\d|\s)+['\"\\][<=>]+['\"]?\s"
>> Have a nice day,
>> -- Lukas -krtek.net- Novy BaseOS Security QE
> That's IMO a bug in BL. Attached is a patch (+tests).
I agree that the bug is an incorrect sanity check (which your patch
fixes), the "no space" behavior is however a feature as the following
is a valid scenario:
rlIsRHEL '<=5' 6.2 6.4 '>=7'
The manpage could probably use some examples as well.
as for test_rlIsRHEL, we should probably test two-digit numbers as well,
beakerlib-1.9-1.fc20 has been submitted as an update for Fedora 20.
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing beakerlib-1.9-1.fc20'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
beakerlib-1.9-2.fc20 has been submitted as an update for Fedora 20.
Please consider the package fixing this bug available in Fedora stable repos once bz1116308 is closed and RHEL stable repos once bz1116317 is closed.
beakerlib-1.9-3.fc20 has been submitted as an update for Fedora 20.
beakerlib-1.9-3.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.