Hook bugfix

This commit is contained in:
Kload 2013-10-29 15:12:01 +00:00
parent ecaedc2e11
commit 8e764af4ef

View file

@ -71,7 +71,7 @@ def hook_check(file):
"""
try:
with open(file[:file.index('scripts/install')] + 'manifest.json') as f:
with open(file[:file.index('scripts/')] + 'manifest.json') as f:
manifest = json.loads(str(f.read()))
except:
raise YunoHostError(22, _("Invalid app package"))