/usr/bin/loofah-rebuild 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 15 16 17 18 19 20 21 22 23 24 25 | #! /usr/bin/python
from loofah.core import db
from loofah.sources import Sources
from ricky.utils import fetch_and_upload
import json
import sys
meta, spec = json.load(open(sys.argv[1], 'r'))
group_id = sys.argv[2]
def upload(x, group_id):
    try:
        return fetch_and_upload('unstable', x['Package'], x['Version'], **{
            "X-Debile-Group": group_id
        })
    except Exception:
        return upload(x, group_id)
for meta in db.meta.find(meta):
    s = Sources(meta)
    print("%s/%s/%s:" % (s.dist, s.version, s.suite))
    for x in s.query(spec):
        print("  Issuing a rebuild for {Package}/{Version}".format(**x))
        upload(x, group_id)
 |