summaryrefslogtreecommitdiffstats
path: root/src/virtBootstrap/sources.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/virtBootstrap/sources.py')
-rw-r--r--src/virtBootstrap/sources.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/virtBootstrap/sources.py b/src/virtBootstrap/sources.py
index ca74313..6e54a96 100644
--- a/src/virtBootstrap/sources.py
+++ b/src/virtBootstrap/sources.py
@@ -211,6 +211,10 @@ class FileSource(object):
@param dest: Directory path where the files to be extraced
"""
+
+ if not os.path.isfile(self.path):
+ raise Exception('Invalid file source "%s"' % self.path)
+
if self.output_format == 'dir':
logging.info("Extracting files into destination directory")
safe_untar(self.path, dest)