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: Catch ctrl-c in fedora-mailing-list-setup

---
configs/mailman/fedora-mailing-list-setup | 27 +++++++++++++++++----------
1 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/configs/mailman/fedora-mailing-list-setup b/configs/mailman/fedora-mailing-list-setup
index a2bffd2..471e77d 100755
--- a/configs/mailman/fedora-mailing-list-setup
+++ b/configs/mailman/fedora-mailing-list-setup
@@ -190,13 +190,20 @@ def ask_questions(listType):

return listname, admin

-# work out where we are running fedorahosted lists require extra restrictions
-hostname = os.uname()[1]
-if hostname.startswith("hosted"):
- listType = "hosted"
-else:
- listType = "other"
-
-listname, admin = ask_questions(listType)
-switch_user()
-create_list(listname, '%s@fedoraproject.org' % admin)
+def main():
+ # Check where we are. Lists on fedorahosted.org have extra restrictions.
+ hostname = os.uname()[1]
+ if hostname.startswith("hosted"):
+ listType = "hosted"
+ else:
+ listType = "other"
+
+ listname, admin = ask_questions(listType)
+ switch_user()
+ create_list(listname, '%s@fedoraproject.org' % admin)
+
+if __name__ == '__main__':
+ try:
+ main()
+ except KeyboardInterrupt:
+ sys.exit(1)
--
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 04:28 PM.

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