summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/ExternalScripts.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hooks/ExternalScripts.py')
-rw-r--r--module/plugins/hooks/ExternalScripts.py9
1 files changed, 5 insertions, 4 deletions
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']: