[PATCH] UBUNTU: [Packaging] download-signed -- fix downloader component and handle versions correctly

Andy Whitcroft apw at canonical.com
Fri Feb 1 16:57:03 UTC 2019


While testing some new signing packages I have found a couple of bugs
that need fixing across the board.  Firstly we are dropping out of the
version search after the first record unconditionally which means if the
kernel we are looking for is not the newest version it will fail.
Secondly (as we have noticed before) we can only build correctly for
kernels in main.  This is because the signing bits always drop into main
in dists regardless of where the source is; hard wire this.

This patch is applicable to any modern signed kernel using raw-signing
(rather than raw-efi) custom uploads, which does not already have this
patch.

Proposing for SRU to everywhere.

Signed-off-by: Andy Whitcroft <apw at canonical.com>
---
 download-signed | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/download-signed b/download-signed
index 0e2e953..bed284e 100755
--- a/download-signed
+++ b/download-signed
@@ -44,7 +44,7 @@ class SignedDownloader:
         for version in cache[package_name].versions:
             if version.version == self.package_version:
                 self.package = version
-            break
+                break
 
         if not self.package:
             raise KeyError("{0}: package version not found".format(self.package_name))
@@ -52,7 +52,7 @@ class SignedDownloader:
         origin = self.package.origins[0]
         pool_parsed = urlparse(self.package.uri)
         self.package_dir = "%s/%s/%s/%s-%s/%s/" % (
-            origin.archive, origin.component, 'signed',
+            origin.archive, 'main', 'signed',
             self.src_package, self.package.architecture, self.package_version)
 
         # Prepare the master url stem and pull out any username/password.  If present
-- 
2.20.1




More information about the kernel-team mailing list