URL:
<http://savannah.nongnu.org/patch/?6709>
Summary: Report correct number of volumes when restoring
Project: duplicity
Submitted by: mikix
Submitted on: Fri 02 Jan 2009 11:00:50 PM EST
Category: None
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
I wrote a patch to add progress reporting to restores a while back. I didn't
fully understand chains and sets it seems. My previous patch only considered
each set in turn, so would do the following for a multi-set chain:
1 of 2
2 of 2
1 of 1
1 of 3
etc.
Here's a patch that uses the correct total number of volumes for all sets
involved in the restore, not just the first.
I had to use a little python closure trick of using an array of 1 int to
modify, rather than just a straight up int, because python doesn't like it
when you assign to a name in a containing scope within a sub function. So
that's a bit ugly, but I believe it is a relatively common trick.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fri 02 Jan 2009 11:00:50 PM EST Name: numvols.diff Size: 2kB By:
mikix
<http://savannah.nongnu.org/patch/download.php?file_id=17200>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?6709>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
_______________________________________________
Duplicity-tracker mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/duplicity-tracker