From 30d3f1acf32299ba27120b254654a3a43bf30418 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 15 Aug 2019 15:22:03 +0200 Subject: [PATCH] add a script to list rust packages which needs source upload --- dev/rust-excuses-source-upload.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 dev/rust-excuses-source-upload.py diff --git a/dev/rust-excuses-source-upload.py b/dev/rust-excuses-source-upload.py new file mode 100644 index 000000000..fbd5e62a9 --- /dev/null +++ b/dev/rust-excuses-source-upload.py @@ -0,0 +1,20 @@ +#!/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) -- 2.39.5