diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2008-03-26 01:37:41 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2008-03-26 01:37:41 +0100 |
commit | ce94f0a53446c93ab28f9a12c40c5b56a10d282e (patch) | |
tree | 7c49df13ff432a3ffc8e716b84cd97eb9732cad6 | |
parent | 9e242ddcc92fefc536b36d074b1f61069829a210 (diff) | |
download | portato-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.xml | 4 | ||||
-rw-r--r-- | portato/plugins/new_version.py | 4 |
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() |