[Thincrust-devel] [PATCH] Fixed bug that causes appliance-creator to stacktrace when -i is omitted

Perry Myers pmyers at redhat.com
Thu Nov 13 20:20:19 UTC 2008


Signed-off-by: Perry Myers <pmyers at redhat.com>
---
 appcreate/appliance.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/appcreate/appliance.py b/appcreate/appliance.py
index 294013a..e0fea1c 100644
--- a/appcreate/appliance.py
+++ b/appcreate/appliance.py
@@ -294,7 +294,7 @@ class ApplianceImageCreator(ImageCreator):
         self._stage_final_image()
         
         #add stuff
-        if os.path.isdir(include):
+        if include and os.path.isdir(include):
             logging.debug("adding everything in %s to %s" % (include,self._outdir))
             files = glob.glob('%s/*' % include)
             for file in files:
-- 
1.6.0.3




More information about the Thincrust-devel mailing list