Author: elias
Date: Tue Aug 21 21:06:25 2007
New Revision: 19705
URL: http://svn.gna.org/viewcvs/wesnoth?rev=19705&view=rev
Log:
fixed a bug for when no local info.cfg existed, and changed up-to-date message
Modified:
trunk/utils/campaigns_client.py
Modified: trunk/utils/campaigns_client.py
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/campaigns_client.py?rev=19705&r1=19704&r2=19705&view=diff
==============================================================================
--- trunk/utils/campaigns_client.py (original)
+++ trunk/utils/campaigns_client.py Tue Aug 21 21:06:25 2007
@@ -113,7 +113,7 @@
Get info for a locally installed campaign. If expects a direct path
to the info.cfg file.
"""
- if not os.path.exists(name): return None
+ if not os.path.exists(name): return None, None
p = wmlparser.Parser(None)
p.parse_file(name)
info = wmldata.DataSub("WML")
@@ -178,10 +178,10 @@
get(name, version, uploads, options.campaigns_dir)
else:
print "Not downloading", name,\
- "as the version already is:", local_version
+ "as the version already is", local_version
else:
print "Not downloading", name,\
- "because it is already at revision:", uploads
+ "because it is already up-to-date."
elif options.remove:
cs = CampaignClient(address)
data = cs.delete_campaign(options.remove, options.password)
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits