[arch-commits] Commit in python-pygit2/trunk (2 files)

Felix Yan fyan at archlinux.org
Sun Sep 20 09:46:43 UTC 2015


    Date: Sunday, September 20, 2015 @ 11:46:43
  Author: fyan
Revision: 141216

upgpkg: python-pygit2 0.23.0-2

rebuild for python 3.5

Modified:
  python-pygit2/trunk/PKGBUILD
Deleted:
  python-pygit2/trunk/0001-Fix-data-type-of-options-in-init_repository.patch

--------------------------------------------------------+
 0001-Fix-data-type-of-options-in-init_repository.patch |   52 ---------------
 PKGBUILD                                               |    2 
 2 files changed, 1 insertion(+), 53 deletions(-)

Deleted: 0001-Fix-data-type-of-options-in-init_repository.patch
===================================================================
--- 0001-Fix-data-type-of-options-in-init_repository.patch	2015-09-20 09:44:36 UTC (rev 141215)
+++ 0001-Fix-data-type-of-options-in-init_repository.patch	2015-09-20 09:46:43 UTC (rev 141216)
@@ -1,52 +0,0 @@
-From 0437eb7b8b184da5b5700b5e0cd96e1f442d331e Mon Sep 17 00:00:00 2001
-From: Lukas Fleischer <info at cryptocrack.de>
-Date: Sat, 10 Jan 2015 20:38:39 +0100
-Subject: [PATCH] Fix data type of options in init_repository()
-
-Initializers for the char * fields of the git_repository_init_options
-structure must be cdata pointers.
-
-Signed-off-by: Lukas Fleischer <info at cryptocrack.de>
----
- pygit2/__init__.py | 25 ++++++++++++++++++++-----
- 1 file changed, 20 insertions(+), 5 deletions(-)
-
-diff --git a/pygit2/__init__.py b/pygit2/__init__.py
-index 2674063..995fe6c 100644
---- a/pygit2/__init__.py
-+++ b/pygit2/__init__.py
-@@ -86,11 +86,26 @@ def init_repository(path, bare=False,
-     C.git_repository_init_init_options(options, C.GIT_REPOSITORY_INIT_OPTIONS_VERSION)
-     options.flags = flags
-     options.mode = mode
--    options.workdir_path = to_bytes(workdir_path)
--    options.description = to_bytes(description)
--    options.template_path = to_bytes(template_path)
--    options.initial_head = to_bytes(initial_head)
--    options.origin_url = to_bytes(origin_url)
-+
-+    if workdir_path:
-+        workdir_path_ref = ffi.new('char []', to_bytes(workdir_path))
-+        options.workdir_path = workdir_path_ref
-+
-+    if description:
-+        description_ref = ffi.new('char []', to_bytes(description))
-+        options.description = description_ref
-+
-+    if template_path:
-+        template_path_ref = ffi.new('char []', to_bytes(template_path))
-+        options.template_path = template_path_ref
-+
-+    if initial_head:
-+        initial_head_ref = ffi.new('char []', to_bytes(initial_head))
-+        options.initial_head = initial_head_ref
-+
-+    if origin_url:
-+        origin_url_ref = ffi.new('char []', to_bytes(origin_url))
-+        options.origin_url = origin_url_ref
- 
-     # Call
-     crepository = ffi.new('git_repository **')
--- 
-2.2.1
-

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-09-20 09:44:36 UTC (rev 141215)
+++ PKGBUILD	2015-09-20 09:46:43 UTC (rev 141216)
@@ -4,7 +4,7 @@
 pkgbase=python-pygit2
 pkgname=(python-pygit2 python2-pygit2)
 pkgver=0.23.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Python bindings for libgit2'
 url="https://github.com/libgit2/pygit2"
 depends=(libgit2)



More information about the arch-commits mailing list