]> err.no Git - dak/commitdiff
Strip contrib/non-free from source names
authorLuca Falavigna <dktrkranz@debian.org>
Sun, 30 Sep 2012 12:58:08 +0000 (12:58 +0000)
committerLuca Falavigna <dktrkranz@debian.org>
Sun, 30 Sep 2012 12:58:08 +0000 (12:58 +0000)
Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
daklib/utils.py

index 1034628ea217ce39b383d0feed9ddce67ad4c90a..abe8f52b87cbff1adb4d23cdd7692145ef13f92a 100755 (executable)
@@ -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":