[Zodb-checkins] CVS: ZODB3/Tools - zeopack.py:1.6.2.1

Jeremy Hylton jeremy@zope.com
Wed, 13 Nov 2002 15:05:51 -0500


Update of /cvs-repository/ZODB3/Tools
In directory cvs.zope.org:/tmp/cvs-serv30509

Modified Files:
      Tag: ZODB3-3_1-branch
	zeopack.py 
Log Message:
Make zeopack.py work for ZEO2.


=== ZODB3/Tools/zeopack.py 1.6 => 1.6.2.1 ===
--- ZODB3/Tools/zeopack.py:1.6	Wed Sep 25 18:36:48 2002
+++ ZODB3/Tools/zeopack.py	Wed Nov 13 15:05:50 2002
@@ -47,7 +47,8 @@
     raise RuntimeError, "Unable to connect to ZEO server"
 
 def pack1(addr, storage, days, wait):
-    cs = ClientStorage(addr, storage=storage, wait_for_server_on_startup=wait)
+    cs = ClientStorage(addr, storage=storage,
+                       wait_for_server_on_startup=wait)
     if wait:
         # _startup() is an artifact of the way ZEO 1.0 works.  The
         # ClientStorage doesn't get fully initialized until registerDB()
@@ -60,7 +61,7 @@
     cs.pack(wait=1, days=days)
     cs.close()
 
-def pack2(addr, storage, days, wait):
+def pack2(addr, storage, days):
     cs = ClientStorage(addr, storage=storage, wait=1)
     cs.pack(wait=1, days=days)
     cs.close()
@@ -111,7 +112,7 @@
     if zeoversion == 1:
         pack1(addr, storage, days, wait)
     else:
-        pack(addr, storage, days)
+        pack2(addr, storage, days)
 
 if __name__ == "__main__":
     try: