summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-11-06 14:23:18 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-07-01 23:53:44 +0100
commitbab78c63a571a3e1b9e87acedd7e6ea40c835da2 (patch)
tree3bed2e26ead4ff547ccaca3b4578440b8a5a713b /dgit
parentc2320e3c4c99e74d80f029be8ca8c0d06d82d67c (diff)
sbuild: Rename the used-up .changes files to `.inmulti'
This avoids accidental use of the wrong one (by software, or by users).
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit4
1 files changed, 4 insertions, 0 deletions
diff --git a/dgit b/dgit
index 32eaa2a..a4dea9b 100755
--- a/dgit
+++ b/dgit
@@ -3158,6 +3158,10 @@ sub cmd_sbuild {
my $multichanges = "${package}_".(stripepoch $version)."_multi.changes";
if (act_local()) {
stat_exists $multichanges or fail "$multichanges: $!";
+ foreach my $cf (glob $pat) {
+ next if $cf eq $multichanges;
+ rename "$cf", "$cf.inmulti" or fail "$cf\{,.inmulti}: $!";
+ }
}
printdone "build successful, results in $multichanges\n" or die $!;
}