summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-03-26 01:37:41 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-03-26 01:37:41 +0100
commitce94f0a53446c93ab28f9a12c40c5b56a10d282e (patch)
tree7c49df13ff432a3ffc8e716b84cd97eb9732cad6
parent9e242ddcc92fefc536b36d074b1f61069829a210 (diff)
downloadportato-ce94f0a53446c93ab28f9a12c40c5b56a10d282e.tar.gz
portato-ce94f0a53446c93ab28f9a12c40c5b56a10d282e.tar.bz2
portato-ce94f0a53446c93ab28f9a12c40c5b56a10d282e.zip
Added menu entry for new-version-finder; made the plugin a daemon
Diffstat (limited to '')
-rw-r--r--plugins/new_version.xml4
-rw-r--r--portato/plugins/new_version.py4
2 files changed, 7 insertions, 1 deletions
diff --git a/plugins/new_version.xml b/plugins/new_version.xml
index 7bf9947..6d300dd 100644
--- a/plugins/new_version.xml
+++ b/plugins/new_version.xml
@@ -10,4 +10,8 @@
<hook type="after_startup" call="find_version" />
</hooks>
+ <menu>
+ <item call="find_version">Check for new _versions</item>
+ </menu>
+
</plugin>
diff --git a/portato/plugins/new_version.py b/portato/plugins/new_version.py
index d06d58d..988b173 100644
--- a/portato/plugins/new_version.py
+++ b/portato/plugins/new_version.py
@@ -26,4 +26,6 @@ def find_version (*args, **kwargs):
rev = v[-1]
plugin.load_plugins() # to have lp: addresses parsed
- Thread(target = find_thread, args=(rev,)).start()
+ t = Thread(target = find_thread, args=(rev,))
+ t.setDaemon(True)
+ t.start()