work around python-debian's #670679
authorHelmut Grohne <helmut@subdivi.de>
Thu, 3 Oct 2013 06:51:41 +0000 (08:51 +0200)
committerHelmut Grohne <helmut@subdivi.de>
Thu, 3 Oct 2013 06:51:41 +0000 (08:51 +0200)
dedup/debpkg.py

index d8cc22f..2d67135 100644 (file)
@@ -16,8 +16,8 @@ def process_control(control_contents):
         source = package
     version = control["version"].encode("ascii")
     architecture = control["architecture"].encode("ascii")
-
-    depends = set(dep[0]["name"].encode("ascii")
+    # deb822 currently returns :any dependencies raw. see #670679
+    depends = set(dep[0]["name"].split(u':', 1)[0].encode("ascii")
                   for dep in control.relations.get("depends", ())
                   if len(dep) == 1)
     return dict(package=package, source=source, version=version,