Bug#909510: [PATCH] New tag: script-uses-unversioned-python-in-shebang
[2019-02-05 18:31] Chris Lamb <lamby@debian.org>
>
> part text/plain 432
> Hi Dmitry,
>
> > +Tag: script-uses-unversioned-python-in-shebang
> > +Severity: wishlist
>
> Again, weren't we just doing this to get numbers at first? Unless
> I'm missing something (quite possible!) I do not believe we are at
> a point in time where we wish to be implicitly asking maintainers
> to "fix" these shebangs.
Sorry, I understood phrase "get numbers" as
let's create check, set severity to low and see numbers on
lintial.debian.org
According to codesearch, there is 18 packages, that refer to
'#!/usr/bin/env python'. Not all matches are in shebang.
There is approximately 2000 packages, that contain #!/usr/bin/python,
mostly in shebang.
Both these searches are very, very inaccurate, since:
* #!/usr/bin/python3 matches too, since '#!/usr/bin/python$' does not
work on codesearch. But I scrolled several pages, and, strangely,
this false-positive seems to be rare.
* codesearch searches in source packages, and binary packages can get
shebang fixed during build.
On my system, here is list of scripts with '#![ ]?/usr/bin/python$'
shebang:
archivemail
debsecan
dh_python2
netaddr
rst2html
rst2html4
rst2html5
rst2latex
rst2man
rst2odt
rst2odt_prepstyles
rst2pseudoxml
rst2s5
rst2xetex
rst2xml
rst-buildhtml
rstpep2html
That is all I know. I do not have access to computer, capable of
processing all binary packages with `Depends: python2 | python2.7'
--
Note, that I send and fetch email in batch, once every 24 hours.
If matter is urgent, try https://t.me/kaction
--
Reply to: