aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/viewer_manifest.py
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/viewer_manifest.py')
-rwxr-xr-xlinden/indra/newview/viewer_manifest.py35
1 files changed, 20 insertions, 15 deletions
diff --git a/linden/indra/newview/viewer_manifest.py b/linden/indra/newview/viewer_manifest.py
index 718d6e6..fe894a7 100755
--- a/linden/indra/newview/viewer_manifest.py
+++ b/linden/indra/newview/viewer_manifest.py
@@ -570,25 +570,30 @@ class LinuxManifest(ViewerManifest):
570 find %(dst)s -type f -perm 0600 | xargs --no-run-if-empty chmod 0644; 570 find %(dst)s -type f -perm 0600 | xargs --no-run-if-empty chmod 0644;
571 find %(dst)s -type f -perm 0400 | xargs --no-run-if-empty chmod 0444; 571 find %(dst)s -type f -perm 0400 | xargs --no-run-if-empty chmod 0444;
572 true""" % {'dst':self.get_dst_prefix() }) 572 true""" % {'dst':self.get_dst_prefix() })
573
573 self.package_file = installer_name + '.tar.bz2' 574 self.package_file = installer_name + '.tar.bz2'
574 575
575 # temporarily move directory tree so that it has the right 576 if("package" in self.args['actions'] or
576 # name in the tarfile 577 "unpacked" in self.args['actions']):
577 self.run_command("mv %(dst)s %(inst)s" % { 578
578 'dst': self.get_dst_prefix(), 579 # temporarily move directory tree so that it has the right
579 'inst': self.build_path_of(installer_name)}) 580 # name in the tarfile
580 try: 581 self.run_command("mv %(dst)s %(inst)s" % {
581 # --numeric-owner hides the username of the builder for
582 # security etc.
583 self.run_command('tar -C %(dir)s --numeric-owner -cjf '
584 '%(inst_path)s.tar.bz2 %(inst_name)s' % {
585 'dir': self.get_build_prefix(),
586 'inst_name': installer_name,
587 'inst_path':self.build_path_of(installer_name)})
588 finally:
589 self.run_command("mv %(inst)s %(dst)s" % {
590 'dst': self.get_dst_prefix(), 582 'dst': self.get_dst_prefix(),
591 'inst': self.build_path_of(installer_name)}) 583 'inst': self.build_path_of(installer_name)})
584 try:
585 # --numeric-owner hides the username of the builder for
586 # security etc.
587 self.run_command('tar -C %(dir)s --numeric-owner -cjf '
588 '%(inst_path)s.tar.bz2 %(inst_name)s' % {
589 'dir': self.get_build_prefix(),
590 'inst_name': installer_name,
591 'inst_path':self.build_path_of(installer_name)})
592 finally:
593 self.run_command("mv %(inst)s %(dst)s" % {
594 'dst': self.get_dst_prefix(),
595 'inst': self.build_path_of(installer_name)})
596
592 597
593class Linux_i686Manifest(LinuxManifest): 598class Linux_i686Manifest(LinuxManifest):
594 def construct(self): 599 def construct(self):