Codebase list rust-stfu8 / cd9aeb67-a305-4808-bf91-ebe8013ebcde/main dev / rust-excuses-source-upload.py
cd9aeb67-a305-4808-bf91-ebe8013ebcde/main

Tree @cd9aeb67-a305-4808-bf91-ebe8013ebcde/main (Download .tar.gz)

rust-excuses-source-upload.py @cd9aeb67-a305-4808-bf91-ebe8013ebcde/mainraw · history · blame

#!/usr/bin/python3
# the excuses file can be found here:
# https://release.debian.org/britney/excuses.yaml

import sys
import yaml

print("parsing excuses.yaml...", file=sys.stderr)
with open("excuses.yaml") as fp:
    y = yaml.load(fp)

excuses = {}
for e in y["sources"]:
    package = e.get("source")
    if not package.startswith("rust-"):
        # We only care about rust packages
        continue
    for e2 in e.get("excuses"):
        if "Not built on buildd" in e2:
            print("%s needs a source-only upload" % package)