Fix: ensure existing _pypi project gets is_system=true

This commit is contained in:
Mondo Diaz
2026-01-30 13:33:31 -06:00
parent 424b1e5770
commit ff31379649

View File

@@ -524,6 +524,10 @@ async def pypi_download_file(
)
db.add(system_project)
db.flush()
elif not system_project.is_system:
# Ensure existing project is marked as system
system_project.is_system = True
db.flush()
# Normalize package name
normalized_name = re.sub(r'[-_.]+', '-', package_name).lower()