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 7fd7f0d..8132b8f 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 {
-       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();
 }