From 8e764af4efb881b8b82b4089ffa1b937f3d0e0e1 Mon Sep 17 00:00:00 2001 From: Kload Date: Tue, 29 Oct 2013 15:12:01 +0000 Subject: [PATCH] Hook bugfix --- yunohost_hook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yunohost_hook.py b/yunohost_hook.py index d8b738ec..af472692 100644 --- a/yunohost_hook.py +++ b/yunohost_hook.py @@ -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"))