[Pkg-privacy-commits] [tails-installer] 02/02: Drop the CLI.

Ulrike Uhlig ulrike at moszumanska.debian.org
Mon Nov 20 14:55:19 UTC 2017


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

ulrike pushed a commit to annotated tag tails-installer_5.0
in repository tails-installer.

commit 1111fa4cc0e4ec018b8ded72f126404b4777b3d2
Author: anonym <anonym at riseup.net>
Date:   Sat Sep 23 12:59:19 2017 +0200

    Drop the CLI.
    
    It's been broken for ages, and the GUI is the only supported method.
---
 tails-installer | 32 +++++++++-----------------------
 1 file changed, 9 insertions(+), 23 deletions(-)

diff --git a/tails-installer b/tails-installer
index 14a6a6a..8212ab1 100755
--- a/tails-installer
+++ b/tails-installer
@@ -77,29 +77,15 @@ def parse_args():
 
 def main():
     opts, args = parse_args()
-    if opts.console:
-        from tails_installer import TailsInstallerCreator
-        try:
-            live = TailsInstallerCreator(opts)
-            live.detect_supported_drives()
-            live.verify_filesystem()
-            live.extract_iso()
-            live.update_configs()
-            live.install_bootloader()
-        except Exception, e:
-            print str(e)
-        x = raw_input("\nDone!  Press any key to exit")
-    else:
-        ## Start our graphical interface
-        import gi
-        gi.require_version('Gtk', '3.0')
-        from gi.repository import Gtk
-        from tails_installer.gui import TailsInstallerWindow
-        try:
-            win = TailsInstallerWindow(opts=opts, args=sys.argv)
-            Gtk.main()
-        except KeyboardInterrupt:
-            pass
+    import gi
+    gi.require_version('Gtk', '3.0')
+    from gi.repository import Gtk
+    from tails_installer.gui import TailsInstallerWindow
+    try:
+        win = TailsInstallerWindow(opts=opts, args=sys.argv)
+        Gtk.main()
+    except KeyboardInterrupt:
+        pass
 
 if __name__ == '__main__':
     main()

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