[Pkg-privacy-commits] [tails-installer] 168/210: Don't display the dd option in Windows

Intrigeri intrigeri at moszumanska.debian.org
Wed May 24 15:26:41 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 728a8aac49b4330723ef694baee5c84a6b43355a
Author: Martin Briza <mbriza at redhat.com>
Date:   Thu Sep 10 12:37:49 2015 +0200

    Don't display the dd option in Windows
---
 liveusb/gui.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/liveusb/gui.py b/liveusb/gui.py
index 79e1cb8..292103b 100755
--- a/liveusb/gui.py
+++ b/liveusb/gui.py
@@ -778,7 +778,8 @@ 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'] if not sys.platform.startswith("win") \
+              else ['resetMBR']
     _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)'),
                    }

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