Skip to content

Commit

Permalink
fix:(exporter) revert ecosystem.txt changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hogo6002 committed Oct 9, 2024
1 parent fe8987d commit 2c8d08e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docker/exporter/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,9 @@ def run(self):
"""Run exporter."""
if self._ecosystem == "list":
query = osv.Bug.query(projection=[osv.Bug.ecosystem], distinct=True)
ecosystems = [
bug.ecosystem[0]
for bug in query
if bug.ecosystem and ':' not in bug.ecosystem[0]
]
#TODO(gongh@): remove all ecosystem releases from ecosystem.txt
# after notifying users.
ecosystems = [bug.ecosystem[0] for bug in query if bug.ecosystem]
with tempfile.TemporaryDirectory() as tmp_dir:
self._export_ecosystem_list_to_bucket(ecosystems, tmp_dir)
else:
Expand Down

0 comments on commit 2c8d08e

Please sign in to comment.