pika-debian-bleedingedge/get_source_name.py

10 lines
122 B
Python
Raw Normal View History

2024-08-04 19:15:06 +02:00
#!/usr/bin/python3
import sys
import apt
pkgname = sys.argv[1]
c = apt.Cache()
print(c[pkgname].candidate.source_name)