Author: lukeplant
Date: 2010-09-03 13:29:33 -0500 (Fri, 03 Sep 2010)
New Revision: 13681
Modified:
django/branches/releases/1.2.X/
django/branches/releases/1.2.X/django/core/management/base.py
Log:
[1.2.X] Fixed #14145 - undeterministic behavior when project or app template
contains dotdir
Thanks to marbu for report and patch.
Backport of [13668] from trunk.
Property changes on: django/branches/releases/1.2.X
___________________________________________________________________
Name: svnmerge-integrated
- /django/trunk:1-13360,13434,13480,13574,13600,13638,13652,13664,13666
+ /django/trunk:1-13360,13434,13480,13574,13600,13638,13652,13664,13666,13668
Modified: django/branches/releases/1.2.X/django/core/management/base.py
===================================================================
--- django/branches/releases/1.2.X/django/core/management/base.py
2010-09-03 16:28:10 UTC (rev 13680)
+++ django/branches/releases/1.2.X/django/core/management/base.py
2010-09-03 18:29:33 UTC (rev 13681)
@@ -394,9 +394,9 @@
relative_dir = d[len(template_dir)+1:].replace('%s_name' %
app_or_project, name)
if relative_dir:
os.mkdir(os.path.join(top_dir, relative_dir))
- for i, subdir in enumerate(subdirs):
+ for subdir in subdirs[:]:
if subdir.startswith('.'):
- del subdirs[i]
+ subdirs.remove(subdir)
for f in files:
if not f.endswith('.py'):
# Ignore .pyc, .pyo, .py.class etc, as they cause various
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.