FS#4036 - file can't recognize python 2.4 byte-code

Attached to Project: Arch Linux
Opened by Bart Kreska (Bart-) - Tuesday, 21 February 2006, 17:57 GMT
Last edited by arjan timmerman (blaasvis) - Saturday, 25 March 2006, 23:32 GMT
Task Type Bug Report
Category Packages: Current
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7.1 Noodle
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

$ pacman -Q file
file 4.16-101

$ file /usr/lib/python2.4/os.pyc
/usr/lib/python2.4/os.pyc: data

but should be:

/usr/lib/python2.4/os.pyc: python 2.4 byte-compiled

This is because file 4.16 lacks entry for Python newer than 2.3:

$ strings /usr/share/misc/file/magic.mgc |grep python
a python script text executable
python 1.5/1.6 byte-compiled
python 2.0 byte-compiled
python 2.1 byte-compiled
python 2.2 byte-compiled
python 2.3 byte-compiled

And there is also Python module to enable.

Patches and fixed PKGBUILD are available here: http://www.smlw.pl/~wytnijto/arch/packages/file/

Bart-
This task depends upon

Closed by  Roman Kyrylych (Romashka)
Thursday, 25 January 2007, 08:07 GMT
Reason for closing:  Fixed
Comment by Bart Kreska (Bart-) - Tuesday, 21 February 2006, 19:24 GMT
Oops, of course I had file-4.16-1 in mind, not -101 which is locally built one. Bart-

Loading...