uscan: Remove pre-devscripts 2.10.70 compat code
authorUnit 193 <unit193@unit193.net>
Fri, 17 Dec 2021 00:58:11 +0000 (19:58 -0500)
committerGuido Günther <agx@sigxcpu.org>
Sun, 19 Dec 2021 10:39:08 +0000 (11:39 +0100)
We can rely on the <target> element being present in dehs output.

The output it looks for from uscan no longer matches anyway.

gbp/deb/uscan.py

index 4eb70a6b5ec354a4be5ef47aca9373bea80b7af6..1757ddb3bdabaf59572a18957d4ddd01c078c993 100644 (file)
@@ -69,16 +69,6 @@ class Uscan(object):
             if m:
                 source = '../%s' % m.group(1)
                 break
-            elif row.startswith('<messages>'):
-                m = re.match(r".*symlinked ([^\s]+) to it", row)
-                if m:
-                    source = "../%s" % m.group(1)
-                    break
-                m = re.match(r"Successfully downloaded updated package "
-                             "([^<]+)", row)
-                if m:
-                    source = "../%s" % m.group(1)
-                    break
         # Try to determine the already downloaded sources name
         else:
             d = {}