...
 
Commits (2)
......@@ -85,15 +85,24 @@ do
bug=$(echo $item | cut -d_ -f1)
pkg=$(echo $item | cut -d_ -f2)
arches=$(echo $item | cut -d_ -f3)
if ! grep -q "^${pkg} " "${SUITE}.cs"
then
echo "WARNING: package ${pkg} listed in REMOVALS appears not to exist in ${SUITE}, skipping" >&2
continue
fi
if [ -n "${arches}" ]
then
for arch in arches
do
if ! grep -q "^${pkg} .* ${arch}$" "${SUITE}.cs"
then
echo "WARNING: package ${pkg} listed in REMOVALS appears not to exist on ${arch} in ${SUITE}, skipping" >&2
continue 2 # break out to the package iterator
fi
done
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: .* -- //")
......