Ticket #15035: collectstatic_remote_modified_time_fix.diff

File collectstatic_remote_modified_time_fix.diff, 780 bytes (added by Ben Davis, 14 years ago)
  • django/contrib/staticfiles/management/commands/collectstatic.py

     
    126126                # storage doesn't support ``modified_time`` or failed.
    127127                pass
    128128            else:
    129                 destination_is_link = os.path.islink(
     129                destination_is_link = self.destination_local and os.path.islink(
    130130                    self.destination_storage.path(destination))
    131131                if destination_last_modified >= source_last_modified:
    132132                    if (not symlink and not destination_is_link):
Back to Top