pin-generation/scripts/get_source_name.py
2024-10-13 20:41:34 +03:00

10 lines
122 B
Python
Executable File

#!/usr/bin/python3
import sys
import apt
pkgname = sys.argv[1]
c = apt.Cache()
print(c[pkgname].candidate.source_name)