From: Ian Jackson Date: Sat, 8 Jul 2017 15:51:06 +0000 (+0100) Subject: rpush: break out @rfiles in dopush X-Git-Tag: archive/debian/3.11~22 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=2046b269f987d70a6b89cbcd8926ef4931586706 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 --- diff --git a/dgit b/dgit index 6b1201e7..c2622ef7 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 $!";