summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Martins <rafaelmartins@gentoo.org>2016-11-07 00:06:24 +0100
committerRafael Martins <rafaelmartins@gentoo.org>2016-11-07 00:06:24 +0100
commit930998b2fdfce771b37de4e86ba799f09e9eaceb (patch)
tree95ded01d691eac6ce489777f2677eaa83a310806 /www-apps/blohg/files
parentapp-portage/g-octave: apply patches using PATCHES variable (diff)
downloadgentoo-930998b2fdfce771b37de4e86ba799f09e9eaceb.tar.gz
gentoo-930998b2fdfce771b37de4e86ba799f09e9eaceb.tar.bz2
gentoo-930998b2fdfce771b37de4e86ba799f09e9eaceb.zip
www-apps/blohg: update libgit2 dependency
Package-Manager: portage-2.2.28
Diffstat (limited to 'www-apps/blohg/files')
-rw-r--r--www-apps/blohg/files/use-recent-libgit2.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/www-apps/blohg/files/use-recent-libgit2.patch b/www-apps/blohg/files/use-recent-libgit2.patch
new file mode 100644
index 000000000000..decd01b78fb5
--- /dev/null
+++ b/www-apps/blohg/files/use-recent-libgit2.patch
@@ -0,0 +1,17 @@
+diff --git a/blohg/vcs_backends/git/filectx.py b/blohg/vcs_backends/git/filectx.py
+index 84f7aa3..5e20762 100644
+--- a/blohg/vcs_backends/git/filectx.py
++++ b/blohg/vcs_backends/git/filectx.py
+@@ -73,7 +73,11 @@ def _last_changeset(self):
+ GIT_SORT_TIME):
+ diff = self._repo.diff(head, commit)
+ for patch in diff:
+- if patch.new_file_path == self._path:
++ try:
++ new_file_path = patch.delta.new_file.path
++ except AttributeError:
++ new_file_path = patch.new_file_path
++ if new_file_path == self._path:
+ return head
+ head = commit
+