summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-02 17:58:47 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-02 17:58:47 +0200
commitfff2dbbaf9164aef948ffc683377702c71d047a8 (patch)
treecfefa4d21c600201a8fc446d146d842efcbad621 /pyLoadCore.py
parentadded hoerbuch.in container plugin (diff)
downloadpyload-fff2dbbaf9164aef948ffc683377702c71d047a8.tar.xz
pyLoad 0.1.0v0.1
Diffstat (limited to 'pyLoadCore.py')
-rw-r--r--pyLoadCore.py6
1 files changed, 5 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>.
#
###
-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']: