[Pkg-privacy-commits] [tails-installer] 25/31: Require confirmation for destructive installs

anonym anonym-tails-guest at moszumanska.debian.org
Thu Jan 12 15:14:54 UTC 2017


This is an automated email from the git hooks/post-receive script.

anonym-tails-guest pushed a commit to annotated tag 3.13.0
in repository tails-installer.

commit 7f7a560ed18fc20aebd69675a7ab95bae90e9424
Author: Luke Macken <lmacken at redhat.com>
Date:   Wed Nov 26 12:01:09 2014 -0700

    Require confirmation for destructive installs
---
 liveusb/gui.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/liveusb/gui.py b/liveusb/gui.py
index ce20478..9928dea 100755
--- a/liveusb/gui.py
+++ b/liveusb/gui.py
@@ -580,6 +580,13 @@ class LiveUSBDialog(QtGui.QDialog, LiveUSBInterface):
                         #self.live.unmount_device()
                         self.enable_widgets(True)
                         return
+        else:
+            # Require confirmation for destructive installs
+            if not self.confirmed:
+                self.status(_("WARNING: You are about to perform a destructive install. This will destroy all data and partitions on your USB drive. Press 'Create Live USB' again to continue."))
+                self.confirmed = True
+                self.enable_widgets(True)
+                return
 
         # Remove the log handler, because our live thread will register its own
         self.live.log.removeHandler(self.handler)

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