SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Re: New feature: --verify-full
Author Message
Post Re: New feature: --verify-full 
On Fri, Feb 12, 2010 at 04:09:49PM -0500, Daniel Miller wrote:
Here's the patch for 1.2.8


This is really cool. Thanks.

--
Matthew Miller mattdm < at > mattdm.org <http://mattdm.org/>


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post Re: New feature: --verify-full 
On Fri, Feb 12, 2010 at 04:09:49PM -0500, Daniel Miller wrote:
Here's the patch for 1.2.8

Annnd, here's the traceback:

Traceback (most recent call last):
File "/usr/bin/rdiff-backup", line 20, in ?
import rdiff_backup.Main
File "/usr/lib64/python2.4/site-packages/rdiff_backup/Main.py", line 25, in ?
import Globals, Time, SetConnections, selection, robust, rpath, \
File "/usr/lib64/python2.4/site-packages/rdiff_backup/SetConnections.py", line 30, in ?
import Globals, connection, rpath
File "/usr/lib64/python2.4/site-packages/rdiff_backup/connection.py", line 539, in ?
import Globals, Time, Rdiff, Hardlink, FilenameMapping, C, Security, \
File "/usr/lib64/python2.4/site-packages/rdiff_backup/Hardlink.py", line 34, in ?
import Globals, Time, log, robust, errno
File "/usr/lib64/python2.4/site-packages/rdiff_backup/robust.py", line 23, in ?
import librsync, C, static, rpath, Globals, log, statistics, connection
File "/usr/lib64/python2.4/site-packages/rdiff_backup/statistics.py", line 356, in ?
from integrity import BufferedDataWriter
File "/usr/lib64/python2.4/site-packages/rdiff_backup/integrity.py", line 198
yield path, indexpath_prefix + filepath, sig
SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause

--
Matthew Miller mattdm < at > mattdm.org <http://mattdm.org/>


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post Re: New feature: --verify-full 
On Feb 12, 2010, at 4:31 PM, Matthew Miller wrote:
On Fri, Feb 12, 2010 at 04:09:49PM -0500, Daniel Miller wrote:
Here's the patch for 1.2.8

Annnd, here's the traceback:

Traceback (most recent call last):
<snip>
SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause


Uh, sorry... I developed this on Python 2.6. I tried to use the old conventions but you know how it goes...

Updated patch attached. The other line I'm not sure about is this one in integrity.py:

incs.sort(key=lambda rp:-rp.getinctime())

Can't remember when the sort(key=...) was implemented. Give it a try.


~ Daniel






_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

View user's profile Send private message
Post Re: New feature: --verify-full 
Em 12/2/2010 19:40, Daniel Miller escreveu:
...
incs.sort(key=lambda rp:-rp.getinctime())

Can't remember when the sort(key=...) was implemented. Give it a try.


The "key" argument for list sorting was added on Python 2.4.

---
Armando M. Baratti

LARC
/Pesquisa de Marketing Ltda
Alameda dos Maracatins, 161 - Indianópolis
CEP 04089-010 - São Paulo - SP
Tel.: (11) 5051-3133 - Fax: (11) 5052-5955
http://www.larc.com.br/




_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB