summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2011-07-06 10:28:18 +0000
committerJannis Leidel <jannis@leidel.info>2011-07-06 10:28:18 +0000
commit21e0b3a243791deef803dddcb9e15d0a3b59af96 (patch)
treedab30cd580bf323cd21f5f85229b3def698615f9 /django
parent901ea8a68d4aa064f2e72eeac5ca87968905673e (diff)
Fixed #16424 -- Fixed regression in collect static management command introduced in r16509 that prevented prefixed collection.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16519 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
-rw-r--r--django/contrib/staticfiles/management/commands/collectstatic.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/django/contrib/staticfiles/management/commands/collectstatic.py b/django/contrib/staticfiles/management/commands/collectstatic.py
index 6038cbceee..246f960583 100644
--- a/django/contrib/staticfiles/management/commands/collectstatic.py
+++ b/django/contrib/staticfiles/management/commands/collectstatic.py
@@ -107,8 +107,10 @@ Type 'yes' to continue, or 'no' to cancel: """
for path, storage in finder.list(self.ignore_patterns):
# Prefix the relative path if the source storage contains it
if getattr(storage, 'prefix', None):
- path = os.path.join(storage.prefix, path)
- handler(path, path, storage)
+ prefixed_path = os.path.join(storage.prefix, path)
+ else:
+ prefixed_path = path
+ handler(path, prefixed_path, storage)
actual_count = len(self.copied_files) + len(self.symlinked_files)
unmodified_count = len(self.unmodified_files)