[libvirt] [PATCH] spec: fix logic bug in deciding to turn on cgconfig

Eric Blake eblake at redhat.com
Thu Dec 8 21:10:23 UTC 2011


On 12/08/2011 02:05 PM, Laine Stump wrote:
> On 12/08/2011 03:38 PM, Eric Blake wrote:
>> https://bugzilla.redhat.com/show_bug.cgi?id=738725
>>
>> Commit ecd8725 tried to silence a spurious warning on the initial
>> libvirt install, and commit ba6cbb1 tried to fix up the logic to the
>> correct Fedora version, but the warning was still present due to a
>> logic bug: since %{fedora} and %{rhel} are never simulatanously
>> set, then 0%{rhel}<= 6 made the %if always true.  Checking for
>> minimum versions (via>=) is okay, but checking for maximum versions
>> (via<=) requires a prerequisite test that the platform being tested
>> is non-zero.
>>

> ACK.

Thanks; pushed.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20111208/69e4dc1e/attachment-0001.sig>


More information about the libvir-list mailing list