[Pkg-privacy-commits] [tails-installer] 60/210: Add an option to write the image immediately when it's downloaded

Intrigeri intrigeri at moszumanska.debian.org
Wed May 24 15:26:28 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 7b62a70ef3c6461d3f0e853d6eecd5e6bee3cb26
Author: Martin Briza <mbriza at redhat.com>
Date:   Wed Apr 8 11:35:15 2015 +0200

    Add an option to write the image immediately when it's downloaded
---
 liveusb/gui.py | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/liveusb/gui.py b/liveusb/gui.py
index 4cf06c2..5819a7c 100755
--- a/liveusb/gui.py
+++ b/liveusb/gui.py
@@ -503,6 +503,9 @@ class Release(QObject):
             #self.live.log.removeHandler(handler)
             return
 
+        if self.parent().option('writeImmediately'):
+            self.write()
+
     @pyqtProperty(int, constant=True)
     def index(self):
         return self._index
@@ -725,12 +728,15 @@ class LiveUSBData(QObject):
     _currentDrive = 0
 
     # man, this is just awkward... but it seems like the only way to do it in a predictable manner without creating a new class
-    _optionKeys = ['dd', 'resetMBR']
+    _optionKeys = ['dd', 'resetMBR', 'writeImmediately']
     _optionNames = {'dd': _("Use <b>dd</b> to write the image - this will erase everything on your portable drive"),
-                    'resetMBR': _("Reset the MBR (Master Boot Record)")
+                    'resetMBR': _("Reset the MBR (Master Boot Record)"),
+                    'writeImmediately': _("Write the image immediately when the download is finished")
                    }
     _optionValues = {'dd': False,
-                     'resetMBR': False}
+                     'resetMBR': False,
+                     'writeImmediately': False
+                    }
 
     def __init__(self, opts):
         QObject.__init__(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