Opened 8 years ago
Last modified 8 years ago
#27658 closed Bug
collectstatic overwrites newer files in remote storage — at Initial Version
Reported by: | Paolo Dente | Owned by: | nobody |
---|---|---|---|
Component: | contrib.staticfiles | Version: | 1.10 |
Severity: | Release blocker | Keywords: | staticfiles |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The change to django/contrib/staticfiles/management/commands/collectstatic.py in commit 2cd2d188516475ddf256e6267cd82c495fb5c430 causes the command to overwrite all static files in remote storage (eg. S3), instead of only updatable ones.
A quick workaround is to override the command and restore the previous Command.delete_file() in the subclass, but I suppose this should be fixed.
Note:
See TracTickets
for help on using tickets.