Commit 6819d839 authored by Vincent Pelletier's avatar Vincent Pelletier

Make it possible to disable umask by providing an empty value.

Useful when extending another section from same file.
parent 96d9d2a1
...@@ -87,6 +87,9 @@ class Recipe(object): ...@@ -87,6 +87,9 @@ class Recipe(object):
expression, buildout, name, options) expression, buildout, name, options)
if 'umask' in options: if 'umask' in options:
self.umask = int(options['umask'], 8) self.umask = int(options['umask'], 8)
umask_value = options.get('umask')
if umask_value:
self.umask = int(umask_value, 8)
else: else:
self.umask = os.umask(0) self.umask = os.umask(0)
os.umask(self.umask) os.umask(self.umask)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment