chiark / gitweb /
fix new packages debian/0.5
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 22 Aug 2013 14:41:05 +0000 (15:41 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 22 Aug 2013 14:41:05 +0000 (15:41 +0100)
dgit

diff --git a/dgit b/dgit
index 7fd7f0d6c4f4de729115a5554e7d86fb0e0679e9..8132b8fce7eab84e711e7ee961ad3fbfd3ee773b 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -915,8 +915,9 @@ sub cmd_push {
     if (fetch_from_archive()) {
        is_fast_fwd(lrref(), 'HEAD') or die;
     } else {
     if (fetch_from_archive()) {
        is_fast_fwd(lrref(), 'HEAD') or die;
     } else {
-       fail "package appears to be new in this suite;".
-           " if this is intentional, use --new";
+       $new_package or
+           fail "package appears to be new in this suite;".
+               " if this is intentional, use --new";
     }
     dopush();
 }
     }
     dopush();
 }