Use the latest c9s BaseOS repodata snapshot, specifically so that it contains multiple versions of the same packages. This will allow to test the `osbuild-depsolve-dnf` 'search' command. The previous metadata contained only single version of each package. Signed-off-by: Tomáš Hozza <thozza@redhat.com> |
||
|---|---|---|
| .. | ||
| baseos/repodata | ||
| custom/repodata | ||
| README.md | ||
Test repositories metadata
This directory is used for osbuild-depsolve-dnf unit tests.
Each subdirectory contains repository metadata that is served by a server during testing for osbuild-depsolve-dnf to query.
baseos: CS9 BaseOS repository metadata.custom: a custom repository containing a single (empty) package, created with:
rpmdir=$(mktemp -d)
cat <<EOF > "${rpmdir}/pkg-with-no-deps.spec"
#----------- spec file starts ---------------
Name: pkg-with-no-deps
Version: 1.0.0
Release: 0
BuildArch: noarch
Vendor: noone
Summary: Provides %{name}
License: BSD
Provides: pkg-with-no-deps
%description
%{summary}
%files
EOF
rpmbuild --quiet --define "_topdir ${rpmdir}" -bb "${rpmdir}/pkg-with-no-deps.spec"
createrepo "${rpmdir}/RPMS/noarch/"
mkdir -p ./test/data/testrepos/custom
cp -a "${rpmdir}/RPMS/noarch/repodata" ./test/data/testrepos/custom