--- a/dev/debian-build/dbuild Thu Sep 08 09:14:23 2011 +0100
+++ b/dev/debian-build/dbuild Thu Sep 08 09:14:46 2011 +0100
@@ -17,10 +17,12 @@
rm -rf ${BUILDDIR}
mkdir -p ${BUILDDIR}
-hg st -mac0n -X '.hg*' -X 'dev/**' -X 'debian/**' | \
- cpio -o -0 -H ustar | gzip --best > \
- ${BUILDDIR}/${PACKAGE}_${UPSTREAM_VERSION}.orig.tar.gz
-hg st -mac0n -X '.hg*' -X 'dev/**' | cpio -p -0 -d \
+hg st -mac0n -X '.hg*' -X 'dev/**' -X 'debian/**' | cpio -p -0 -d \
+ ${BUILDDIR}/${PACKAGE}-${UPSTREAM_VERSION}
+(cd ${BUILDDIR} ; tar cvzf \
+ ${PACKAGE}_${UPSTREAM_VERSION}.orig.tar.gz \
+ ${PACKAGE}-${UPSTREAM_VERSION} )
+hg st -mac0n -I 'debian/**' | cpio -p -0 -d \
${BUILDDIR}/${PACKAGE}-${UPSTREAM_VERSION}
cd ${BUILDDIR}/${PACKAGE}-${UPSTREAM_VERSION}