Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions contrib/packit-tmt/dnf-repo-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

set -exo pipefail

# Farm tag repo is set at higher priority, conflicting with podman-next
sed -i '/^priority/d' /etc/yum.repos.d/tag-repository.repo

# This should work even when podman-next isn't installed. It'll fetch the
# highest versions available across all repos.
dnf -y upgrade --allowerasing --exclude=podman*
6 changes: 3 additions & 3 deletions contrib/packit-tmt/packit-copr-rpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

set -exo pipefail

TOP_GIT_DIR=$(git rev-parse --show-toplevel)
GIT_TOPDIR=$(git rev-parse --show-toplevel)

. "$TOP_GIT_DIR"/contrib/packit-tmt/packit-rpm-git-commit.sh
. "$GIT_TOPDIR"/contrib/packit-tmt/packit-rpm-git-commit.sh

# Get Version from HEAD
VERSION=$(grep '^const RawVersion' version/rawversion/version.go | cut -d\" -f2)
Expand All @@ -18,7 +18,7 @@ VERSION=$(grep '^const RawVersion' version/rawversion/version.go | cut -d\" -f2)
RPM_VERSION=$(echo "$VERSION" | sed -e 's/-/~/')

# Generate source tarball from HEAD
git-archive-all -C "$TOP_GIT_DIR" --prefix="$PACKAGE-$VERSION/" "$TOP_GIT_DIR/rpm/$PACKAGE-$VERSION.tar.gz"
git-archive-all -C "$GIT_TOPDIR" --prefix="$PACKAGE-$VERSION/" "$GIT_TOPDIR/rpm/$PACKAGE-$VERSION.tar.gz"

# RPM Spec modifications

Expand Down
2 changes: 1 addition & 1 deletion plans/cockpit-podman.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ execute:
prepare:
when: initiator == packit
how: shell
script: bash $TMT_TREE/contrib/packit-tmt/podman-next-setup.sh
script: bash $TMT_TREE/contrib/packit-tmt/dnf-repo-setup.sh
order: 20

# not relevant for testing podman
Expand Down
2 changes: 1 addition & 1 deletion plans/system.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ prepare:
order: 10
- when: initiator == packit
how: shell
script: bash $TMT_TREE/contrib/packit-tmt/podman-next-setup.sh
script: bash $TMT_TREE/contrib/packit-tmt/dnf-repo-setup.sh
order: 20

adjust+:
Expand Down