From f135c575a1cfed49fed81a5e131c2ae91bc2a04f Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 22 Jun 2016 07:51:02 +0200 Subject: [PATCH] Update to 0.24.1 (RHBZ #1348750) Signed-off-by: Igor Gnatenko --- .gitignore | 1 + ...001-Remove-remote-calling-unit-tests.patch | 5 +++- ...PE-is-constant-in-module-tarfile-not.patch | 26 ------------------- 0002-repository-decode-linkname.patch | 26 ------------------- python-pygit2.spec | 13 +++++----- sources | 2 +- 6 files changed, 13 insertions(+), 60 deletions(-) rename 0003-Remove-remote-calling-unit-tests.patch => 0001-Remove-remote-calling-unit-tests.patch (97%) delete mode 100644 0001-repository-SYMTYPE-is-constant-in-module-tarfile-not.patch delete mode 100644 0002-repository-decode-linkname.patch diff --git a/.gitignore b/.gitignore index e11201d..2d63b33 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ /pygit2-0.23.1.tar.gz /pygit2-0.23.3.tar.gz /pygit2-0.24.0.tar.gz +/pygit2-0.24.1.tar.gz diff --git a/0003-Remove-remote-calling-unit-tests.patch b/0001-Remove-remote-calling-unit-tests.patch similarity index 97% rename from 0003-Remove-remote-calling-unit-tests.patch rename to 0001-Remove-remote-calling-unit-tests.patch index 0d6f463..131fee7 100644 --- a/0003-Remove-remote-calling-unit-tests.patch +++ b/0001-Remove-remote-calling-unit-tests.patch @@ -1,4 +1,4 @@ -From 4859d36a47f74e10d2d92283f4ba6f0b35f162cd Mon Sep 17 00:00:00 2001 +From f1f5d489da6c0a710563d517b11c116ea41d90ec Mon Sep 17 00:00:00 2001 From: Mathieu Bridon Date: Wed, 21 Jan 2015 09:33:46 +0100 Subject: [PATCH] Remove remote-calling unit tests @@ -59,3 +59,6 @@ index 5590ea2..a2f16ca 100644 def test_clone_with_checkout_branch(self): # create a test case which isolates the remote test_repo = clone_repository('./test/data/testrepo.git', +-- +2.9.0 + diff --git a/0001-repository-SYMTYPE-is-constant-in-module-tarfile-not.patch b/0001-repository-SYMTYPE-is-constant-in-module-tarfile-not.patch deleted file mode 100644 index 0c30297..0000000 --- a/0001-repository-SYMTYPE-is-constant-in-module-tarfile-not.patch +++ /dev/null @@ -1,26 +0,0 @@ -From a922ced80d635f2aef73bf7a647672b8df7a7914 Mon Sep 17 00:00:00 2001 -From: Igor Gnatenko -Date: Fri, 15 Apr 2016 14:07:33 +0200 -Subject: [PATCH] repository: SYMTYPE is constant in module tarfile, not in any - class - -Reference: https://github.com/libgit2/pygit2/issues/618 -Signed-off-by: Igor Gnatenko -(cherry picked from commit 270dad8cd39b0f1dbb34256b389eb1bb458779de) ---- - pygit2/repository.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/pygit2/repository.py b/pygit2/repository.py -index e9bbdc6..88cc888 100644 ---- a/pygit2/repository.py -+++ b/pygit2/repository.py -@@ -799,7 +799,7 @@ class Repository(_Repository): - info.mtime = timestamp - info.uname = info.gname = 'root' # just because git does this - if entry.mode == GIT_FILEMODE_LINK: -- info.type = archive.SYMTYPE -+ info.type = tarfile.SYMTYPE - info.linkname = content - info.mode = 0o777 # symlinks get placeholder - info.size = 0 diff --git a/0002-repository-decode-linkname.patch b/0002-repository-decode-linkname.patch deleted file mode 100644 index e889353..0000000 --- a/0002-repository-decode-linkname.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 7d296f33e67f53783856c045a7f21a9df75dd91e Mon Sep 17 00:00:00 2001 -From: Igor Gnatenko -Date: Fri, 15 Apr 2016 14:13:47 +0200 -Subject: [PATCH] repository: decode() linkname - -Reference: https://github.com/libgit2/pygit2/issues/620 -Signed-off-by: Igor Gnatenko -(cherry picked from commit fd9a39a91b11964b8b88fdb4caf51ffdc559a6fa) ---- - pygit2/repository.py | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/pygit2/repository.py b/pygit2/repository.py -index 88cc888..4cf1a80 100644 ---- a/pygit2/repository.py -+++ b/pygit2/repository.py -@@ -800,7 +800,8 @@ class Repository(_Repository): - info.uname = info.gname = 'root' # just because git does this - if entry.mode == GIT_FILEMODE_LINK: - info.type = tarfile.SYMTYPE -- info.linkname = content -+ info.type = archive.SYMTYPE -+ info.linkname = content.decode("utf-8") - info.mode = 0o777 # symlinks get placeholder - info.size = 0 - archive.addfile(info) diff --git a/python-pygit2.spec b/python-pygit2.spec index e213538..c7f1547 100644 --- a/python-pygit2.spec +++ b/python-pygit2.spec @@ -1,16 +1,14 @@ %global pkgname pygit2 Name: python-%{pkgname} -Version: 0.24.0 -Release: 3%{?dist} +Version: 0.24.1 +Release: 1%{?dist} Summary: Python bindings for libgit2 License: GPLv2 with linking exception URL: http://www.pygit2.org -Source0: http://pypi.python.org/packages/source/p/%{pkgname}/%{pkgname}-%{version}.tar.gz +Source0: https://github.com/libgit2/%{pkgname}/archive/v%{version}/%{pkgname}-%{version}.tar.gz -Patch0001: 0001-repository-SYMTYPE-is-constant-in-module-tarfile-not.patch -Patch0002: 0002-repository-decode-linkname.patch -Patch0003: 0003-Remove-remote-calling-unit-tests.patch +Patch0001: 0001-Remove-remote-calling-unit-tests.patch BuildRequires: libgit2-devel BuildRequires: openssl-devel @@ -99,6 +97,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %doc docs/_build/html/* %changelog +* Wed Jun 22 2016 Igor Gnatenko - 0.24.1-1 +- Update to 0.24.1 (RHBZ #1348750) + * Mon Apr 18 2016 Igor Gnatenko 0.24.0-3 - Remove remote-calling unit tests - repository: decode() linkname diff --git a/sources b/sources index bdb531a..194f132 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -05f62d21f054c1a1559a726c7fdaeff1 pygit2-0.24.0.tar.gz +d9915e3f8a7da65af3ea70f5bc02967d pygit2-0.24.1.tar.gz