[Pkg-privacy-commits] [tails-installer] 02/13: Switch up the modes in grabber
Intrigeri
intrigeri at moszumanska.debian.org
Wed May 24 15:28:05 UTC 2017
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to tag 3.95.0
in repository tails-installer.
commit 37d4651f28b290440b12ee2cb22394fdba80691a
Author: Martin Briza <mbriza at redhat.com>
Date: Tue Apr 26 11:30:16 2016 +0200
Switch up the modes in grabber
---
liveusb/grabber.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/liveusb/grabber.py b/liveusb/grabber.py
index e2ab601..dd89a23 100644
--- a/liveusb/grabber.py
+++ b/liveusb/grabber.py
@@ -85,9 +85,9 @@ def download(parent, url, target_folder=find_downloads(), update_maximum = None,
r = requests.get(url, headers=resume_header, stream=True, allow_redirects=True, timeout=(30.0, 30.0))
if r.status_code == 200:
- mode = "ab"
- elif r.status_code == 206:
mode = "wb"
+ elif r.status_code == 206:
+ mode = "ab"
elif r.status_code == 416:
return full_path
else:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/tails-installer.git
More information about the Pkg-privacy-commits
mailing list