From ab826e67ef4e98bd598be13466f1d437519bbec8 Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Sun, 6 May 2012 04:12:06 +0000 Subject: [PATCH] ci: strip comments from the control file for dch's weak parser --- scripts/ci/debsrcbuilder.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/ci/debsrcbuilder.sh b/scripts/ci/debsrcbuilder.sh index 75bfe33ebc..f8d382c807 100755 --- a/scripts/ci/debsrcbuilder.sh +++ b/scripts/ci/debsrcbuilder.sh @@ -31,6 +31,10 @@ echo "changing directory to ${src_repo}/debbuild/${dst_full_name}" cd ${src_repo}/debbuild/${dst_full_name} (cd debian && ./bootstrap.sh) +# dch can't handle comments in control file +(cd debian; \ + mv control control.orig; \ + grep -e '^#' -v control.orig > control) # dependency: libparse-debcontrol-perl dch -v "${dst_full_version}-1" \ -M --force-distribution -D "$distro" \