chiark / gitweb /
dgit: Set default dsc import distro when there is no Dgit field.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 13 Jan 2017 17:17:42 +0000 (17:17 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 13 Jan 2017 17:33:56 +0000 (17:33 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
dgit

index a01051ecb951fbf22a76e3aa0852e356bbf5ae8c..7668c10c4461dc085734d1d82c91d06e7baf4c41 100644 (file)
@@ -2,6 +2,7 @@ dgit (3.3~) unstable; urgency=medium
 
   Bugfixes:
   * dgit: Remove a leftover debugging print.
+  * dgit: Set default dsc import distro when there is no Dgit field.
 
   Packaging:
   * Remove redundant Recommends on libtext-iconv-perl.
diff --git a/dgit b/dgit
index 5ca4a817aa1ddf47c52ace3f2e36f12ae5b53391..1f3179f65d1d0aea36b4dc47896475cdd6d908f5 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -2814,6 +2814,7 @@ sub parse_dsc_field ($$) {
 
     if (!defined $f) {
        progress "$what: NO git hash";
+       $def_dsc_distro->();
     } elsif (($dsc_hash, $dsc_distro, $dsc_hint_tag, $dsc_hint_url)
             = $f =~ m/^(\w+)\s+($distro_re)\s+($versiontag_re)\s+(\S+)(?:\s|$)/) {
        progress "$what: specified git info ($dsc_distro)";