Skip to content

Commit 3ec8632

Browse files
e4tthiell
authored andcommitted
specfile: fix logic for detecting if Python2 is supported
It's now less obfuscated. Python2 was conditionally enabled only if building for an old RHEL or old SLES but the version tests was not correct. Thanks to Matt Ezell from Oak Ridge. Fixes #445. Signed-off-by: Egbert Eich <eich@suse.com>
1 parent cdbb5ef commit 3ec8632

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clustershell.spec.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
%{!?__python3: %global __python3 python3}
2222
%{!?python3_shortver: %global python3_shortver %(%{__python3} -c 'import sys; print(str(sys.version_info.major) + "." + str(sys.version_info.minor))')}
2323

24-
%if ! 0%{?rhel} >= 8 && ! 0%{?suse_version} > 1550
24+
%if 0%{?rhel} < 8 && 0%{?suse_version} <= 1500
2525
%define py2 1
2626
%endif
2727

0 commit comments

Comments
 (0)