[Pypi-checkins] r763 - trunk/pypi

martin.von.loewis python-checkins at python.org
Fri Apr 30 18:10:40 CEST 2010


Author: martin.von.loewis
Date: Fri Apr 30 18:10:39 2010
New Revision: 763

Modified:
   trunk/pypi/webui.py
Log:
Issue 2992721: Skip over creating directories that have
already been created.


Modified: trunk/pypi/webui.py
==============================================================================
--- trunk/pypi/webui.py	(original)
+++ trunk/pypi/webui.py	Fri Apr 30 18:10:39 2010
@@ -2292,7 +2292,8 @@
                 if not fpath.startswith(path):
                     raise ValueError, "invalid path name:"+fname
                 if fname.endswith("/"):
-                    os.mkdir(fpath)
+                    if not os.path.isdir(fpath):
+                        os.mkdir(fpath)
                     continue
                 upperdirs = os.path.dirname(fpath)
                 if not os.path.exists(upperdirs):


More information about the Pypi-checkins mailing list