This is an automated email from the git hooks/post-receive script.
praiskup pushed a commit to branch master
in repository copr/copr.
The following commit(s) were added to refs/heads/master by this push:
new 559db8c frontend: fix broken branch-fedora command
559db8c is described below
commit 559db8c169e8dfd8a3888d1b277860f2d80c99a0
Author: Tomas Hrnciar <thrnciar(a)redhat.com>
AuthorDate: Tue Nov 12 09:30:27 2019 +0100
frontend: fix broken branch-fedora command
Merges: #1105
Fixes: #1101
---
frontend/coprs_frontend/commands/branch_fedora.py | 8 ++++----
frontend/coprs_frontend/commands/rawhide_to_release.py | 3 +++
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/frontend/coprs_frontend/commands/branch_fedora.py
b/frontend/coprs_frontend/commands/branch_fedora.py
index 3d11b0f..31da536 100644
--- a/frontend/coprs_frontend/commands/branch_fedora.py
+++ b/frontend/coprs_frontend/commands/branch_fedora.py
@@ -1,8 +1,8 @@
import click
from coprs.logic import coprs_logic
-from commands.create_chroot import create_chroot
-from commands.rawhide_to_release import rawhide_to_release
+from commands.create_chroot import create_chroot_function
+from commands.rawhide_to_release import rawhide_to_release_function
@click.command()
@@ -30,7 +30,7 @@ def branch_fedora(fedora_version, branch=None):
for rch in rawhide_chroots
}
- create_chroot(chroot_pairs.keys(), branch, True)
+ create_chroot_function(chroot_pairs.keys(), branch, True)
for new_chroot, rawhide_chroot in chroot_pairs.items():
- rawhide_to_release(rawhide_chroot, new_chroot)
+ rawhide_to_release_function(rawhide_chroot, new_chroot)
diff --git a/frontend/coprs_frontend/commands/rawhide_to_release.py
b/frontend/coprs_frontend/commands/rawhide_to_release.py
index a5ca187..87e2bb5 100644
--- a/frontend/coprs_frontend/commands/rawhide_to_release.py
+++ b/frontend/coprs_frontend/commands/rawhide_to_release.py
@@ -22,6 +22,9 @@ def rawhide_to_release(rawhide_chroot, dest_chroot):
"""
Branching
"""
+ return rawhide_to_release_function(rawhide_chroot, dest_chroot)
+
+def rawhide_to_release_function(rawhide_chroot, dest_chroot):
mock_chroot = coprs_logic.MockChrootsLogic.get_from_name(dest_chroot).first()
if not mock_chroot:
print("Given chroot does not exist. Please run:")
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
Show replies by date