set -u . "$TESTSDIR"/test.inc mkdir i j k # first create some fake package with .asc files: mkdir pkg-42 tar -cvvzf pkg_42.orig.tar.gz pkg-42 echo "Fake .asc file" > pkg_42.orig.tar.gz.asc cd pkg-42 mkdir debian debian/source echo "3.0 (quilt)" > debian/source/format cat > debian/rules <<'EOF' #!/usr/bin/make clean: echo clean EOF chmod a+x debian/rules cat > debian/changelog < Sat, 15 Jan 2000 17:12:05 +2700 EOF cat > debian/control < Standards-Version: Aleph_17 Package: pkg-doc Architecture: all Description: pkg pkg EOF cd .. dpkg-source -Zgzip -b pkg-42 cd pkg-42 OUTPUT=test.changes dpkg-genchanges > ../j/"$OUTPUT" cd .. cp pkg_* j/ # now with an .asc filename that does not match: mv pkg_42.orig.tar.gz.asc pkg_42.tar.gz.asc sed -i 's/orig\.tar\.gz\.asc/tar.gz.asc/' pkg_42-42.dsc cd pkg-42 dpkg-genchanges > ../k/broken.changes cd .. mv pkg_* k/ rm -r pkg-42 ls j cp j/* i/ mkdir conf # first check files are properly ingored: cat > conf/distributions < conf/incoming <> conf/distributions <results.expected <