[ mailman-Bugs-649011 ] arch crashes with custom mbox
Bugs item #649011, was opened at 2002-12-05 10:29 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100103&aid=649011&group_id=103
Category: None Group: 2.1 beta
Status: Closed Resolution: Fixed Priority: 5 Submitted By: Greg Ward (gward) Assigned to: Nobody/Anonymous (nobody) Summary: arch crashes with custom mbox
Initial Comment: If I run bin/arch with a custom mbox file, it appears to still use the standard mbox file for something -- because it crashes if I have removed the standard mbox:
$ rm archives/private/mems-talk.mbox/mems-talk.mbox $ ./bin/arch mems-talk archives/private/mems-talk.mbox/mems-talk.mbox.reduced [...] Computing threaded index Updating HTML for article 4 Updating HTML for article 15 Traceback (most recent call last): File "./bin/arch", line 186, in ? main() File "./bin/arch", line 176, in main archiver.close() File "/usr/local/mailman/Mailman/Archiver/pipermail.py", line 305, in close self.write_TOC() File "/usr/local/mailman/Mailman/Archiver/HyperArch.py", line 1048, in write_TOC toc.write(self.html_TOC()) File "/usr/local/mailman/Mailman/Archiver/HyperArch.py", line 705, in html_TOC d = {"listname": mlist.real_name, File "/usr/local/mailman/Mailman/Archiver/HyperArch.py", line 103, in sizeof size = os.path.getsize(filename) File "/www/plat/python2.2.2/lib/python2.2/posixpath.py", line 139, in getsize st = os.stat(filename) OSError: [Errno 2] No such file or directory: '/usr/local/mailman/archives/private/mems-talk.mbox/mems-talk.mbox'
Comment By: Barry A. Warsaw (bwarsaw) Date: 2002-12-07 02:36
Message: Logged In: YES user_id=12800
Cheezy fix checked in. We just catch ENOENT around the getsize() call and return "size not available" in that case. It's too much of a pain to weave the explicit mbox fie name from bin/arch to html_TOC.
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100103&aid=649011&group_id=103
participants (1)
-
noreply@sourceforge.net