Changed the maybe_patch_libraries() check action to emit 'patched now, restart needed' errors in test or development, but not in production, where we don't care if the patches were applied earlier or just now.
- Legacy-Id: 18408
This commit is contained in:
parent
bb9bd8d469
commit
ba01af0c4d
|
@ -321,7 +321,7 @@ def maybe_patch_library(app_configs, **kwargs):
|
|||
))
|
||||
else:
|
||||
# Patch succeeded or was a no-op
|
||||
if not patch_set.already_patched:
|
||||
if not patch_set.already_patched and settings.SERVER_MODE != 'production':
|
||||
errors.append(
|
||||
checks.Error("Found an unpatched file, and applied the patch in %s" % (patch_file),
|
||||
hint="You will need to re-run the command now that the patch in place.",
|
||||
|
|
Loading…
Reference in a new issue