diff options
Diffstat (limited to 'source-builder/sb/path.py')
-rw-r--r-- | source-builder/sb/path.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source-builder/sb/path.py b/source-builder/sb/path.py index 1050eee..f138d37 100644 --- a/source-builder/sb/path.py +++ b/source-builder/sb/path.py @@ -85,6 +85,7 @@ def isabspath(path): return path[0] == '/' def mkdir(path): + path = host(path) if exists(path): if not isdir(path): raise error.general('path exists and is not a directory: %s' % (path)) @@ -111,6 +112,7 @@ def removeall(path): def _onerror(function, path, excinfo): print 'removeall error: (%r) %s' % (function, path) + path = host(path) shutil.rmtree(path, onerror = _onerror) return |