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

puprep: handle arch-specific removals

Signed-off-by: 's avatarAdam D. Barratt <adam@adam-barratt.org.uk>
parent 783229fd
......@@ -75,27 +75,39 @@ dak control-suite -l ${PUSUITE} | sort > ${PUSUITE}.cs
/srv/release.debian.org/tools/scripts/naive-heidi-dominate < combined.cs | sort > combined-dominated.cs
for pkg in $(cut -d" " -f2 ${BASEDIR}/${SUITE}_comments/REMOVALS)
for FILE in removals.cs removals-debug.cs removals.${CODENAME}
do
dak ls -s ${SUITE} -f control-suite -S $pkg
done | sort > removals.cs
for pkg in $(cut -d" " -f2 ${BASEDIR}/${SUITE}_comments/REMOVALS)
do
dak ls -s ${SUITE}-debug -f control-suite -S $pkg
done | sort > removals-debug.cs
: > ${FILE}
done
for item in $(sed -e "s/^#\([0-9]*\): \([^ ]*\) .*/\1_\2/" ${BASEDIR}/${SUITE}_comments/REMOVALS)
for item in $(perl -pe "s/^#([0-9]*): ([^ ]*) (?:\[(.*)\] )?.*/\1_\2_\3/" ${BASEDIR}/${SUITE}_comments/REMOVALS)
do
bug=$(echo $item | cut -d_ -f1)
pkg=$(echo $item | cut -d_ -f2)
arches=$(echo $item | cut -d_ -f3)
if [ -n "${arches}" ]
then
arches="$(echo "${arches}" | tr -s " " ",")"
arches=" -a ${arches}"
fi
if ! grep -q "^${pkg} " "${SUITE}.cs"
then
echo "WARNING: package ${pkg} listed in REMOVALS appears not to exist in ${SUITE}" >&2
fi
dak ls -s ${SUITE} -f control-suite -S $pkg $arches >> removals.cs
dak ls -s ${SUITE}-debug -f control-suite -S $pkg $arches >> removals-debug.cs
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}
if [ -n "${arches}" ]
then
arches=" -B ${arches}"
fi
printf "dak rm -s %s -R -p -d %s%s -m '%s' %s\n" "$SUITE" "$bug" "$arches" "$subject" "$pkg" >> removals.${CODENAME}
done
for FILE in removals.cs removals-debug.cs removals.${CODENAME}
do
sort -o ${FILE} ${FILE}
done
comm -3 combined.cs removals.cs > combined-removals.cs
......
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