diff options
| author | pablo <paul@eclipse-online.com> | 2019-09-26 12:05:32 -0700 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-09-27 23:06:55 +0200 |
| commit | 5d63bf0bc338840cfbb10f3528cc5b5ca3170f9b (patch) | |
| tree | a2eda93173daa25ae32553a93ec2cb259c994f37 /django | |
| parent | 0c655f1df2b167d7f24cf41910500850722b0c17 (diff) | |
[3.0.x] Fixed #30802 -- Prevented manifest creation when running collectstatic in dry run mode.
Backport of fa8fe09e4e2b538c5d50a559081861d5c0635d55 from master
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/staticfiles/storage.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/django/contrib/staticfiles/storage.py b/django/contrib/staticfiles/storage.py index 607c11b7d6..33b2f0d1fb 100644 --- a/django/contrib/staticfiles/storage.py +++ b/django/contrib/staticfiles/storage.py @@ -403,7 +403,8 @@ class ManifestFilesMixin(HashedFilesMixin): def post_process(self, *args, **kwargs): self.hashed_files = {} yield from super().post_process(*args, **kwargs) - self.save_manifest() + if not kwargs.get('dry_run'): + self.save_manifest() def save_manifest(self): payload = {'paths': self.hashed_files, 'version': self.manifest_version} |
