Geoff Shang wrote:
>
>I patched Mailman/Queue/Runner.py and the patch applied cleanly.  I even 
>checked that the patch had applied.
>
>I stopped and restarted Mailman.
>
>But Runner.pyc wasn't updated.
>
>I deleted Runner.pyc in order to make sure that the old one wasn't being 
>used, but 17 hours on, Runner.pyc hasn't been recreated.
>
>The system seems to be running fine from what I've seen, but I'm curious 
>to know if the file I'm patched is in fact being used at all.


Assuming the file you patched is in the Mailman/Queue/ directory that
is actually being used by Mailman, You are getting the patched module.

This is a permissions issue. The qrunners do not have permission to
write Mailman/Queue/Runner.pyc. When Runner is imported, Python
detects that Runner.py is newer than Runner.pyc (or there is no
Runner.pyc) and loads and compiles Runner.py. It then attempts to
write Runner.pyc, but if it fails, it just goes on.

The Mailman/Queue/ directory should be Mailman's group, group writable
and SETGID, and all the files should be Mailman's group and group
writable.

-- 
Mark Sapiro <[email protected]>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

------------------------------------------------------
Mailman-Users mailing list [email protected]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to