aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Beckmann <anbe@debian.org>2018-09-07 11:54:31 +0200
committerGuido G√ľnther <agx@sigxcpu.org>2018-09-21 13:32:54 +0200
commit12574cce0cc12ca0f17a91cacea358bdc2f1a737 (patch)
tree28d35da10777bd214540864f57b883a8e6ca0627
parente47b2a69800edf4229551f9ee341e98732694f37 (diff)
debian.source: Enumerate components only once
-rw-r--r--gbp/deb/source.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gbp/deb/source.py b/gbp/deb/source.py
index f1e2c56..a75de07 100644
--- a/gbp/deb/source.py
+++ b/gbp/deb/source.py
@@ -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