tarina

git clone https://git.tarina.org/tarina
Log | Files | Refs | README | LICENSE

commit d9375c7abddc3167c3c297042dbe2f9146adc2d5
parent ddd013739d0bff8cce4b53812523f495c934a68a
Author: rbckman <robinbackman@gmail.com>
Date:   Fri, 10 Mar 2017 15:21:36 +0000

update url fix

Diffstat:
Mtarina.py | 11++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/tarina.py b/tarina.py @@ -357,14 +357,15 @@ def update(tarinaversion, tarinavername): time.sleep(2) writemessage('Checking for updates...') try: - os.system('wget http://tarina.org/src/tarina/VERSION -P /tmp/VERSION') - f = open('/tmp/VERSION') - versionnumber = f.readline() - versionname = f.readline() - os.system('rm /tmp/VERSION*') + os.system('wget http://tarina.org/src/VERSION -P /tmp/VERSION') except: writemessage('Sorry buddy, no internet connection') + time.sleep(2) return tarinaversion, tarinavername + f = open('/tmp/VERSION') + versionnumber = f.readline() + versionname = f.readline() + os.system('rm /tmp/VERSION*') if float(tarinaversion) < float(versionnumber): writemessage('New version found ' + versionnumber[:-1] + ' ' + versionname[:-1]) time.sleep(4)