aboutsummaryrefslogtreecommitdiff
path: root/ipsutils/build.py
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunk@stsci.edu>2013-04-22 16:59:15 -0400
committerJoseph Hunkeler <jhunk@stsci.edu>2013-04-22 16:59:15 -0400
commit40be98592d30047736ef3f5285c8ce8e8ab18c63 (patch)
tree411aa098fc69ff74ca364e3edabc14b0c1a29b4c /ipsutils/build.py
parenta0fa3a97e3aa5e636aca2cfabb12961f297e07e9 (diff)
downloadipsutils-40be98592d30047736ef3f5285c8ce8e8ab18c63.tar.gz
Added BUILDPROTO expandable variable
Diffstat (limited to 'ipsutils/build.py')
-rw-r--r--ipsutils/build.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/ipsutils/build.py b/ipsutils/build.py
index f402019..759ec15 100644
--- a/ipsutils/build.py
+++ b/ipsutils/build.py
@@ -98,10 +98,11 @@ class Build(env.Environment):
p: tuple of function arguments
"""
- path = self.env_pkg['BUILDROOT']
+ # BUILDPROTO is a subdirectory of BUILDROOT/pkgname
+ path = self.env_pkg['BUILDPROTO']
if os.path.exists(path):
shutil.rmtree(path)
- os.mkdir(path)
+ os.makedirs(path, 0755)
return True
def create_metadata(self, *p):
@@ -139,7 +140,7 @@ class Build(env.Environment):
template.close()
# Generate intial IPS manifest file in buildroot
- manifest = file(os.path.join(self.env_pkg['BUILDROOT'], self.complete_name + '.p5m.1'), 'w+')
+ manifest = file(os.path.join(self.env_pkg['BUILDROOT'], self.complete_name + '.mog'), 'w+')
for line in output:
manifest.writelines(line)
print(manifest.name)