diff options
author | Joseph Hunkeler <jhunk@stsci.edu> | 2013-04-22 16:59:15 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunk@stsci.edu> | 2013-04-22 16:59:15 -0400 |
commit | 40be98592d30047736ef3f5285c8ce8e8ab18c63 (patch) | |
tree | 411aa098fc69ff74ca364e3edabc14b0c1a29b4c /ipsutils/build.py | |
parent | a0fa3a97e3aa5e636aca2cfabb12961f297e07e9 (diff) | |
download | ipsutils-40be98592d30047736ef3f5285c8ce8e8ab18c63.tar.gz |
Added BUILDPROTO expandable variable
Diffstat (limited to 'ipsutils/build.py')
-rw-r--r-- | ipsutils/build.py | 7 |
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) |