aboutsummaryrefslogtreecommitdiff
path: root/ipsutils/build.py
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2013-04-23 09:34:08 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2013-04-23 09:34:08 -0400
commitf059bb77118be0388da2400a8ddb7e0489ea1516 (patch)
tree58c66ff21256a2e82021bfc0f47bdbbcc2be615c /ipsutils/build.py
parentb45cd39d3a97a65d068a675ada5914ea72fa5b19 (diff)
downloadipsutils-f059bb77118be0388da2400a8ddb7e0489ea1516.tar.gz
Extract with absolute path
Diffstat (limited to 'ipsutils/build.py')
-rw-r--r--ipsutils/build.py5
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):