Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package pagure for openSUSE:Factory checked 
in at 2024-08-22 18:13:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/pagure (Old)
 and      /work/SRC/openSUSE:Factory/.pagure.new.2698 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "pagure"

Thu Aug 22 18:13:20 2024 rev:27 rq:1195176 version:5.14.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/pagure/pagure.changes    2024-06-03 
17:43:29.539098052 +0200
+++ /work/SRC/openSUSE:Factory/.pagure.new.2698/pagure.changes  2024-08-22 
18:13:37.694552266 +0200
@@ -1,0 +2,5 @@
+Sat Aug 17 11:28:25 UTC 2024 - Georg Pfuetzenreuter 
<mail+...@georg-pfuetzenreuter.net>
+
+- Add pagure-pygit2.patch to repair service startup on Leap 15.6 and Tumbleweed
+
+-------------------------------------------------------------------

New:
----
  pagure-pygit2.patch

BETA DEBUG BEGIN:
  New:
- Add pagure-pygit2.patch to repair service startup on Leap 15.6 and Tumbleweed
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ pagure.spec ++++++
--- /var/tmp/diff_new_pack.4OEL51/_old  2024-08-22 18:13:38.530587038 +0200
+++ /var/tmp/diff_new_pack.4OEL51/_new  2024-08-22 18:13:38.534587205 +0200
@@ -47,11 +47,11 @@
 Patch1000:      pagure-5.0-default-example-cfg.patch
 # PATCH-FIX-UPSTREAM 5486.patch https://pagure.io/pagure/pull-request/5486 
domi...@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
@@ -234,7 +234,7 @@
 Provides:       %{name}-theme-default
 Requires:       %{name}-theme-chameleon = %{version}-%{release}
 Enhances:       (%{name} and branding-openSUSE)
-Removepathpostfixes:.openSUSE
+Removepathpostfixes: .openSUSE
 
 %description        theme-default-openSUSE
 This package sets the default web interface assets used for

++++++ pagure-pygit2.patch ++++++
commit 8a1a7ba9f789ba446bab63783f7b963246861cb8
Author: Dominik Wombacher <domi...@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

Reply via email to