chiark / gitweb /
Move dsc handling together for clarity. NFC.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 18 Jan 2014 22:58:06 +0000 (22:58 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 5 Mar 2014 18:29:03 +0000 (18:29 +0000)
dgit

diff --git a/dgit b/dgit
index 4c69b95..34257de 100755 (executable)
--- 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;
     }