Commit e72ca5a8 authored by Adam D. Barratt's avatar Adam D. Barratt

puprep: display a warning if a package name in REMOVALS has been typoed

Signed-off-by: 's avatarAdam D. Barratt <adam@adam-barratt.org.uk>
parent 10de208d
......@@ -89,6 +89,10 @@ for item in $(sed -e "s/^#\([0-9]*\): \([^ ]*\) .*/\1_\2/" ${BASEDIR}/${SUITE}_c
do
bug=$(echo $item | cut -d_ -f1)
pkg=$(echo $item | cut -d_ -f2)
if ! grep "^${pkg} " ${SUITE}.cs"
then
echo "WARNING: package ${pkg} listed in REMOVALS appears not to exist in ${SUITE}" >&2
fi
subject=$(bts status $bug fields:subject | cut -f2- | sed -e "s/^RM: .* -- //")
printf "dak rm -s %s -R -p -d %s -m '%s' %s\n" "$SUITE" "$bug" "$subject" "$pkg"
done | sort > removals.${CODENAME}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment