Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 310408 Details for
Bug 453069
Incremental backups are broken with python 2.3
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Patch to fix python 2.3 incompatibility
duplicity-0.4.11-sort.patch (text/plain), 705 bytes, created by
Nathan G. Grennan
on 2008-06-27 03:14:22 UTC
(
hide
)
Description:
Patch to fix python 2.3 incompatibility
Filename:
MIME Type:
Creator:
Nathan G. Grennan
Created:
2008-06-27 03:14:22 UTC
Size:
705 bytes
patch
obsolete
>--- duplicity-0.4.11/src/collections.py 2008-05-05 07:40:53.000000000 -0700 >+++ duplicity/duplicity/collections.py 2008-05-15 12:00:32.000000000 -0700 >@@ -789,6 +789,10 @@ > NOTE: n = 1 -> time of latest available chain (n = 0 is not > a valid input). Thus the second-to-last is obtained with n=2 > rather than n=1.""" >+ >+ def mycmp(x, y): >+ return cmp(x.get_first().time, y.get_first().time) >+ > assert self.values_set > assert n > 0 > >@@ -796,9 +800,9 @@ > return None > > sorted = self.all_backup_chains[:] >- sorted.sort(reverse = True, >- key = lambda chain: chain.get_first().time) >+ sorted.sort(mycmp) > >+ sorted.reverse() > return sorted[n - 1] > > def get_older_than(self, t):
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 453069
: 310408