.py* permissions opinions?

Peter Gordon peter at thecodergeek.com
Mon Sep 18 02:34:43 UTC 2006


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?
> 
> Opinions?

I'm not a Python guru or anything, but I agree that since they do not execute on
their own (merely imported from another module or script), then they do not need
to be executable. Though, you should keep them world-readable! ;)

The file in question most likely has a shebang header ("#!/usr/bin/python -tt",
for example). Thus, rpmlint thinks it is a script due to that and hence the
complaint about it not being executable.

From my perspective, that is probably safe to ignore...
-- 
Peter Gordon (codergeek42)
GnuPG Public Key ID: 0xFFC19479 / Fingerprint:
  DD68 A414 56BD 6368 D957 9666 4268 CB7A FFC1 9479
My Blog: http://thecodergeek.com/blog/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-extras-list/attachments/20060917/d2a3bcfd/attachment.sig>


More information about the fedora-extras-list mailing list