[Pkg-privacy-commits] [tails-installer] 39/40: Ensure our destination path exists before checking for the liveos (#1006270)

anonym anonym-tails-guest at moszumanska.debian.org
Thu Jan 12 15:15:04 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.1
in repository tails-installer.

commit a44fbfd5153e0b9b2eb41226719fce7d70fe6e12
Author: Luke Macken <lmacken at redhat.com>
Date:   Wed Nov 26 23:57:42 2014 -0700

    Ensure our destination path exists before checking for the liveos (#1006270)
---
 liveusb/creator.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/liveusb/creator.py b/liveusb/creator.py
index ac3e8c1..205d853 100755
--- a/liveusb/creator.py
+++ b/liveusb/creator.py
@@ -370,6 +370,8 @@ class LiveUSBCreator(object):
         return os.path.exists(self.get_liveos())
 
     def get_liveos(self):
+        if not os.path.exists(self.dest):
+            raise LiveUSBError(_('Cannot find path %r') % self.dest)
         return os.path.join(self.dest + os.path.sep, "LiveOS")
 
     def existing_overlay(self):

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