git » abk » commit 654b01a

More sync cases.

author
2005-03-02 05:25:15 UTC
committer
2005-03-02 05:25:15 UTC
parent 9c13bd8548db05fd30ae187a72404f41de3c82d7

More sync cases.
This are more sync cases to test; the main loop will go away eventually and
replaced by something a bit more friendly.

abk +6 -0

diff --git a/abk b/abk
index 96483a8..58a88fa 100644
--- a/abk
+++ b/abk
@@ -262,4 +262,10 @@ for f in srcidx.db.keys():
 		dst = os.path.join(dst_path, f)
 		print 'copy', f, dst
 		srcidx.db[f].copy_file(dst)
+	elif srcidx.db[f] != dstidx.db[f]:
+		dst = os.path.join(dst_path, f)
+		print 'chan', f, dst
+		if dstidx.db[f].type != 'd':
+			os.unlink(dst)
+		srcidx.db[f].copy_file(dst)