public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Robert Scheck <robert@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/duplicity] epel10.3: Added patch for incremental backups using python 2.3 (#453069)
Date: Fri, 09 Oct 2026 15:55:46 GMT [thread overview]
Message-ID: <179156134656.1.973717466707546188.rpms-duplicity-b256459f138f@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/duplicity
Branch : epel10.3
Commit : b256459f138ff8b0dc9cd1e96b5d977487bdb4bb
Author : Robert Scheck <robert@fedoraproject.org>
Date : 2008-06-28T09:08:50+00:00
Stats : +34/-2 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/duplicity/c/b256459f138ff8b0dc9cd1e96b5d977487bdb4bb?branch=epel10.3
Log:
Added patch for incremental backups using python 2.3 (#453069)
---
diff --git a/duplicity-0.4.11-python23.patch b/duplicity-0.4.11-python23.patch
index 178de05..b31cdf4 100644
--- a/duplicity-0.4.11-python23.patch
+++ b/duplicity-0.4.11-python23.patch
@@ -1,6 +1,10 @@
Patch by Robert Scheck <robert@fedoraproject.org> to get duplicity >= 0.4.11 building with
older Python 2.3 again. This release done by Kenneth Loafman <kenneth@loafman.com> luckily
-got Python 2.3 support back.
+got Python 2.3 support back. Second part of the patch replaces the use of functionality of
+Python >= 2.4 functions. For further information, see:
+
+ - http://lists.gnu.org/archive/html/duplicity-talk/2008-05/msg00036.html
+ - https://bugzilla.redhat.com/show_bug.cgi?id=453069
--- duplicity-0.4.11/setup.py 2008-05-05 16:40:53.000000000 +0200
+++ duplicity-0.4.11/setup.py.python23 2008-05-05 21:45:35.000000000 +0200
@@ -15,3 +19,28 @@ got Python 2.3 support back.
sys.exit(1)
try:
+--- duplicity-0.4.11/src/collections.py 2008-05-05 16:40:53.000000000 +0200
++++ duplicity-0.4.11/src/collections.py.python23 2008-06-28 10:53:35.000000000 +0200
+@@ -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):
diff --git a/duplicity.spec b/duplicity.spec
index 4bc5eb6..73dde2d 100644
--- a/duplicity.spec
+++ b/duplicity.spec
@@ -3,7 +3,7 @@
Summary: Encrypted bandwidth-efficient backup using rsync algorithm
Name: duplicity
Version: 0.4.11
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv3+
Group: Applications/Archiving
URL: http://www.nongnu.org/duplicity/
@@ -51,6 +51,9 @@ rm -rf $RPM_BUILD_ROOT
%{python_sitearch}/%{name}*
%changelog
+* Sat Jun 28 2008 Robert Scheck <robert@fedoraproject.org> 0.4.11-2
+- Added patch for incremental backups using python 2.3 (#453069)
+
* Mon May 05 2008 Robert Scheck <robert@fedoraproject.org> 0.4.11-1
- Upgrade to 0.4.11 (#440346)
reply other threads:[~2026-10-09 15:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179156134656.1.973717466707546188.rpms-duplicity-b256459f138f@fedoraproject.org \
--to=robert@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox