Fix: ensure existing _pypi project gets is_system=true
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user