rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rdiff-backup-users] Maximum files in a directory?


From: Ben Escoto
Subject: Re: [rdiff-backup-users] Maximum files in a directory?
Date: Mon, 23 Jun 2003 17:42:10 -0700

Hi, try this patch instead.  Looking at it again I really think the
problem is that the file changed types (probably was deleted) while
the directory was being processed.  Or at least that is currently a
bug, even if it didn't cause your particular problem.  Attached patch
should fix it.

--- /usr/lib/python2.2/site-packages/rdiff_backup/backup.py     2003-06-20 
19:22:22.000000000 -0700
+++ backup.py   2003-06-23 17:33:40.000000000 -0700
@@ -180,8 +180,9 @@
                        dest_sig = dest_rorp.getRORPath()
                        if dest_rorp.isreg():
                                dest_rp = dest_base_rpath.new_index(index)
-                               assert dest_rp.isreg()
-                               dest_sig.setfile(Rdiff.get_signature(dest_rp))
+                               if dest_rp.isreg(): # otherwise file has 
changed type from reg
+                                       
dest_sig.setfile(Rdiff.get_signature(dest_rp))
+                               else: dest_sig = dest_rp.getRORPath()
                else: dest_sig = rpath.RORPath(index)
                return dest_sig


-- 
Ben Escoto

Attachment: pgpg7DvfSehAK.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]