From fff2dbbaf9164aef948ffc683377702c71d047a8 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 2 Aug 2009 17:58:47 +0200 Subject: pyLoad 0.1.0 --- pyLoadCore.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pyLoadCore.py') diff --git a/pyLoadCore.py b/pyLoadCore.py index c9f9c0ccc..36e06c1e4 100644 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -17,7 +17,7 @@ # along with this program; if not, see . # ### -CURRENT_VERSION = '0.0.5' +CURRENT_VERSION = '0.1.0' import ConfigParser import gettext @@ -62,6 +62,7 @@ class Core(object): self.init_logger(logging.DEBUG) # logging level + self.check_update() self.logger.info(_("Downloadtime: %s") % self.is_dltime()) # debug only @@ -121,6 +122,9 @@ class Core(object): def check_update(self): """checks newst version """ + if not self.config['search_updates']: + return False + newst_version = urllib2.urlopen("http://pyloadupdate.appspot.com/", "version="+CURRENT_VERSION).readline() if newst_version == "True": if not self.config['install_updates']: -- cgit v1.2.3