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:
parent
c331e3a667
commit
1897faf395
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue