From 2de2a2433ed748b8f1f1350d5b64da0e8f7c3b05 Mon Sep 17 00:00:00 2001 From: Kload Date: Fri, 7 Jun 2013 13:30:44 +0000 Subject: [PATCH] cleanse --- yunohost_app.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/yunohost_app.py b/yunohost_app.py index de860bf1..b6c3e032 100644 --- a/yunohost_app.py +++ b/yunohost_app.py @@ -619,16 +619,14 @@ def app_remove(app, instance=[]): } if lvl(manifest, 'dependencies'): - #_remove_app_dependencies(manifest['dependencies']) + #TODO: _remove_app_dependencies(manifest['dependencies']) pass if lvl(manifest, 'yunohost', 'script_path'): _exec_app_script(step='remove', path=app_tmp_folder +'/'+ manifest['yunohost']['script_path'], var_dict=script_var_dict, app_type=manifest['type']) if is_web: - if os.path.exists(lemon_tmp_conf): os.remove(lemon_tmp_conf) - - with open(lemon_tmp_conf,'a') as lemon_conf: + with open(lemon_tmp_conf, 'w') as lemon_conf: hash = "$tmp->{'locationRules'}->{'"+ app_settings['domain'] +"'}" lemon_conf.write("foreach my $key (keys %{ "+ hash +" }) { delete "+ hash +"{$key} if $key =~ /"+ app_settings['uid'] +"/; }" + '\n')