summaryrefslogtreecommitdiff
path: root/fileattrs
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2012-05-07 15:17:45 +0300
committerPanu Matilainen <pmatilai@redhat.com>2012-05-07 15:21:47 +0300
commitf2f4bfe9a57ee3da4a63ae4b93d0cca444d9389e (patch)
tree94909e13c0b089018d085c173924558914f105cb /fileattrs
parent49e398278fd75996909e99c0cec7667b0f8d55be (diff)
downloadlibrpm-tizen-f2f4bfe9a57ee3da4a63ae4b93d0cca444d9389e.tar.gz
librpm-tizen-f2f4bfe9a57ee3da4a63ae4b93d0cca444d9389e.tar.bz2
librpm-tizen-f2f4bfe9a57ee3da4a63ae4b93d0cca444d9389e.zip
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
Diffstat (limited to 'fileattrs')
-rw-r--r--fileattrs/python.attr2
1 files changed, 1 insertions, 1 deletions
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)