]> git.decadent.org.uk Git - dak.git/commitdiff
daklib/utils.py: Fix crash on rdep test
authorNiels Thykier <nthykier@coccia.debian.org>
Sun, 16 Feb 2014 09:14:11 +0000 (09:14 +0000)
committerJoerg Jaspert <joerg@debian.org>
Thu, 24 Apr 2014 19:46:38 +0000 (21:46 +0200)
Signed-off-by: Niels Thykier <nthykier@coccia.debian.org>
daklib/utils.py

index 0710fb3778d6b78523423ca73fedf1d79da57a22..c75b6be6a5edb8f24b7d52f2eaa274df445fc704 100644 (file)
@@ -1834,9 +1834,10 @@ def check_reverse_depends(removals, suite, arches=None, session=None, cruft=Fals
                     .filter(Override.package == re.sub('/(contrib|non-free)$', '', source)) \
                     .join(Override.overridetype).filter(OverrideType.overridetype == 'dsc') \
                     .first()
+                key = source
                 if component != "main":
-                    source = "%s/%s" % (source, component)
-                all_broken.setdefault(source, set()).add(pp_deps(dep))
+                    key = "%s/%s" % (source, component)
+                all_broken.setdefault(key, set()).add(pp_deps(dep))
                 dep_problem = 1
 
     if all_broken: