chiark / gitweb /
sbuild: Rename the used-up .changes files to `.inmulti'
[dgit.git] / dgit
diff --git a/dgit b/dgit
index 32eaa2a830bc68cdea02fd7e7077af8593edc384..a4dea9b44f6bd67cba42ebe17c361e27e7eb0004 100755 (executable)
--- 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 $!;
 }