From 34f5f4c7a47863cc9951ed4873aa45ccef963c3b Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Thu, 14 Jan 2016 20:48:02 -0700 Subject: [PATCH] Fix typo in %python_provide --- macros.python | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macros.python b/macros.python index 911f4c1..0a7ed0a 100644 --- a/macros.python +++ b/macros.python @@ -33,9 +33,9 @@ CFLAGS="%{optflags}" %{__python} %{py_setup} %{?py_setup_args} install -O1 --ski print(string.sub(package,9,string.len(package)));\ print(" < ");\ print(vr);\ - elseif (string.starts(str, "python" .. rpm.expand("%{python3_pkgversion}") .. "-")) then\ + elseif (string.starts(package, "python" .. rpm.expand("%{python3_pkgversion}") .. "-")) then\ --No unversioned provides as python3 is not default\ - elseif (rpm.expand("%{?python3_other_pkgversion}") ~= "" and string.starts(str, "python" .. rpm.expand("%{python3_other_pkgversion}") .. "-")) then\ + elseif (rpm.expand("%{?python3_other_pkgversion}") ~= "" and string.starts(package, "python" .. rpm.expand("%{python3_other_pkgversion}") .. "-")) then\ --No unversioned provides as python3_other is not default\ elseif (string.starts(package, "pypy-")) then\ --No unversioned provides as pypy is not default\