Commit 296d58c1 authored by Vincent Pelletier's avatar Vincent Pelletier

Pop is your friend.

parent fe10b220
...@@ -33,12 +33,7 @@ class Recipe(GenericBaseRecipe): ...@@ -33,12 +33,7 @@ class Recipe(GenericBaseRecipe):
def _options(self, options): def _options(self, options):
self.directory = options.copy() self.directory = options.copy()
del self.directory['recipe'] del self.directory['recipe']
self.mode = int(self.directory.pop('mode', '700'), 8)
str_mode = '0700'
if 'mode' in self.directory:
str_mode = self.directory['mode']
del self.directory['mode']
self.mode = int(str_mode, 8)
def install(self): def install(self):
......
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