From b5f68942ff91d90b5d48d56aa0acde962a4cc185 Mon Sep 17 00:00:00 2001 From: Luca Falavigna Date: Sun, 30 Sep 2012 12:58:08 +0000 Subject: [PATCH] Strip contrib/non-free from source names Signed-off-by: Luca Falavigna --- daklib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": -- 2.39.5