public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/duplicity] epel10.3: Unicode patch.
@ 2026-10-09 15:56 Gwyn Ciesla
0 siblings, 0 replies; only message in thread
From: Gwyn Ciesla @ 2026-10-09 15:56 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/duplicity
Branch : epel10.3
Commit : 698cabd69ac88cdc1647b298747d9371620f10a7
Author : Gwyn Ciesla <limburgher@gmail.com>
Date : 2018-10-16T10:14:59-05:00
Stats : +62/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/duplicity/c/698cabd69ac88cdc1647b298747d9371620f10a7?branch=epel10.3
Log:
Unicode patch.
---
diff --git a/duplicity-unicode.patch b/duplicity-unicode.patch
new file mode 100644
index 0000000..e5a946e
--- /dev/null
+++ b/duplicity-unicode.patch
@@ -0,0 +1,55 @@
+diff -urpN duplicity-0.7.18/duplicity/util.py duplicity-0.7.18-p3/duplicity/util.py
+--- duplicity-0.7.18/duplicity/util.py 2017-11-23 07:07:34.000000000 -0600
++++ duplicity-0.7.18-p3/duplicity/util.py 2018-10-15 10:13:30.988730767 -0500
+@@ -76,7 +76,10 @@ def uexc(e):
+ # non-ascii will cause a UnicodeDecodeError when implicitly decoding to
+ # unicode. So we decode manually, using the filesystem encoding.
+ # 99.99% of the time, this will be a fine encoding to use.
+- return ufn(unicode(e).encode('utf-8'))
++ m = e.message
++ if isinstance(m, unicode):
++ m = m.encode('utf-8')
++ return ufn(m)
+
+
+ def maybe_ignore_errors(fn):
+diff -urpN duplicity-0.7.18/testing/unit/test_exc.py duplicity-0.7.18-p3/testing/unit/test_exc.py
+--- duplicity-0.7.18/testing/unit/test_exc.py 1969-12-31 18:00:00.000000000 -0600
++++ duplicity-0.7.18-p3/testing/unit/test_exc.py 2018-10-15 10:13:17.619683596 -0500
+@@ -0,0 +1,36 @@
++#
++# This file is part of duplicity.
++#
++# Duplicity is free software; you can redistribute it and/or modify it
++# under the terms of the GNU General Public License as published by the
++# Free Software Foundation; either version 2 of the License, or (at your
++# option) any later version.
++#
++# Duplicity is distributed in the hope that it will be useful, but
++# WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++# General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with duplicity; if not, write to the Free Software Foundation,
++# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
++
++import unittest
++
++import duplicity
++
++class TestExc(unittest.TestCase):
++
++ def test_uexc(self):
++
++ e = Exception('test')
++ msg = duplicity.util.uexc(e)
++ self.assertEqual(msg, 'test')
++
++ e = Exception(b'\xe3\x83\x86\xe3\x82\xb9\xe3\x83\x88')
++ msg = duplicity.util.uexc(e)
++ self.assertEqual(msg, u'\u30c6\u30b9\u30c8')
++
++
++if __name__ == '__main__':
++ unittest.main()
diff --git a/duplicity.spec b/duplicity.spec
index d279b0e..02d31e6 100644
--- a/duplicity.spec
+++ b/duplicity.spec
@@ -1,10 +1,11 @@
Summary: Encrypted bandwidth-efficient backup using rsync algorithm
Name: duplicity
Version: 0.7.18.1
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv2+
URL: http://www.nongnu.org/duplicity/
Source: http://savannah.nongnu.org/download/%{name}/%{name}-%{version}.tar.gz
+Patch0: duplicity-unicode.patch
%if 0%{?fedora} >= 28
Requires: python2-gnupginterface >= 0.3.2
Requires: python2-lockfile
@@ -37,6 +38,8 @@ but not hard links.
%prep
%setup -q
+%patch0 -p1
+
%build
%{__python2} setup.py build
@@ -71,6 +74,9 @@ rm -rf %{buildroot}/usr/share/doc/duplicity-%{version}/tarfile-LICENSE
%{_sysconfdir}/%{name}/cacert.pem
%changelog
+* Tue Oct 16 2018 Gwyn Ciesla <limburgher@gmail.com> - 0.7.18.1-2
+- Patch for unicode issue.
+
* Mon Aug 27 2018 Gwyn Ciesla <limburgher@gmail.com> - 0.7.18.1-1
- Patch for crash.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-09 15:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-09 15:56 [rpms/duplicity] epel10.3: Unicode patch Gwyn Ciesla
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox