summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-11-07 13:13:00 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-07-01 23:53:45 +0100
commitb85aa466413f10b9220edb20482a896d5be3d8c9 (patch)
treedb7ff00fb5dc675f926a722b6faa6f7266f1a2a9 /dgit
parente610d7e252dada2ac0b7b235bf1da3df20552629 (diff)
Remove any pre-existing _source.changes file before building source, as a safety check.
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit4
1 files changed, 4 insertions, 0 deletions
diff --git a/dgit b/dgit
index 38c1497..9803b13 100755
--- a/dgit
+++ b/dgit
@@ -3122,6 +3122,10 @@ sub build_source {
}
build_prep();
$sourcechanges = changespat $version,'source';
+ if (act_local()) {
+ unlink "../$sourcechanges" or $!==ENOENT
+ or fail "remove $sourcechanges: $!";
+ }
$dscfn = dscfn($version);
if ($cleanmode eq 'dpkg-source') {
runcmd_ordryrun_local @dpkgbuildpackage, qw(-us -uc -S),