[Pkg-privacy-commits] [tails-installer] 64/70: Simplify.

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


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

ulrike pushed a commit to annotated tag tails-installer_4.20
in repository tails-installer.

commit f7138142481d10dcded532f843713d9d14c0bf49
Author: anonym <anonym at riseup.net>
Date:   Wed Sep 20 15:40:42 2017 +0200

    Simplify.
---
 tails_installer/creator.py | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/tails_installer/creator.py b/tails_installer/creator.py
index 4aa85d8..8b7c68e 100755
--- a/tails_installer/creator.py
+++ b/tails_installer/creator.py
@@ -940,18 +940,13 @@ class LinuxTailsInstallerCreator(TailsInstallerCreator):
             return False
 
     def device_can_be_upgraded(self, drive=None):
-
         # Checks that device already has Tails installed
         if not drive:
             device = self.drive
         else:
             device = drive
-
-        if self.is_partition_GPT(device) and device['fstype'] == 'vfat' \
-           and device['label'] == 'Tails':
-            return True
-        else:
-            return False
+        return self.is_partition_GPT(device) and device['fstype'] == 'vfat' \
+           and device['label'] == 'Tails'
 
     def save_full_drive(self):
         self._full_drive = self.drives[self._drive]

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