Commit 1432e513 authored by Adam D. Barratt's avatar Adam D. Barratt

srm: remove epochs from comment filenames

dak expects the version in a comment filename to match the corresponding
.changes files, which will not have epochs in their filename.
Signed-off-by: 's avatarAdam D. Barratt <adam@adam-barratt.org.uk>
parent f0993ddb
......@@ -96,7 +96,7 @@ consistency_check "$QUEUE" "$COMMENT_PATH" "$COMMENT_FILENAME" "$ACTION"
[[ ${COMMENT_FILENAME} =~ ^(.*)_(.*) ]] || exit 1
PACKAGE="${BASH_REMATCH[1]}"
VERSION="${BASH_REMATCH[2]}"
VERSION="${BASH_REMATCH[2]##*:}"
if [[ ${PACKAGE} =~ ^(ACCEPT|ACCEPTED|REJECT|REJECTED). ]]
then
......@@ -147,7 +147,7 @@ fi
if ${SUDO} "$(dirname $0)/pu-comment" "${ACTION}" "${QUEUE}" "${PACKAGE}" "${VERSION}" "${COMMENT_REASON}"
then
mv "${_COMMENT_FILENAME}" "${COMMENT_PATH}/${ACTION}.${COMMENT_FILENAME}"
mv "${_COMMENT_FILENAME}" "${COMMENT_PATH}/${ACTION}.${PACKAGE}_${VERSION}"
if [ -n "$BUG_REF" ] && [ "${ACTION}" = "ACCEPT" ]
then
......
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