/usr/bin/loofah-query is in python-loofah 0.1-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #! /usr/bin/python
from loofah.core import db
from loofah.sources import Sources
import json
import sys
meta, spec = json.load(open(sys.argv[1], 'r'))
for meta in db.meta.find(meta):
s = Sources(meta)
print("%s/%s/%s:" % (s.dist, s.version, s.suite))
entries = s.query(spec)
for x in entries:
print(" %s" % (x['Package']))
|