[linux-signed] 03/03: debian/bin/sign.py: Add download fallback to incoming.debian.org
debian-kernel at lists.debian.org
debian-kernel at lists.debian.org
Fri Jan 6 02:24:18 UTC 2017
This is an automated email from the git hooks/post-receive script.
benh pushed a commit to branch sid
in repository linux-signed.
commit 1ed259914ee27bc21a02ef40693758f49f1263bd
Author: Ben Hutchings <ben at decadent.org.uk>
Date: Fri Jan 6 02:11:41 2017 +0000
debian/bin/sign.py: Add download fallback to incoming.debian.org
---
debian/bin/sign.py | 10 ++++++++--
debian/changelog | 1 +
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/debian/bin/sign.py b/debian/bin/sign.py
index e92c453..5ac3848 100755
--- a/debian/bin/sign.py
+++ b/debian/bin/sign.py
@@ -201,8 +201,14 @@ def sign(config_name, imageversion_str, modules_privkey_name, modules_cert_name,
flavour)
package_name = 'linux-image-%s-unsigned' % kernelversion
- package_dir = get_package(mirror_url, suite,
- package_name, imageversion_str, arch)
+ try:
+ package_dir = get_package(mirror_url, suite,
+ package_name, imageversion_str, arch)
+ except MissingPackageError:
+ package_dir = get_package(
+ 'http://incoming.debian.org/debian-buildd/',
+ 'buildd-' + suite,
+ package_name, imageversion_str, arch)
# Shrink the heap before we start forking children
gc.collect()
diff --git a/debian/changelog b/debian/changelog
index 7b49205..3112df3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ linux-signed (3.4) UNRELEASED; urgency=medium
* debian/rules: Use dpkg-parsechangelog -S option to select fields
* debian/bin/sign.py: Introduce specific exception classes
* debian/bin/sign.py: Change caching to support multiple mirrors and suites
+ * debian/bin/sign.py: Add download fallback to incoming.debian.org
-- Ben Hutchings <ben at decadent.org.uk> Fri, 09 Dec 2016 12:48:17 +0000
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux-signed.git
More information about the Kernel-svn-changes
mailing list