From 1897faf395682d209fd2d7ca2cdcd7ec626e5c3a Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Tue, 7 Aug 2007 05:06:20 +0000 Subject: [PATCH] rely on server to handle duplicate entires so we can get new info when user upgrades their pygtk version, etc --- src/info.py | 5 ----- src/interface.py | 8 ++------ 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/info.py b/src/info.py index 8793266a5..bc865f4d1 100644 --- a/src/info.py +++ b/src/info.py @@ -3,14 +3,9 @@ import urllib import platform -import common import gtk pygtk = '%i.%i.%i' %(gtk.pygtk_version[0],gtk.pygtk_version[1],gtk.pygtk_version[2]) urllib.urlopen("http://download.deluge-torrent.org/stats.php?processor=" + \ platform.machine() + "&python=" + platform.python_version() \ + "&os=" + platform.system() + "&pygtk=" + pygtk) - -f = open(common.CONFIG_DIR + '/infosent', 'w') -f.write("") -f.close diff --git a/src/interface.py b/src/interface.py index 3f94631c0..5078e341d 100644 --- a/src/interface.py +++ b/src/interface.py @@ -124,12 +124,8 @@ class DelugeGTK: import sys py_version = sys.version[:3] #check if we already sent the info - if os.path.exists(common.CONFIG_DIR + '/infosent'): - pass - #if we havent, let's do so - else: - file = common.INSTALL_PREFIX + '/lib/python' + py_version + '/site-packages/deluge/info.py' - os.spawnlp(os.P_NOWAIT, 'python', 'python', file, common.PROGRAM_VERSION) + file = common.INSTALL_PREFIX + '/lib/python' + py_version + '/site-packages/deluge/info.py' + os.spawnlp(os.P_NOWAIT, 'python', 'python', file, common.PROGRAM_VERSION) if self.config.get("new_releases"): new_release_check()