Merge pull request #79 from zamentur/unstable

[fix] 2nd installation of apps with a hooks directory
This commit is contained in:
Jérôme Lebleu 2015-08-11 11:08:05 +02:00
commit f4af627a88

View file

@ -433,7 +433,7 @@ def app_install(auth, app, label=None, args=None):
if 'hooks' in os.listdir(app_tmp_folder):
for hook in os.listdir(app_tmp_folder +'/hooks'):
#TODO: do it with sed ?
if file[:1] != '.':
if hook[:1] != '.':
with open(app_tmp_folder +'/hooks/'+ hook, "r") as sources:
lines = sources.readlines()
with open(app_tmp_folder +'/hooks/'+ hook, "w") as sources: