summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2017-01-08 23:31:42 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2017-01-09 02:20:09 +0000
commitf69a0d11feaf4c656c309fb30c727d7b5cc90862 (patch)
treea578f17cf2e8cbe0bc9063c06b6ec3e733d79af6
parent8af91de36aeb91e65b7f8b67c0d3afa4de5c3bc9 (diff)
dgit: Dgit parsing: tolerate newlines etc. not just one space
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-xdgit2
1 files changed, 1 insertions, 1 deletions
diff --git a/dgit b/dgit
index a459d2a..1fdc26c 100755
--- a/dgit
+++ b/dgit
@@ -2758,7 +2758,7 @@ sub parse_dsc_field ($$) {
if (!defined $f) {
progress "$what: NO git hash";
} elsif (($dsc_hash, $dsc_distro, $dsc_hint_tag, $dsc_hint_url)
- = $f =~ m/^(\w+) ($distro_re) ($versiontag_re) (\S+)(?:\s|$)/) {
+ = $f =~ m/^(\w+)\s+($distro_re)\s+($versiontag_re)\s+(\S+)(?:\s|$)/) {
progress "$what: specified git info ($dsc_distro)";
$dsc_hint_tag = [ $dsc_hint_tag ];
} elsif ($f =~ m/^\w+\s*$/) {