Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
printf "%s\n" "$omgwtf" >debian/patches/series
printf "%s\n" "$patch" >>debian/patches/series
+# Just in case some joker tries to patch .git/something
+mv .git ../.git
+set +e
dpkg-source --before-build .
+rc=$?
+set -e
+rm -rf .git
+mv ../.git .
+test $rc = 0
rm -f $omgwtf debian/patches/$omgwtf
on a patch during .dsc import. Apropos of #848391.
* Do not fail to import a .dsc containing patches which patch files
multiple times, due to #848611. Closes:#848391.
+ * Do not fail to import a .dsc containing patches to .git/ (!)
Test suite:
* Provide and use stunt lintian and debuild, to avoid lintian