From: Ian Jackson Date: Fri, 13 Jan 2017 17:17:42 +0000 (+0000) Subject: dgit: Set default dsc import distro when there is no Dgit field. X-Git-Tag: archive/debian/3.3~25 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f559074ff68c29e0c40f544ac57e09fe5ade766d;p=dgit.git dgit: Set default dsc import distro when there is no Dgit field. Signed-off-by: Ian Jackson --- diff --git a/debian/changelog b/debian/changelog index a01051ec..7668c10c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 5ca4a817..1f3179f6 100755 --- 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)";