chiark / gitweb /
rpush: break out @rfiles in dopush
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 8 Jul 2017 15:51:06 +0000 (16:51 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 8 Jul 2017 15:51:06 +0000 (16:51 +0100)
This very slight refactoring makes it easier to add additional files
here, and also factors out the appending of $dryrunsuffix to each one.

No functional change.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit

diff --git a/dgit b/dgit
index 6b1201e7aee73dbc46cdcaa89b3c0b72987f49ce..c2622ef7eb4ff7a949b77fcea66d1ad194a90213 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -4366,9 +4366,9 @@ If you need to change the package, you must use a new version number.
 END
     if ($we_are_responder) {
        my $dryrunsuffix = act_local() ? "" : ".tmp";
+       my @rfiles = ($dscpath, $changesfile);
        responder_receive_files('signed-dsc-changes',
-                               "$dscpath$dryrunsuffix",
-                               "$changesfile$dryrunsuffix");
+                               map { "$_$dryrunsuffix" } @rfiles);
     } else {
        if (act_local()) {
            rename "$dscpath.tmp",$dscpath or die "$dscfn $!";