[Checkins] SVN: zc.mirrorcheeseshopslashsimple/trunk/src/zc/mirrorcheeseshopslashsimple.py Create the pkg dir, if it does not exist.

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Nov 1 05:09:26 EDT 2007


Log message for revision 81343:
  Create the pkg dir, if it does not exist.
  
  (I just got 600 messages from cron telling me that a dir did not exist. 
  Thanks to my boy for waking me up tonight. ;-)
  
  

Changed:
  U   zc.mirrorcheeseshopslashsimple/trunk/src/zc/mirrorcheeseshopslashsimple.py

-=-
Modified: zc.mirrorcheeseshopslashsimple/trunk/src/zc/mirrorcheeseshopslashsimple.py
===================================================================
--- zc.mirrorcheeseshopslashsimple/trunk/src/zc/mirrorcheeseshopslashsimple.py	2007-10-31 22:17:34 UTC (rev 81342)
+++ zc.mirrorcheeseshopslashsimple/trunk/src/zc/mirrorcheeseshopslashsimple.py	2007-11-01 09:09:25 UTC (rev 81343)
@@ -191,6 +191,8 @@
             for link in dist_links:
                 links.append(link_templ %link)
         if links:
+            if not os.path.exists(package_path):
+                os.mkdir(package_path)
             open(os.path.join(package_path, 'index.html'), 'w').write(
                 templ %{'package': package, 'links': '\n'.join(links)})
         else:



More information about the Checkins mailing list