duplicity-tracker
[Top][All Lists]
Advanced

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

[Duplicity-tracker] [patch #6709] Report correct number of volumes when


From: Michael Terry
Subject: [Duplicity-tracker] [patch #6709] Report correct number of volumes when restoring
Date: Sat, 03 Jan 2009 04:00:54 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008121622 Ubuntu/8.10 (intrepid) Firefox/3.0.5

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/





reply via email to

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