Compare commits
No commits in common. "factory" and "factory" have entirely different histories.
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:731752887df2aad8d4a8b9dbe4a4ac55580ae9d0463b207e9f01c7b69dfbfc52
|
||||
size 21729428
|
39
pagure-pygit2.patch
Normal file
39
pagure-pygit2.patch
Normal file
@ -0,0 +1,39 @@
|
||||
commit 8a1a7ba9f789ba446bab63783f7b963246861cb8
|
||||
Author: Dominik Wombacher <dominik@wombacher.cc>
|
||||
Date: Tue Apr 16 18:17:03 2024 +0000
|
||||
|
||||
tests: Fix issue 'No module named pygit2.remote'
|
||||
diff '--color=auto' -ur a/pagure/lib/git.py b/pagure/lib/git.py
|
||||
--- a/pagure/lib/git.py 2024-05-24 16:43:47.000000000 +0200
|
||||
+++ b/pagure/lib/git.py 2024-08-17 13:39:06.096428774 +0200
|
||||
@@ -33,8 +33,10 @@
|
||||
|
||||
from sqlalchemy.exc import SQLAlchemyError
|
||||
|
||||
-# from sqlalchemy.orm.session import Session
|
||||
-from pygit2.remote import RemoteCollection
|
||||
+try:
|
||||
+ from pygit2.remote import RemoteCollection
|
||||
+except ImportError:
|
||||
+ from pygit2.remotes import RemoteCollection
|
||||
|
||||
import pagure.utils
|
||||
import pagure.exceptions
|
||||
diff '--color=auto' -ur a/tests/test_pagure_lib_git.py b/tests/test_pagure_lib_git.py
|
||||
--- a/tests/test_pagure_lib_git.py 2024-05-24 16:43:47.000000000 +0200
|
||||
+++ b/tests/test_pagure_lib_git.py 2024-08-17 13:35:21.848131790 +0200
|
||||
@@ -3645,8 +3645,12 @@
|
||||
|
||||
# make sure the function works fine even if there's a leftover
|
||||
# ref from previous failed run of the function
|
||||
- with patch("pygit2.remote.RemoteCollection.delete"):
|
||||
- pagure.lib.git.update_pull_ref(fake_pr, fork)
|
||||
+ try:
|
||||
+ with patch("pygit2.remote.RemoteCollection.delete"):
|
||||
+ pagure.lib.git.update_pull_ref(fake_pr, fork)
|
||||
+ except ImportError:
|
||||
+ with patch("pygit2.remotes.RemoteCollection.delete"):
|
||||
+ pagure.lib.git.update_pull_ref(fake_pr, fork)
|
||||
self.assertIsNotNone(fork.remotes["pingou_1234567"])
|
||||
tests.add_content_git_repo(projects[1], append="foobarbaz")
|
||||
newesthex = fork.references["refs/heads/master"].peel().hex
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Aug 17 11:28:25 UTC 2024 - Georg Pfuetzenreuter <mail+rpm@georg-pfuetzenreuter.net>
|
||||
|
||||
- Add pagure-pygit2.patch to repair service startup on Leap 15.6 and Tumbleweed
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 2 09:16:20 UTC 2024 - Dominik Wombacher <dominik@wombacher.cc>
|
||||
|
||||
|
@ -47,11 +47,11 @@ Source10: pagure-README.SUSE
|
||||
Patch1000: pagure-5.0-default-example-cfg.patch
|
||||
# PATCH-FIX-UPSTREAM 5486.patch https://pagure.io/pagure/pull-request/5486 dominik@wombacher.cc -- Use '==' instead of 'is' in template if condition because to work with older Jinja2 versions. Edge case, avoid 'KeyError' after pagure update if a cached session is used.
|
||||
Patch1001: 5486.patch
|
||||
|
||||
# PATCH-FIX-UPSTREAM pagure-pygit2.patch -- PyGit2 renamed its files: https://github.com/libgit2/pygit2/commit/a8b2421bea55029296cc79ac7c1518b9885d8a6f
|
||||
Patch1002: pagure-pygit2.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
|
||||
BuildRequires: apache2
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: nginx
|
||||
|
Loading…
Reference in New Issue
Block a user