PR 2115 - Check prefix path write access before starting to build.

Added a check in the options post processing to check is the
prefix path allows writes. No actual write check is made. just
the permissions are checked. If the --no-install options is
used the check is not made.

Moved the --no-install option from the set builder to the options
module.
This commit is contained in:
Chris Johns
2013-04-15 10:05:23 +10:00
parent 8508944647
commit 9994530920
3 changed files with 15 additions and 2 deletions

View File

@@ -89,6 +89,9 @@ def isfile(path):
def isabspath(path):
return path[0] == '/'
def iswritable(path):
return os.access(host(path), os.W_OK)
def mkdir(path):
path = host(path)
if exists(path):