[Pkg-privacy-commits] [tails-installer] 190/210: Change order of signal connection and starting the grabber

Intrigeri intrigeri at moszumanska.debian.org
Wed May 24 15:26:44 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 18b0f734a070683d5537144d420535ad69acb6a1
Author: Martin Briza <mbriza at redhat.com>
Date:   Mon Nov 2 17:32:18 2015 +0100

    Change order of signal connection and starting the grabber
---
 liveusb/gui.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/liveusb/gui.py b/liveusb/gui.py
index 98b37e2..00248f3 100755
--- a/liveusb/gui.py
+++ b/liveusb/gui.py
@@ -81,6 +81,7 @@ class ReleaseDownloadThread(QThread):
 
     def run(self):
         self.grabber = URLGrabber(progress_obj=self.progress, proxies=self.proxies)
+        print(self.progress.release.url)
         home = os.getenv('HOME', 'USERPROFILE')
         filename = os.path.basename(urlparse.urlparse(self.progress.release.url).path)
         try:
@@ -156,9 +157,9 @@ class ReleaseDownload(QObject, BaseMeter):
     @pyqtSlot(str)
     def run(self):
         if len(self.parent().path) <= 0:
-            self._grabber.start()
             self._grabber.downloadFinished.connect(self.childFinished)
             self._grabber.downloadError.connect(self.childError)
+            self._grabber.start()
 
     @pyqtSlot()
     def cancel(self):

-- 
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