diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2012-01-10 10:48:13 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2012-01-10 10:48:13 +0200 |
commit | 9ddcc23d2b7ecaf5336530dbe37195b0057d0396 (patch) | |
tree | e03dbc3327c4166153e3397cae8d1c296c3da48b | |
parent | 8605a4b034237f0afeebe852862e7d7ceb4b8f11 (diff) | |
download | rpm-9ddcc23d2b7ecaf5336530dbe37195b0057d0396.tar.gz rpm-9ddcc23d2b7ecaf5336530dbe37195b0057d0396.tar.bz2 rpm-9ddcc23d2b7ecaf5336530dbe37195b0057d0396.zip |
Adapt perl and python fileattrs to file 5.10 magics
- file 5.10 has changed magics at least for perl and python scripts, samples:
5.09: a /usr/bin/perl -w script, ASCII text executable, with very long lines
5.10: Perl script, ASCII text executable, with very long lines
5.09: a /usr/bin/python script, ASCII text executable
5.10: Python script, ASCII text executable
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
-rw-r--r-- | fileattrs/perl.attr | 2 | ||||
-rw-r--r-- | fileattrs/python.attr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/fileattrs/perl.attr b/fileattrs/perl.attr index 23b873fbe..0daef58d5 100644 --- a/fileattrs/perl.attr +++ b/fileattrs/perl.attr @@ -1,3 +1,3 @@ %__perl_requires %{_rpmconfigdir}/perl.req -%__perl_magic ^.*perl .*$ +%__perl_magic ^.*[Pp]erl .*$ %__perl_flags exeonly diff --git a/fileattrs/python.attr b/fileattrs/python.attr index 5b48f75b4..4eaad7609 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 ^python.*(executable|byte-compiled)$ +%__python_magic ^[Pp]ython.*(executable|byte-compiled)$ |