Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
bug =744787: Compress '.app' folder on upload/download for mac signin…
Browse files Browse the repository at this point in the history
…g servers. r=bhearsum
  • Loading branch information
Erick Dransch committed Apr 12, 2012
1 parent f6d0f9d commit 7d30a05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions release/signing/signing.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def unpacktar(tarfile, destdir):
tarfile = cygpath(os.path.abspath(tarfile))
log.debug("unpack tar %s into %s", tarfile, destdir)
try:
check_call([TAR, '-xf', tarfile], cwd=destdir, stdout=nullfd, preexec_fn=_noumask)
check_call([TAR, '-xzf', tarfile], cwd=destdir, stdout=nullfd, preexec_fn=_noumask)
except:
log.exception("Error unpacking tar file %s to %s", tarfile, destdir)
raise
Expand All @@ -338,7 +338,7 @@ def packtar(tarfile, files, srcdir):
log.debug("pack tar %s from folder %s with files " , tarfile, srcdir)
log.debug( files)
try:
check_call([TAR, '-cf', tarfile] + files, cwd=srcdir, stdout=nullfd, preexec_fn=_noumask)
check_call([TAR, '-czf', tarfile] + files, cwd=srcdir, stdout=nullfd, preexec_fn=_noumask)
except:
log.exception("Error packing tar file %s to %s", tarfile, srcdir)
raise
Expand Down
8 changes: 4 additions & 4 deletions release/signing/signtool.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ def main():
# We want to package the ".app" file in a tar for mac signing.
if fmt == "dmg":
for fd in args:
packtar(fd+'.tar', [fd], os.getcwd())
files.append(fd+'.tar')
packtar(fd+'.tar.gz', [fd], os.getcwd())
files.append(fd+'.tar.gz')
# For other platforms we sign all of the files individually.
else:
files = find_files(options, args)
Expand Down Expand Up @@ -181,8 +181,8 @@ def main():
if fmt == "dmg":
for fd in args:
log.debug("unpacking %s", fd)
unpacktar(fd+'.tar', os.getcwd())
os.unlink(fd+'.tar')
unpacktar(fd+'.tar.gz', os.getcwd())
os.unlink(fd+'.tar.gz')


if __name__ == '__main__':
Expand Down

0 comments on commit 7d30a05

Please sign in to comment.