Ticket #16424: 16424.diff

File 16424.diff, 844 bytes (added by Aymeric Augustin, 13 years ago)
  • collectstatic.py

    old new  
    107107            for path, storage in finder.list(self.ignore_patterns):
    108108                # Prefix the relative path if the source storage contains it
    109109                if getattr(storage, 'prefix', None):
    110                     path = os.path.join(storage.prefix, path)
    111                 handler(path, path, storage)
     110                    prefixed_path = os.path.join(storage.prefix, path)
     111                else:
     112                    prefixed_path = path
     113                handler(path,  prefixed_path, storage)
    112114
    113115        actual_count = len(self.copied_files) + len(self.symlinked_files)
    114116        unmodified_count = len(self.unmodified_files)
Back to Top