summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2022-12-10 21:41:33 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2022-12-10 22:26:19 +0000
commitf8cb72a084060b20bb78111d10b244814212e5bd (patch)
treeaa26eb8a0f189cf2adba8a43ad30c308452ddbbd /dgit
parent3a8ba9d4034e46a8056d6825285d0e14f46f4f32 (diff)
dgit: dpkg-source -b: when using playtree, pass --no-preparation
Closes: 1025694 Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
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;