[linux-signed] 01/01: Fetch package index as Packages.xz instead of Packages.gz
debian-kernel at lists.debian.org
debian-kernel at lists.debian.org
Tue Jun 14 22:31:43 UTC 2016
This is an automated email from the git hooks/post-receive script.
benh pushed a commit to branch master
in repository linux-signed.
commit d96fe9531798e3613afe5739a12d2ad68d06f703
Author: Ben Hutchings <ben at decadent.org.uk>
Date: Tue Jun 14 23:22:14 2016 +0100
Fetch package index as Packages.xz instead of Packages.gz
experimental only has the former and I will be signing packages from
experimental soon.
---
debian/bin/sign.py | 6 +++---
debian/changelog | 2 ++
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/debian/bin/sign.py b/debian/bin/sign.py
index f0a698b..d1effe7 100755
--- a/debian/bin/sign.py
+++ b/debian/bin/sign.py
@@ -4,7 +4,7 @@ import sys
sys.path.append(sys.argv[1] + "/lib/python")
import os, os.path, shutil, subprocess, tempfile
-import deb822, codecs, gzip, hashlib, io, re, struct, urllib.parse, urllib.request
+import deb822, codecs, hashlib, io, lzma, re, struct, urllib.parse, urllib.request
import gc
from debian_linux.config import ConfigCoreDump
@@ -46,7 +46,7 @@ def get_packages_data(mirror, suite, arch):
if arch not in _packages_data:
release_data = get_release_data(mirror, suite)
- path = 'main/binary-%s/Packages.gz' % arch
+ path = 'main/binary-%s/Packages.xz' % arch
file_data = release_data[path]
url = urllib.parse.urljoin(mirror, 'dists/%s/%s' % (suite, path))
print('I: Fetching %s' % url)
@@ -62,7 +62,7 @@ def get_packages_data(mirror, suite, arch):
raise Exception('%s has wrong checksum' % url)
packages_stream = io.TextIOWrapper(
- io.BytesIO(gzip.decompress(packages_raw)), 'utf-8')
+ io.BytesIO(lzma.decompress(packages_raw)), 'utf-8')
# Make a dictionary of per-package data
_packages_data[arch] = data = {}
diff --git a/debian/changelog b/debian/changelog
index d0c2153..863000a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,8 @@ linux-signed (2) UNRELEASED; urgency=medium
* Build signed udebs using configuration from linux-support
* Drop '-signed' suffix from linux-image packages and expect unsigned
packages to have a '-unsigned' suffix
+ * Fetch package index as Packages.xz instead of Packages.gz, since
+ experimental only has the former
-- Ben Hutchings <ben at decadent.org.uk> Wed, 08 Jun 2016 23:35:38 +0100
--
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