summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2017-07-08 16:51:06 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2017-07-08 16:51:06 +0100
commit2046b269f987d70a6b89cbcd8926ef4931586706 (patch)
tree27b3ccbdcaac1a1cb0639e9131c06e633b743858 /dgit
parent423b18b5527db8ebda1a86c4c32d30d0a0248cdb (diff)
rpush: break out @rfiles in dopush
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>
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit4
1 files changed, 2 insertions, 2 deletions
diff --git a/dgit b/dgit
index 6b1201e..c2622ef 100755
--- 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 $!";