aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/cleanups/file_release_bugfix.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_tools/cleanups/file_release_bugfix.py')
-rw-r--r--python/fatcat_tools/cleanups/file_release_bugfix.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/fatcat_tools/cleanups/file_release_bugfix.py b/python/fatcat_tools/cleanups/file_release_bugfix.py
index 6eb60205..5ac69d1a 100644
--- a/python/fatcat_tools/cleanups/file_release_bugfix.py
+++ b/python/fatcat_tools/cleanups/file_release_bugfix.py
@@ -131,6 +131,10 @@ class FileReleaseBugfix(EntityImporter):
self.counts["skip-existing-not-found"] += 1
return False
+ if existing.state != "active":
+ self.counts["skip-existing-entity-state"] += 1
+ return False
+
if wrong_release_ident not in existing.release_ids:
self.counts["skip-existing-fixed"] += 1
return False