From 6000178e57dd853b459d1f814e57bbc6c294783a Mon Sep 17 00:00:00 2001 From: spoob Date: Sun, 2 Aug 2009 03:01:05 +0200 Subject: automatic update possible --- pyLoadCore.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'pyLoadCore.py') diff --git a/pyLoadCore.py b/pyLoadCore.py index 2039eba9f..c9f9c0ccc 100644 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -123,11 +123,14 @@ class Core(object): """ newst_version = urllib2.urlopen("http://pyloadupdate.appspot.com/", "version="+CURRENT_VERSION).readline() if newst_version == "True": - self.logger.info("New version available, please run Updater") + if not self.config['install_updates']: + self.logger.info("New version available, please run Updater") + else: + updater = __import__("pyLoadUpdater") + updater.main() else: self.logger.info("pyLoad is up-to-date") - def check_create(self, check_name, legend, folder=True): if not exists(check_name): try: -- cgit v1.2.3