mail[Wesnoth-commits] r20040 - /trunk/utils/campaigns_client.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by elias on September 01, 2007 - 19:18:
Author: elias
Date: Sat Sep  1 19:18:25 2007
New Revision: 20040

URL: http://svn.gna.org/viewcvs/wesnoth?rev=20040&view=rev
Log:
Made campaign_client.py download files again even if the "version" field 
didn't change.

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=20040&r1=20039&r2=20040&view=diff
==============================================================================
--- trunk/utils/campaigns_client.py (original)
+++ trunk/utils/campaigns_client.py Sat Sep  1 19:18:25 2007
@@ -174,7 +174,8 @@
             info = os.path.join(options.campaigns_dir, name, "info.cfg")
             local_uploads, local_version = get_info(info)
             if uploads != local_uploads:
-                if version != local_version:
+                # The uploads < local_uploads likely means a server reset
+                if version != local_version or uploads < local_uploads:
                     get(name, version, uploads, options.campaigns_dir)
                 else:
                     print "Not downloading", name,\
@@ -246,6 +247,8 @@
                         sys.stdout.write(" # " + dirname + " version is " +
                             sversion + ", but you have revision %d not %d." %
                             (lrev, srev))
+                        if srev < lrev: # server reset?
+                            if options.update: get(dirname, sversion, srev, 
cdir)
                     else:
                         sys.stdout.write(" * " + dirname + " - you have " +
                             "revision " + lrev + " but revision " + srev +




Related Messages


Powered by MHonArc, Updated Sat Sep 01 19:40:12 2007