[Pkg-privacy-commits] [tails-installer] 04/70: test if the drive has a partition at all to avoid crash.
Ulrike Uhlig
ulrike at moszumanska.debian.org
Mon Nov 20 14:54:49 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 2d53b854c5591af31cf266aa299d423c379a1235
Author: Ulrike Uhlig <u at 451f.org>
Date: Tue Dec 1 20:57:19 2015 +0100
test if the drive has a partition at all to avoid crash.
---
tails_installer/creator.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tails_installer/creator.py b/tails_installer/creator.py
index a0e6fe6..0a69929 100755
--- a/tails_installer/creator.py
+++ b/tails_installer/creator.py
@@ -910,6 +910,10 @@ class LinuxTailsInstallerCreator(TailsInstallerCreator):
obj = self._get_object(drive['udi'])
else:
obj = self._get_object()
+
+ if !obj.props.partition :
+ return False
+
partition_table = obj.props.partition_table
if not partition_table:
partition_table = self._udisksclient.get_partition_table(obj.props.partition)
--
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