make sure we're always working with an absolute path

This commit is contained in:
Mike Bonnet 2010-07-26 13:34:06 -04:00
parent ebf9aaaf1b
commit 19f37862e7

View file

@ -572,7 +572,7 @@ class VMExecTask(BaseTaskHandler):
def verifyChecksum(self, path, checksum, algo='sha1'):
if path.startswith('/'):
# Only happens when called by verifyBuildReq()
local_path = path
local_path = os.path.abspath(path)
else:
local_path = os.path.abspath(os.path.join(self.output_dir, path))
if not local_path.startswith(self.workdir):