[PyObjC-svn] r2384 - trunk/pyobjc/pyobjc-website

[email protected] Tue, 24 Nov 2009 09:58:45 -0600
Newsgroups gmane.comp.python.pyobjc.cvs
Message-ID <[email protected]>
Author: ronaldoussoren
Date: Tue Nov 24 09:58:45 2009
New Revision: 2384

Log:
Automaticly enable SF shell account when needed


Modified:
   trunk/pyobjc/pyobjc-website/setup.py

Modified: trunk/pyobjc/pyobjc-website/setup.py
==============================================================================
--- trunk/pyobjc/pyobjc-website/setup.py	(original)
+++ trunk/pyobjc/pyobjc-website/setup.py	Tue Nov 24 09:58:45 2009
@@ -138,6 +138,16 @@
                 mode = stat.S_IMODE(st.st_mode) | stat.S_IWGRP
                 os.chmod(os.path.join(dirpath, fn), mode)
 
+        # Ensure that sourceforge has a shell account for us
+        log.info("Creating sourceforge shell account")
+        p = subprocess.Popen([
+            'ssh', '-t', '%s,[email protected]'%(self.username,), 
+            'create'])
+        status = p.wait()
+        if status != 0:
+            log.error("Creating a shell account failed")
+            raise DistutilsError("creating shell account failed")
+
         # Use rsync to push the new version of the website to SF.net
         log.info("Running rsync")
         p = subprocess.Popen(['rsync', 

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july