]> git.decadent.org.uk Git - dak.git/commitdiff
make-maintainers
authorJoerg Jaspert <joerg@debian.org>
Sat, 23 Jan 2010 09:27:15 +0000 (10:27 +0100)
committerJoerg Jaspert <joerg@debian.org>
Sat, 23 Jan 2010 09:27:15 +0000 (10:27 +0100)
one more irritating way made a little more clear.
fixed the output so it actually works for -u

Signed-off-by: Joerg Jaspert <joerg@debian.org>
dak/make_maintainers.py

index a7b576a6ff4ce5a90db519c916ceb789de621342..80e221532db9944d5a7589cf0051a80aa7e85914 100755 (executable)
@@ -156,10 +156,10 @@ def main():
             package = source[0]
             version = source[1]
             maintainer = fix_maintainer(source[2])
-            if not gen_uploaders:
-                key = package
-            else:
+            if gen_uploaders:
                 key = (package, maintainer)
+            else:
+                key = package
 
             if packages.has_key(key):
                 if packages[key]["priority"] <= suite_priority:
@@ -234,7 +234,8 @@ def main():
     package_keys.sort()
     if gen_uploaders:
         for (package, maintainer) in package_keys:
-            lhs = "~".join([package, packages[package]["version"]])
+            key = (package, maintainer)
+            lhs = "~".join([package, packages[key]["version"]])
             print "%-30s %s" % (lhs, maintainer)
     else:
         for package in package_keys: