FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Infrastructure

 
 
LinkBack Thread Tools
 
Old 01-11-2010, 12:38 AM
Todd Zullinger
 
Default mailman: Improve fedora-mailing-list-setup error when mailman's not installed

---
configs/mailman/fedora-mailing-list-setup | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/configs/mailman/fedora-mailing-list-setup b/configs/mailman/fedora-mailing-list-setup
index 80b2c58..a2bffd2 100755
--- a/configs/mailman/fedora-mailing-list-setup
+++ b/configs/mailman/fedora-mailing-list-setup
@@ -19,10 +19,6 @@
"""Create a new mailing list according to Fedora's initial list creation guidelines."""

import sys
-
-sys.path.append('/usr/lib/mailman')
-sys.path.append('/usr/lib/mailman/bin')
-
import pwd
import grp
import os
@@ -30,7 +26,13 @@ import getpass
import getopt
import sha

-import paths
+try:
+ sys.path.append('/usr/lib/mailman/bin')
+ import paths
+except ImportError:
+ print >> sys.stderr, 'Failed to import mailman paths module.'
+ sys.exit(1)
+
from Mailman import mm_cfg
from Mailman import MailList
from Mailman import Utils
--
1.6.6

_______________________________________________
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure
 

Thread Tools




All times are GMT. The time now is 05:05 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org