Hello community, here is the log from the commit of package python-pypdf for openSUSE:Factory checked in at 2013-01-14 22:25:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pypdf (Old) and /work/SRC/openSUSE:Factory/.python-pypdf.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pypdf", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/python-pypdf/python-pypdf.changes 2012-02-20 16:17:49.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-pypdf.new/python-pypdf.changes 2013-01-14 22:25:43.000000000 +0100 @@ -1,0 +2,11 @@ +Sat Jan 12 17:07:25 UTC 2013 - [email protected] + +- bumping version number to 1.13+20130112 to allow Requires: > 1.13 +- added pypdf_encryption_string_unicode_bug.patch + fixing https://bugs.launchpad.net/pypdf/+bug/242756 + The codebase at http://pybrary.net/pyPdf/ + has not accepted any of the 13 pull requests waiting at + https://github.com/mfenniak/pyPdf/pulls + The patch above is pull/29 of this set. + +------------------------------------------------------------------- New: ---- pypdf_encryption_string_unicode_bug.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pypdf.spec ++++++ --- /var/tmp/diff_new_pack.JKBzZQ/_old 2013-01-14 22:25:44.000000000 +0100 +++ /var/tmp/diff_new_pack.JKBzZQ/_new 2013-01-14 22:25:44.000000000 +0100 @@ -22,13 +22,15 @@ %define mod_name pypdf Name: python-%{mod_name} -Version: 1.13 +Version: 1.13+20130112 +%define tarversion 1.13 Release: 0 Url: http://pybrary.net/pyPdf/ Summary: PDF toolkit License: BSD-2-Clause Group: Development/Languages/Python -Source: pyPdf-%{version}.tar.gz +Source: pyPdf-%{tarversion}.tar.gz +Patch1: pypdf_encryption_string_unicode_bug.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel BuildRequires: python-setuptools @@ -55,7 +57,8 @@ It is therefore a useful tool for websites that manage or manipulate PDFs. %prep -%setup -q -n pyPdf-%{version} +%setup -q -n pyPdf-%{tarversion} +%patch1 -p1 %build export CFLAGS="%{optflags}" ++++++ pypdf_encryption_string_unicode_bug.patch ++++++ diff -r 26ab3506f24b pyPdf/pdf.py --- a/pyPdf/pdf.py Sun Jan 11 15:32:42 2009 -0700 +++ b/pyPdf/pdf.py Tue Jan 27 09:22:51 2009 +0100 @@ -1380,7 +1380,11 @@ m.update(p_entry) # 5. Pass the first element of the file's file identifier array to the MD5 # hash function. - m.update(id1_entry) + if isinstance(id1_entry, str): + m.update(id1_entry) + else: + m.update(id1_entry.original_bytes) + # 6. (Revision 3 or greater) If document metadata is not being encrypted, # pass 4 bytes with the value 0xFFFFFFFF to the MD5 hash function. if rev >= 3 and not metadata_encrypt: @@ -1480,7 +1484,10 @@ # of the ID entry in the document's trailer dictionary; see Table 3.13 on # page 73) to the hash function and finish the hash. (See implementation # note 25 in Appendix H.) - m.update(id1_entry) + if isinstance(id1_entry, str): + m.update(id1_entry) + else: + m.update(id1_entry.original_bytes) md5_hash = m.digest() # 4. Encrypt the 16-byte result of the hash, using an RC4 encryption # function with the encryption key from step 1. -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
