Skip to content

Commit

Permalink
dist-git: allow importing pre-generated srpm in rpkg
Browse files Browse the repository at this point in the history
Related: #2317

pyrpkg don't allow using pre-generated SRPM by default.
They created for this `allow_pre_generated_srpm` for us in
1.66-6 version of rpkg.
  • Loading branch information
nikromen committed Jul 4, 2023
1 parent ee7837e commit eedfa30
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist-git/copr-dist-git.spec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ BuildRequires: systemd
BuildRequires: python3-devel
BuildRequires: python3-munch
BuildRequires: python3-requests
BuildRequires: python3-rpkg
BuildRequires: python3-rpkg >= 1.66-6
BuildRequires: python3-pytest
BuildRequires: python3-copr-common >= %copr_common_version
BuildRequires: python3-oslo-concurrency
Expand All @@ -34,7 +34,7 @@ Requires: /usr/bin/crudini
Requires: dist-git
Requires: python3-copr-common >= %copr_common_version
Requires: python3-requests
Requires: python3-rpkg >= 1.63-5
Requires: python3-rpkg >= 1.66-6
Requires: python3-munch
Requires: python3-oslo-concurrency
Requires: python3-setproctitle
Expand Down
3 changes: 2 additions & 1 deletion dist-git/copr_dist_git/package_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ def _load_commands(opts, repo_name, repo_dir):
anongiturl="",
branchre="",
kojiprofile="",
build_client="")
build_client="",
allow_pre_generated_srpm=True)

# rpkg gets module_name as a basename of git url
# we use module_name as "username/projectname/package_name"
Expand Down
2 changes: 0 additions & 2 deletions dist-git/tests/test_crazy_merging.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import shutil
import time
import os
import logging

from munch import Munch
from subprocess import check_output
Expand Down Expand Up @@ -230,7 +229,6 @@ def test_diverge_middle_branches(self, initial_commit_everywhere, mc_setup_git_r
assert v3_hash_a != v1_hash
assert v3_hash_b != v1_hash

@pytest.mark.skip(reason="Remove the skip once python-rpkg resolves issue #677")
def test_no_op_1(self, initial_commit_everywhere, mc_setup_git_repo):
branches, opts, v1_hash = initial_commit_everywhere
origin, all_branches, middle_branches, border_branches = branches
Expand Down

0 comments on commit eedfa30

Please sign in to comment.