From 4143231b728a6dc0d6d806b8b585f584824a1774 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 18 Jan 2014 22:58:06 +0000 Subject: [PATCH] Move dsc handling together for clarity. NFC. --- dgit | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/dgit b/dgit index 4c69b955..34257de2 100755 --- a/dgit +++ b/dgit @@ -1438,20 +1438,17 @@ sub dopush () { "HEAD:".rrref(), "refs/tags/$tag"; runcmd_ordryrun @git, qw(update-ref -m), 'dgit push', lrref(), 'HEAD'; - if (!$we_are_responder) { - if (act_local()) { - rename "$dscpath.tmp",$dscpath or die "$dscfn $!"; - } else { - progress "[new .dsc left in $dscpath.tmp]"; - } - } - if ($we_are_responder) { my $dryrunsuffix = act_local() ? "" : ".tmp"; responder_receive_files('signed-dsc-changes', "$dscpath$dryrunsuffix", "$changesfile$dryrunsuffix"); } else { + if (act_local()) { + rename "$dscpath.tmp",$dscpath or die "$dscfn $!"; + } else { + progress "[new .dsc left in $dscpath.tmp]"; + } sign_changes $changesfile; } -- 2.30.2