| Index: client/bin/base_utils.py
|
| diff --git a/client/bin/base_utils.py b/client/bin/base_utils.py
|
| index 96d1fc06fa4f616433bae03cff85ec0053cb4279..7c5d26b11996363277180757c9049b9559b95cd1 100644
|
| --- a/client/bin/base_utils.py
|
| +++ b/client/bin/base_utils.py
|
| @@ -63,7 +63,10 @@ def extract_tarball_to_dir(tarball, dir):
|
| the top level of a tarball is - useful for versioned directory names, etc
|
| """
|
| if os.path.exists(dir):
|
| - raise NameError, 'target %s already exists' % dir
|
| + if os.path.isdir(dir):
|
| + shutil.rmtree(dir)
|
| + else:
|
| + os.remove(dir)
|
| pwd = os.getcwd()
|
| os.chdir(os.path.dirname(os.path.abspath(dir)))
|
| newdir = extract_tarball(tarball)
|
|
|