[Piuparts-commits] [piuparts] 02/03: lib/open_packages_url: support uncompressed Packages files

Holger Levsen holger at moszumanska.debian.org
Fri Jul 10 09:47:09 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch develop
in repository piuparts.

commit 3a2648a6c4b8d5e5a4dde7d7ad960a497ec894a0
Author: Andreas Beckmann <anbe at debian.org>
Date:   Tue Jun 30 21:39:43 2015 +0200

    lib/open_packages_url: support uncompressed Packages files
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>
---
 piupartslib/__init__.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/piupartslib/__init__.py b/piupartslib/__init__.py
index a496bf4..be4b2fc 100644
--- a/piupartslib/__init__.py
+++ b/piupartslib/__init__.py
@@ -96,6 +96,8 @@ def open_packages_url(url):
     elif ext == '.gz':
         decompressor = zlib.decompressobj(16 + zlib.MAX_WBITS)
         decompressed = DecompressedStream(socket, decompressor)
+    elif ext == '':
+        decompressed = socket
     else:
         raise ext
     return (url, decompressed)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git



More information about the Piuparts-commits mailing list