Hello community, here is the log from the commit of package pagure for openSUSE:Factory checked in at 2019-04-09 20:19:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/pagure (Old) and /work/SRC/openSUSE:Factory/.pagure.new.3908 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "pagure" Tue Apr 9 20:19:26 2019 rev:8 rq:692603 version:5.5 Changes: -------- --- /work/SRC/openSUSE:Factory/pagure/pagure.changes 2019-04-01 12:38:20.453914009 +0200 +++ /work/SRC/openSUSE:Factory/.pagure.new.3908/pagure.changes 2019-04-09 20:19:28.289906673 +0200 @@ -1,0 +2,16 @@ +Tue Apr 9 12:52:31 UTC 2019 - Neal Gompa <ngompa13@gmail.com> + +- Update to 5.5 + + Add support for !owner to the API listing projects + + Make sure that TemporaryClone.push also pushes tags + + Various UI improvements + + Allow blocking an user on a project + + Replace calls to pygit2.clone_repository by calls to git clone directly + + Make fork more performant by using 'git push --mirror' + + Use the user's default email when rebasing +- Drop patch that is part of this release + + 0001-pagure-ev-python-3-compatibility.patch +- Backport fix for pull mirroring service + + 0001-Couple-of-fixes-for-the-mirroring-in-feature.patch + +------------------------------------------------------------------- Old: ---- 0001-pagure-ev-python-3-compatibility.patch pagure-5.4.tar.gz New: ---- 0001-Couple-of-fixes-for-the-mirroring-in-feature.patch pagure-5.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pagure.spec ++++++ --- /var/tmp/diff_new_pack.vCbkTi/_old 2019-04-09 20:19:29.669908554 +0200 +++ /var/tmp/diff_new_pack.vCbkTi/_new 2019-04-09 20:19:29.673908560 +0200 @@ -23,7 +23,7 @@ Name: pagure -Version: 5.4 +Version: 5.5 Release: 0 Summary: A git-centered forge Group: Development/Tools/Version Control @@ -41,8 +41,8 @@ Source10: pagure-README.SUSE # Backports from upstream -## Fix for pagure-ev issues in Python 3 -Patch0001: 0001-pagure-ev-python-3-compatibility.patch +## Fix pull mirror service functionality +Patch0001: 0001-Couple-of-fixes-for-the-mirroring-in-feature.patch # Not yet upstreamable patches ## Allow Pagure to use SQLAlchemy >= 1.3.0 ++++++ 0001-Couple-of-fixes-for-the-mirroring-in-feature.patch ++++++
From cea8e24f3eb1280c88230981ef624d0f0b9e638c Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon <pingou@pingoured.fr> Date: Mon, 8 Apr 2019 11:57:21 +0200 Subject: [PATCH] Couple of fixes for the mirroring-in feature
This commit does a couple of fixes in the code used for the mirroring-in feature. It ensures any exception thrown by pagure.lib.git.mirror_pull_project are caught and properly logged. Otherwise, the script dies in the middle of the processing. It also checks that there is a remote before doing anything and if there is no remote, it just bails. Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr> --- files/mirror_project_in.py | 5 ++++- pagure/lib/git.py | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/files/mirror_project_in.py b/files/mirror_project_in.py index cfca629b..ba04f2fc 100644 --- a/files/mirror_project_in.py +++ b/files/mirror_project_in.py @@ -34,7 +34,10 @@ def main(check=False, debug=False): for project in projects: if debug: print("Mirrorring %s" % project.fullname) - pagure.lib.git.mirror_pull_project(session, project, debug=debug) + try: + pagure.lib.git.mirror_pull_project(session, project, debug=debug) + except Exception as err: + print("ERROR: %s" % err) session.remove() if debug: diff --git a/pagure/lib/git.py b/pagure/lib/git.py index 31253c11..c0e6d023 100644 --- a/pagure/lib/git.py +++ b/pagure/lib/git.py @@ -2846,6 +2846,9 @@ def generate_archive(project, commit, tag, name, archive_fmt): def mirror_pull_project(session, project, debug=False): """ Mirror locally a project from a remote URL. """ remote = project.mirrored_from + if not remote: + _log.info("No remote found, ignoring") + return repopath = tempfile.mkdtemp(prefix="pagure-mirror_in-") lclrepopath = pagure.utils.get_repo_path(project) -- 2.20.1 ++++++ pagure-5.4.tar.gz -> pagure-5.5.tar.gz ++++++ /work/SRC/openSUSE:Factory/pagure/pagure-5.4.tar.gz /work/SRC/openSUSE:Factory/.pagure.new.3908/pagure-5.5.tar.gz differ: char 5, line 1