8fd7877 Fix the conditionals for 'if RHEL <= 9'

Authored and Committed by rishi 5 months ago
1 file changed. 12 lines added. 1 lines removed.
    Fix the conditionals for 'if RHEL <= 9'
    
    '%if 0%{?rhel} <= 9' is the wrong way to express 'if RHEL <= 9'.  On
    Fedora, %rhel won't be defined.  So, %{?rhel} will expand to nothing,
    and leave only a 0 on the left hand side, making the condition TRUE on
    Fedora.
    
    Note, that conditions like '%if 0%{?rhel}', and other relational
    operators like ==, > and >= work as expected.  The problem is only with
    < and <=.
    
    Fallout from 1d18729e66267b6a267b362af06d0a130cdb967f and
    d437e836048bc5eecc1fc1b111cfe74d70c5c67e
    
        
file modified
+12 -1