diff 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
line wrap: on
line diff
--- a/upreckon-vcs	Fri Feb 25 00:10:20 2011 +0000
+++ b/upreckon-vcs	Fri Feb 25 00:11:06 2011 +0000
@@ -45,18 +45,18 @@
 			if latest[2] > installed[2]:
 				update = 'bug-fixing'
 			elif latest[2] == installed[2]:
-				say('You are using the latest publicly available version of Upreckon.')
+				say('You are using the latest publicly available version of Upreckon (%s).' % latesttext)
 				sys.exit()
 	
 	if not update:
-		say('Your copy of Upreckon is newer than the publicly available version.')
+		say('Your copy of Upreckon is newer (%s) than the publicly available version (%s).' % (version, latesttext))
 		sys.exit()
 	
-	say('A ' + update + ' update to Upreckon is available. Downloading...')
+	say('A %s update to Upreckon is available (%s). Downloading...' % (update, latesttext))
 	sys.stdout.flush()
 	# FIXME: need to update all files!
 	urllib.urlretrieve('http://chortos.selfip.net/~astiob/test.py/test.py', sys.argv[0])
-	say('Downloaded and installed. Now you are using Upreckon ' + latesttext + '.')
+	say('Downloaded and installed. Now you are using Upreckon %s.' % latesttext)
 	sys.exit()
 
 import config, itertools, os, subprocess, sys, time