Commit Graph

6 Commits

Author SHA1 Message Date
Neal Gompa 5ddda1a7d6 fileattrs: Prepare python attr path for Python versions greater than 3.9 2018-10-03 14:19:01 +03:00
Florian Festi 5ac4305bdd Do not require the Python library dir to be at a particular place
RPM should not make any assumption about where Python libs are installed.
Resolves #346
2018-02-19 14:50:49 +01:00
Panu Matilainen f2f4bfe9a5 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
2012-05-07 15:21:47 +03:00
Ville Skyttä 9ddcc23d2b 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>
2012-01-10 10:48:13 +02:00
Panu Matilainen a9bc1f51ae Rename pattern -> path for, duh, path patterns
- 4.9 alpha used "pattern" but better fix the stupid name now than
  have to live with the non-obvious name forever
2010-12-10 12:33:46 +02:00
Panu Matilainen 4e8d7c1a46 Require file attribute config to have .attr suffix
- Allows for more precise globbing, avoiding potential issues from
  leftover / accidentally placed files in the fileattrs directory.
2010-10-05 10:08:53 +03:00