diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2013-04-23 09:34:08 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2013-04-23 09:34:08 -0400 |
commit | f059bb77118be0388da2400a8ddb7e0489ea1516 (patch) | |
tree | 58c66ff21256a2e82021bfc0f47bdbbcc2be615c /ipsutils/build.py | |
parent | b45cd39d3a97a65d068a675ada5914ea72fa5b19 (diff) | |
download | ipsutils-f059bb77118be0388da2400a8ddb7e0489ea1516.tar.gz |
Extract with absolute path
Diffstat (limited to 'ipsutils/build.py')
-rw-r--r-- | ipsutils/build.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ipsutils/build.py b/ipsutils/build.py index 5f32a6e..5b17828 100644 --- a/ipsutils/build.py +++ b/ipsutils/build.py @@ -76,7 +76,7 @@ class Build(env.Environment): return True def source_unpack(self, *p): - path = os.path.relpath(self.env_pkg['SOURCES'], self.env['IPSBUILD']) + path = os.path.abspath(self.env_pkg['SOURCES']) if not os.path.exists(path): print("{0:s}: does not exist".format(path)) return False @@ -100,7 +100,8 @@ class Build(env.Environment): err = proc.wait() break if err is not None: - return False + if err > 0: + return False return True def create_buildroot(self, *p): |