rely on server to handle duplicate entires so we can get new info when user upgrades their pygtk version, etc

This commit is contained in:
Marcos Pinto 2007-08-07 05:06:20 +00:00
parent c331e3a667
commit 1897faf395
2 changed files with 2 additions and 11 deletions

View File

@ -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

View File

@ -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()