summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apt-pkg/deb/debsrcrecords.cc5
-rwxr-xr-xtest/integration/test-apt-get-build-dep-file1
2 files changed, 5 insertions, 1 deletions
diff --git a/apt-pkg/deb/debsrcrecords.cc b/apt-pkg/deb/debsrcrecords.cc
index 0368817c2..cd8840af2 100644
--- a/apt-pkg/deb/debsrcrecords.cc
+++ b/apt-pkg/deb/debsrcrecords.cc
@@ -119,7 +119,10 @@ bool debSrcRecordParser::BuildDepends(std::vector<pkgSrcRecords::Parser::BuildDe
if (Sect.Find(fields[I], Start, Stop) == false)
continue;
-
+
+ if (Start == Stop)
+ continue;
+
while (1)
{
Start = debListParser::ParseDepends(Start, Stop,
diff --git a/test/integration/test-apt-get-build-dep-file b/test/integration/test-apt-get-build-dep-file
index 07de8bb30..dc405da90 100755
--- a/test/integration/test-apt-get-build-dep-file
+++ b/test/integration/test-apt-get-build-dep-file
@@ -109,6 +109,7 @@ Section: admin
Priority: optional
Maintainer: Michael Vogt <mvo@ubuntu.com>
Build-Depends: debhelper (>= 7)
+Build-Depends-Indep:
X-Python3-Version: >= 3.2
Standards-Version: 3.9.3