WEB SITE UNDER DEVELOPMENT

A module is considered fetched if its folder exists and is not empty

parent 8cd9c99c
......@@ -113,7 +113,7 @@ class Module(object):
self.path = url
self.isfetched = True
else:
if os.path.exists(os.path.abspath(os.path.join(fetchto, self.basename))):
if os.path.exists(os.path.abspath(os.path.join(fetchto, self.basename))) and os.listdir(os.path.abspath(os.path.join(fetchto, self.basename))):
self.path = os.path.abspath(os.path.join(fetchto, self.basename))
self.isfetched = True
logging.debug("Module %s (parent: %s) is fetched." % (url, parent.path))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment