summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit7
1 files changed, 7 insertions, 0 deletions
diff --git a/dgit b/dgit
index f5eb61e..9112606 100755
--- a/dgit
+++ b/dgit
@@ -7132,6 +7132,13 @@ sub build_source {
unpack_playtree_need_cd_work($headref);
changedir '..';
}
+
+ # We are presenting dpkg-source with a tree with no .pc directory.
+ # Without this option, dpkg-source tries to guess if it should
+ # mess about (un)applying patches. Depending on what precisely is
+ # in the patches, it can guess wrong.
+ push @cmd, qw(--no-preparation);
+
runcmd @cmd, qw(--), $leafdir;
} else {
$leafdir = basename $maindir;