From: Luca Falavigna Date: Sun, 30 Sep 2012 12:58:08 +0000 (+0000) Subject: Strip contrib/non-free from source names X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5f68942ff91d90b5d48d56aa0acde962a4cc185;p=dak Strip contrib/non-free from source names Signed-off-by: Luca Falavigna --- diff --git a/daklib/utils.py b/daklib/utils.py index 1034628e..abe8f52b 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -1837,7 +1837,7 @@ def check_reverse_depends(removals, suite, arches=None, session=None, cruft=Fals component, = session.query(Component.component_name) \ .join(Component.overrides) \ .filter(Override.suite == overridesuite) \ - .filter(Override.package == source) \ + .filter(Override.package == re.sub('/(contrib|non-free)$', '', source)) \ .join(Override.overridetype).filter(OverrideType.overridetype == 'dsc') \ .first() if component != "main":