Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fileprovides: create fileprovides with already present solv files #1517

Merged
merged 1 commit into from
Jul 2, 2024
Merged
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
16 changes: 16 additions & 0 deletions dnf-behave-tests/dnf/fileprovides.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@dnf5
Feature: Adding file provides tests

Scenario: Run repoclosure with already created cache without filelists
Given I enable plugin "repoclosure"
And I use repository "fileprovides"
# We run repoquery --whatprovides to trigger generation of file provides (calling make_provides_ready())
# This command doesn't require filelists.xml
And I successfully execute dnf with args "repoquery --whatprovides htop"
# This command requires filelists.xml
When I execute dnf with args "repoclosure"
Then the exit code is 0
Then stdout is
"""
<REPOSYNC>
"""
19 changes: 19 additions & 0 deletions dnf-behave-tests/fixtures/specs/fileprovides/agua-1.0-1.fc29.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Name: agua
Version: 1.0
Release: 1.fc29
Summary: Made up package

License: GPLv3+
Url: None

%description
agua description

%install
mkdir -p %{buildroot}/a/path/to
touch %{buildroot}/a/path/to/water

%files
/a/path/to/water

%changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Name: planta
Version: 1.0
Release: 1.fc29
Summary: Made up package

License: GPLv3+
Url: None

Requires: /a/path/to/water

%description
planta description

%files

%changelog
Loading