diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2017-07-08 16:51:06 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2017-07-08 16:51:06 +0100 |
commit | 2046b269f987d70a6b89cbcd8926ef4931586706 (patch) | |
tree | 27b3ccbdcaac1a1cb0639e9131c06e633b743858 /dgit | |
parent | 423b18b5527db8ebda1a86c4c32d30d0a0248cdb (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-x | dgit | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 $!"; |