debian.source: Enumerate components only once
authorAndreas Beckmann <anbe@debian.org>
Fri, 7 Sep 2018 09:54:31 +0000 (11:54 +0200)
committerGuido Günther <agx@sigxcpu.org>
Fri, 21 Sep 2018 11:32:54 +0000 (13:32 +0200)
gbp/deb/source.py

index f1e2c5696e335d4ed0cc4dae32c6f7fd18780d22..a75de07c5e38e525ca658af7f4346b097501ec25 100644 (file)
@@ -158,6 +158,5 @@ class DebianSource(object):
         component names
         """
         names = [self.upstream_tarball_name(comp_type)]
-        for component in (components or []):
-            names += [self.upstream_tarball_name(comp_type, c) for c in components]
+        names += [self.upstream_tarball_name(comp_type, c) for c in (components or [])]
         return names