[Pkg-privacy-commits] [tails-installer] 210/210: Reintroduce iso storage in the user's profile folder
Intrigeri
intrigeri at moszumanska.debian.org
Wed May 24 15:26:51 UTC 2017
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to tag 3.90.0
in repository tails-installer.
commit 17f8948b41116470162bfc6e23386d199ccaed96
Author: Martin Briza <mbriza at redhat.com>
Date: Tue Nov 24 17:17:19 2015 +0100
Reintroduce iso storage in the user's profile folder
---
liveusb/gui.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/liveusb/gui.py b/liveusb/gui.py
index bc397b5..4b58589 100755
--- a/liveusb/gui.py
+++ b/liveusb/gui.py
@@ -83,8 +83,13 @@ class ReleaseDownloadThread(QThread):
self.grabber = URLGrabber(progress_obj=self.progress, proxies=self.proxies)
home = os.getenv('HOME', 'USERPROFILE')
filename = os.path.basename(urlparse.urlparse(self.progress.release.url).path)
+ for folder in ('Downloads', 'My Documents'):
+ if os.path.isdir(os.path.join(home, folder)):
+ filename = os.path.join(home, folder, filename)
+ break
try:
- iso = self.grabber.urlgrab(self.progress.release.url, reget='simple')
+ iso = self.grabber.urlgrab(self.progress.release.url, filename=filename, reget='simple')
+ print iso
except URLGrabError, e:
# TODO find out if this errno is _really_ benign
if e.errno == 9: # Requested byte range not satisfiable.
--
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