get_component_tarballs: Check for signature too
authorGuido Günther <agx@sigxcpu.org>
Tue, 30 Jun 2020 08:03:32 +0000 (10:03 +0200)
committerGuido Günther <agx@sigxcpu.org>
Tue, 30 Jun 2020 08:06:41 +0000 (10:06 +0200)
Closes: #963968
gbp/scripts/common/__init__.py

index b67e44c7475f23ee24d09ffa2cea23f6c60fab92..70e6f19d61be24ea2cc27797d90e7583fa2293d3 100644 (file)
@@ -66,7 +66,10 @@ def get_component_tarballs(name, version, tarball, components):
                                                    comp_type,
                                                    os.path.dirname(tarball),
                                                    component)
-        tarballs.append(DebianAdditionalTarball(cname, component))
+        sig = cname + '.asc'
+        if not os.path.exists(sig):
+            sig = None
+        tarballs.append(DebianAdditionalTarball(cname, component, sig=sig))
         if not os.path.exists(cname):
             raise GbpError("Can not find component tarball %s" % cname)
     return tarballs