From: Ansgar Burchardt Date: Sat, 16 May 2015 12:22:30 +0000 (+0200) Subject: Use apt_pkg.parse_src_depends to parse Build-Depends(-Indep) X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=1778484b3e6d9643f856337da56f23ad4ba52f3a;p=dak.git Use apt_pkg.parse_src_depends to parse Build-Depends(-Indep) apt_pkg.parse_depends does not handle all features allowed in the Build-Depends(-Indep) fields. In particular it gives an error when Build-Depends contains restriction formulas as used for build profiles. --- diff --git a/daklib/utils.py b/daklib/utils.py index a30107be..cf3bd98e 100644 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -1824,7 +1824,7 @@ def check_reverse_depends(removals, suite, arches=None, session=None, cruft=Fals # Remove [arch] information since we want to see breakage on all arches build_dep = re_build_dep_arch.sub("", build_dep) try: - parsed_dep += apt_pkg.parse_depends(build_dep) + parsed_dep += apt_pkg.parse_src_depends(build_dep) except ValueError as e: print "Error for source %s: %s" % (source, e) for dep in parsed_dep: