Set umask before creating the tarball (closes #88262)

Otherwise we might end up with a file only readable by its owner.

authorJulien Cristau <julien.cristau@logilab.fr>
changeset3dfdcefd8db9
branchdefault
phasepublic
hiddenno
parent revision#9195b7f269f2 Added tag logilab-devtools-debian-version-0.20.0-1 for changeset 361e4317900f
child revision#ab4de83baed5 0.20.1
files modified by this revision
lgp/build.py
# HG changeset patch
# User Julien Cristau <julien.cristau@logilab.fr>
# Date 1329732175 -3600
# Mon Feb 20 11:02:55 2012 +0100
# Node ID 3dfdcefd8db97828a961c0203933a76661d42f8f
# Parent 9195b7f269f25ea1e7de4a326375c363ea616ce8
Set umask before creating the tarball (closes #88262)

Otherwise we might end up with a file only readable by its owner.

diff --git a/lgp/build.py b/lgp/build.py
@@ -141,10 +141,11 @@
1                  self.logger.warn("temporary directory not deleted: %s (%s)"
2                                   % (t, ", ".join(c)))
3 
4      def run(self, args):
5          Cleaner(config=self.config).run(args)
6 +        os.umask(002)
7          # create the upstream tarball if necessary and move it to result directory
8          with tempdir(self.config.keep_tmpdir) as tmpdir:
9              self.make_orig_tarball(tmpdir)
10 
11              try: