Skip to content
Snippets Groups Projects
Commit 069b12a2 authored by Christian Goetze's avatar Christian Goetze
Browse files

If the correct wy doesn't work, hack it instead -sigh-

parent ba9fe19a
No related branches found
No related tags found
No related merge requests found
......@@ -238,7 +238,6 @@ def for_platform(self, platform, arch = None):
def __init__(self, srctree, dsttree, args):
super(LLManifest, self).__init__()
self.args = args
self.dir_list = []
self.file_list = []
self.excludes = []
self.actions = []
......@@ -425,7 +424,6 @@ def process_directory(self, src, dst):
if(not self.includes(src, dst)):
print "Excluding: ", src, dst
return
self.dir_list.append([src, dst])
names = os.listdir(src)
self.cmakedirs(dst)
errors = []
......
......@@ -479,16 +479,6 @@ def construct(self):
if re.search("lib/lib.+\.so.*", d):
self.run_command('strip -S %s' % d)
# Fixing access permissions
for s,d in self.dir_list:
self.run_command("chmod 755 '%s'" % d)
for s,d in self.file_list:
if os.access(d, os.X_OK):
self.run_command("chmod 755 '%s'" % d)
else:
self.run_command("chmod 644 '%s'" % d)
def package_finish(self):
if(self.args.has_key('installer_name')):
installer_name = self.args['installer_name']
......@@ -500,6 +490,15 @@ def package_finish(self):
else:
installer_name += '_' + self.channel_oneword().upper()
# Fix access permissions
self.run_command("""
find %(dst)s -type d | xargs chmod 755;
find %(dst)s -type f -perm 0700 | xargs chmod 0755;
find %(dst)s -type f -perm 0500 | xargs chmod 0555;
find %(dst)s -type f -perm 0600 | xargs chmod 0644;
find %(dst)s -type f -perm 0400 | xargs chmod 0444;
""" % {'dst':self.get_dst_prefix() })
# temporarily move directory tree so that it has the right name in the tarfile
self.run_command("mv %(dst)s %(inst)s" % {'dst':self.get_dst_prefix(),'inst':self.src_path_of(installer_name)})
# --numeric-owner hides the username of the builder for security etc.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment