author |
<albertogli@telpin.com.ar> 2005-03-02 05:25:15 UTC |
committer |
<albertogli@telpin.com.ar> 2005-03-02 05:25:15 UTC |
parent | 9c13bd8548db05fd30ae187a72404f41de3c82d7 |
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)