gitclone: don't raise when uninstall if location does not exist.

parent 71dd6208
...@@ -259,6 +259,8 @@ class Recipe(object): ...@@ -259,6 +259,8 @@ class Recipe(object):
def uninstall(name, options): def uninstall(name, options):
"""Keep the working copy, unless develop is set to false. """Keep the working copy, unless develop is set to false.
""" """
if not os.path.exists(options['location']):
return
force_keep = False force_keep = False
if options.get('develop', 'yes').lower() in TRUE_VALUES: if options.get('develop', 'yes').lower() in TRUE_VALUES:
p = subprocess.Popen([options.get('git-executable', 'git'), 'status', '--short'], p = subprocess.Popen([options.get('git-executable', 'git'), 'status', '--short'],
......
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