[Pkg-privacy-commits] [tails-installer] 02/04: Don't warn the user when unmounting went alright

Intrigeri intrigeri at moszumanska.debian.org
Wed May 24 15:27:54 UTC 2017


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

intrigeri pushed a commit to tag 3.93.3
in repository tails-installer.

commit d82e6abe55b70a133bc12f8ce8300963a79ec56a
Author: Martin Briza <mbriza at redhat.com>
Date:   Mon Apr 25 16:20:11 2016 +0200

    Don't warn the user when unmounting went alright
---
 liveusb/creator.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/liveusb/creator.py b/liveusb/creator.py
index 139fb99..40283de 100755
--- a/liveusb/creator.py
+++ b/liveusb/creator.py
@@ -381,7 +381,7 @@ class LinuxLiveUSBCreator(LiveUSBCreator):
             if dev.startswith(os.path.normpath(drive)) and dev != os.path.normpath(drive):
                 umount = subprocess.Popen(['umount', dev], env=env, shell=False, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
                 umount.wait()
-                if not 'not mounted' in umount.stdout.readline():
+                if umount.returncode != 0 and not 'not mounted' in umount.stdout.readline():
                     raise LiveUSBError(_("The drive you're trying to use is open in another application"))
 
         self.log.debug(_('Running'), cmd)

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