diff --git a/src/info.py b/src/info.py deleted file mode 100644 index 645b07edf..000000000 --- a/src/info.py +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -import urllib -import platform -import gtk -import os -import common - -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(os.path.join(common.CONFIG_DIR, 'infosent'), 'w') -f.write("") -f.close diff --git a/src/update.py b/src/update.py deleted file mode 100644 index ffcbae70f..000000000 --- a/src/update.py +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -import urllib -import sys - -new_release = urllib.urlopen("http://download.deluge-torrent.org/version").read().strip() -if new_release > sys.argv[1]: - import gtk - import pygtk - dialog = gtk.MessageDialog(parent = None, - flags = gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT, - buttons = gtk.BUTTONS_YES_NO, - message_format=_("There is a newer version of Deluge. Would you like to be taken to our download site?"), - type=gtk.MESSAGE_QUESTION) - dialog.set_title('New Release!') - import time - #give main client time to get up and running so we dont get placed in the - #background and hidden. also sleep this long for blocklist import - time.sleep(20) - result = dialog.run() - dialog.destroy() - if result == gtk.RESPONSE_YES: - import os - os.spawnlp(os.P_NOWAIT, 'python', 'python', '-c', "import webbrowser; webbrowser.open('http://download.deluge-torrent.org/')") - elif result == gtk.RESPONSE_NO: - pass