Mercurial > ~astiob > upreckon > hgweb
comparison upreckon-vcs @ 87:179bad0d29f4
--update now includes version numbers in all messages it prints
| author | Oleg Oshmyan <chortos@inbox.lv> |
|---|---|
| date | Fri, 25 Feb 2011 00:11:06 +0000 |
| parents | 741ae3391b61 |
| children | 1fb319ec33af |
comparison
equal
deleted
inserted
replaced
| 86:8cd7a732f2f3 | 87:179bad0d29f4 |
|---|---|
| 43 update = 'feature' | 43 update = 'feature' |
| 44 elif latest[1] == installed[1]: | 44 elif latest[1] == installed[1]: |
| 45 if latest[2] > installed[2]: | 45 if latest[2] > installed[2]: |
| 46 update = 'bug-fixing' | 46 update = 'bug-fixing' |
| 47 elif latest[2] == installed[2]: | 47 elif latest[2] == installed[2]: |
| 48 say('You are using the latest publicly available version of Upreckon.') | 48 say('You are using the latest publicly available version of Upreckon (%s).' % latesttext) |
| 49 sys.exit() | 49 sys.exit() |
| 50 | 50 |
| 51 if not update: | 51 if not update: |
| 52 say('Your copy of Upreckon is newer than the publicly available version.') | 52 say('Your copy of Upreckon is newer (%s) than the publicly available version (%s).' % (version, latesttext)) |
| 53 sys.exit() | 53 sys.exit() |
| 54 | 54 |
| 55 say('A ' + update + ' update to Upreckon is available. Downloading...') | 55 say('A %s update to Upreckon is available (%s). Downloading...' % (update, latesttext)) |
| 56 sys.stdout.flush() | 56 sys.stdout.flush() |
| 57 # FIXME: need to update all files! | 57 # FIXME: need to update all files! |
| 58 urllib.urlretrieve('http://chortos.selfip.net/~astiob/test.py/test.py', sys.argv[0]) | 58 urllib.urlretrieve('http://chortos.selfip.net/~astiob/test.py/test.py', sys.argv[0]) |
| 59 say('Downloaded and installed. Now you are using Upreckon ' + latesttext + '.') | 59 say('Downloaded and installed. Now you are using Upreckon %s.' % latesttext) |
| 60 sys.exit() | 60 sys.exit() |
| 61 | 61 |
| 62 import config, itertools, os, subprocess, sys, time | 62 import config, itertools, os, subprocess, sys, time |
| 63 | 63 |
| 64 if options.legacy: | 64 if options.legacy: |
