[Piuparts-commits] [piuparts] 01/08: lib/open_packages_url: try uncompressed Packages files, too
Holger Levsen
holger at moszumanska.debian.org
Mon Jul 20 08:48:55 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 c4a6fc5abea5d56f01e05ea25eda66c347491807
Author: Andreas Beckmann <anbe at debian.org>
Date: Sun Jul 19 22:05:04 2015 +0200
lib/open_packages_url: try uncompressed Packages files, too
Signed-off-by: Andreas Beckmann <anbe at debian.org>
---
piupartslib/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/piupartslib/__init__.py b/piupartslib/__init__.py
index be4b2fc..f6c9ae2 100644
--- a/piupartslib/__init__.py
+++ b/piupartslib/__init__.py
@@ -80,7 +80,7 @@ class DecompressedStream():
def open_packages_url(url):
"""Open a Packages.bz2 file pointed to by a URL"""
socket = None
- for ext in ['.bz2', '.gz']:
+ for ext in ['.bz2', '.gz', '']:
try:
socket = urllib2.urlopen(url + ext)
except urllib2.HTTPError as httperror:
--
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