From f2f4bfe9a57ee3da4a63ae4b93d0cca444d9389e Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 7 May 2012 15:17:45 +0300 Subject: Relax python file magic regex somewhat - libmagic sometimes adds trailing descriptions about encodings, line terminators and whatnot, we dont want to care about those (RhBug:796218) - not all python-related strings start with [pP]ython either, sometimes libmagic says "a python script" or "a /usr/bin/python script" and whatnot, so loose the start-of-line restriction as well --- fileattrs/python.attr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fileattrs') diff --git a/fileattrs/python.attr b/fileattrs/python.attr index 4eaad7609..0f3c2cceb 100644 --- a/fileattrs/python.attr +++ b/fileattrs/python.attr @@ -1,4 +1,4 @@ %__python_provides %{_rpmconfigdir}/pythondeps.sh --provides %__python_requires %{_rpmconfigdir}/pythondeps.sh --requires %__python_path ^((/usr/lib(64)?/python[[:digit:]]\\.[[:digit:]]/.*\\.(py[oc]?|so))|(%{_bindir}/python[[:digit:]]\\.[[:digit:]]))$ -%__python_magic ^[Pp]ython.*(executable|byte-compiled)$ +%__python_magic [Pp]ython.*(executable|byte-compiled) -- cgit v1.2.3