.py* permissions opinions?

Toshio Kuratomi a.badger at gmail.com
Mon Sep 18 03:49:52 UTC 2006


On Sun, 2006-09-17 at 21:42 -0400, Warren Togami wrote:
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=206877
> 
> E: bzr-gtk non-executable-script
> /usr/lib/python2.4/site-packages/bzrlib/plugins/gtk/viz/__init__.py 0644
> 
> Do these scripts that are not meant to be run directly really need to 
> have executable permissions?

If it's not meant to be run directly I'd say executable permission is
not needed.

Usually the reason for this warning when the file is inside of
%{pythonsitelib} is because there's a #!/usr/bin/python shebang in the
file.  If there's a test inside or other script that could be executed
by someone other than the enduser then it makes sense to ignore the
rpmlint warning.  If there's no test or other code that can be run by
executing this on the commandline then removing the shebang is the most
proper.

-Toshio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-extras-list/attachments/20060917/fb702c22/attachment.sig>


More information about the fedora-extras-list mailing list