From 1778484b3e6d9643f856337da56f23ad4ba52f3a Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Sat, 16 May 2015 14:22:30 +0200 Subject: [PATCH] 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. --- daklib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.5