Commit f5d260a2 authored by Thomas Larrieu's avatar Thomas Larrieu

work in progress

parent 5b03245c
......@@ -367,4 +367,18 @@ class Recipe(object):
del self.options['compile-directory']
parts.append(self.options['location'])
# Cleanup state
cleanup_list = self.options.get('cleanup', '').split()
self.clean(cleanup_list)
return parts
def clean(self, cleanup_list):
"""
Basically, this method does not do much, appart from removing
what it is told to, as a list passed in args
"""
current_dir = os.getcwd()
for i, directory in enumerate(cleanup_list):
print str(i) + "->" + directory
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