#!/bin/sh

# Usage: daremove SUFFIX SOURCE_PACKAGE

# Remove the source package from the given suffix, where a suffix is
# probably one of "", "-proposed", or "-development"
#
# This removes any source or binary package built from the source
# package PACKAGE

. $(dirname "$0")/debian-versions.sh

if [ "$#" -ne 2 ]; then
    echo "Usage: daremove SUFFIX SOURCE_PACKAGE" >&2
    exit 1
fi

for code in $DEBIAN_CODES; do
    dareprepro removesrc "${code}${1}" "$2"
done
