From 40be98592d30047736ef3f5285c8ce8e8ab18c63 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 22 Apr 2013 16:59:15 -0400 Subject: Added BUILDPROTO expandable variable --- ipsutils/build.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ipsutils/build.py') 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) -- cgit