distro-packages/python-rpm-macros: invert distro check logic
+ local compiler_family = rpm.expand("%compiler_family")
+ local mpi_family = rpm.expand("%mpi_family")
+ local ohpc_suffix = rpm.expand("%PROJ_DELIM")
-+ local function is_suse()
-+ local s = rpm.expand("%suse_version")
-+ return s == nil or s == ''
++ local function is_centos()
++ local s = rpm.expand("%centos")
++ return s ~= nil or s ~= ''
+ end
+
+ if string.match(rpm.expand("%name"), mpi_family) then
flavor = "python"
end
- local name = flavor .. "-" .. modname
-+ if flavor == "python3" and not is_suse() then
++ if flavor == "python3" and is_centos() then
+ flavor = "python34"
+ end
+ local name = flavor .. "-" .. modname .. ohpc_suffix
