From 29241018fe7338a88d01a0c37f0a3f9e45b8d6f3 Mon Sep 17 00:00:00 2001 From: Jeix Date: Sun, 20 Jun 2010 13:07:24 +0200 Subject: Package_finished event for scripts implemented bugfix: closing socket for IRC connection (xdcc) --- module/plugins/hooks/ExternalScripts.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'module/plugins') diff --git a/module/plugins/hooks/ExternalScripts.py b/module/plugins/hooks/ExternalScripts.py index 9e0f3855c..6a45cdace 100644 --- a/module/plugins/hooks/ExternalScripts.py +++ b/module/plugins/hooks/ExternalScripts.py @@ -80,10 +80,11 @@ class ExternalScripts(Hook): pass def packageFinished(self, pypack): - """ - not implemented! - """ - pass + for script in self.scripts['package_finished']: + try: + out = subprocess.Popen([join(self.folder, 'package_finished', script), pypack.data['package_name'], pypack.data['folder']], stdout=subprocess.PIPE) + except: + pass def beforeReconnecting(self, ip): for script in self.scripts['before_reconnect']: -- cgit v1.2.3