From d7e3d28412c5269276d8d7cd72427ab88ee3e3d1 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Wed, 17 Mar 2021 19:31:55 +0100 Subject: Allow superfluous commas in build-dependency lines This code can interact with handwritten files who can have unneeded commas for writing easy. As dpkg allows it, we should do as well. Reported-By: Arnaud Ferraris References: https://lists.debian.org/debian-devel/2021/03/msg00101.html --- apt-pkg/deb/debsrcrecords.cc | 11 ++++++++--- test/integration/test-apt-get-build-dep-file | 3 ++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/apt-pkg/deb/debsrcrecords.cc b/apt-pkg/deb/debsrcrecords.cc index 0a1f91f22..89f3f1667 100644 --- a/apt-pkg/deb/debsrcrecords.cc +++ b/apt-pkg/deb/debsrcrecords.cc @@ -123,6 +123,14 @@ bool debSrcRecordParser::BuildDepends(std::vector -Build-Depends: debhelper (>= 7) +Build-Depends: ,debhelper (>= 7), +Build-Conflicts: ,,, Build-Depends-Indep: X-Python3-Version: >= 3.2 Standards-Version: 3.9.3 -- cgit v1.2.3-70-g09d2