Skip to content

Commit

Permalink
microdnf: test for reinstall of pkg with identical Provide and Conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
kontura authored and jan-kolarik committed Apr 15, 2024
1 parent b77498d commit 2559afc
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
12 changes: 12 additions & 0 deletions dnf-behave-tests/dnf/microdnf/reinstall6.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@no_installroot
Feature: Reinstall


Scenario: Reinstall a pkg that has an identical Provide and a Conflict
Given I use repository "reinstall-provides-conflict"
And I successfully execute microdnf with args "install hello"
When I execute microdnf with args "reinstall hello"
Then the exit code is 0
And RPMDB Transaction is following
| Action | Package |
| reinstall | hello-0:1.0-1.fc29.x86_64 |
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Name: hello
Version: 1.0
Release: 1.fc29
Summary: Made up package

License: GPLv3+
Url: None

Conflicts: hello
Provides: hello

%description
Description of a pkg that Provides and Conflicts the same capability.

%files

%changelog

0 comments on commit 2559afc

Please sign in to comment.