Skip to content

Commit fd8b644

Browse files
m-blahaclaude
andcommitted
list: test --installed-from-repo implies --installed
Replace the scenario that tested the old (buggy) behavior where --installed-from-repo without --installed showed both installed and available packages. The new scenario verifies that --installed-from-repo alone implies --installed, matching the repoquery command behavior. Related: rpm-software-management/dnf5#2712 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Marek Blaha <mblaha@redhat.com>
1 parent fd6ecd8 commit fd8b644

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

dnf-behave-tests/dnf/list-installed-from-repo.feature

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,9 @@ Scenario: Test case with wildcards in installed from repo definition
129129
"""
130130

131131

132-
Scenario: List "l*" packages installed "from-repo-ipdates2" and available in "from-repo-ipdates2"
133-
When I execute dnf with args "--repo=from-repo-updates? list --installed-from-repo=from-repo-updates2 'l*'"
132+
# https://github.com/rpm-software-management/dnf5/issues/2712
133+
Scenario: --installed-from-repo without --installed implies --installed
134+
When I execute dnf with args "list --installed-from-repo=from-repo"
134135
Then the exit code is 0
135136
And stderr is
136137
"""
@@ -139,12 +140,6 @@ Scenario: List "l*" packages installed "from-repo-ipdates2" and available in "fr
139140
And stdout matches line by line
140141
"""
141142
Installed packages
142-
lame.x86_64 +3.100-5.fc29 +from-repo-updates2
143-
lame-libs.x86_64 +3.100-5.fc29 +from-repo-updates2
144-
145-
Available packages
146-
lame.src +3.100-5.fc29 +from-repo-updates2
147-
libzstd.x86_64 +1.3.6-1.fc29 +from-repo-updates1
148-
libzstd-debuginfo.x86_64 +1.3.6-1.fc29 +from-repo-updates1
149-
libzstd-devel.x86_64 +1.3.6-1.fc29 +from-repo-updates1
143+
dependency3.x86_64 +1.0-1.fc29 +from-repo
144+
lz4.x86_64 +1.7.5-2.fc26 +from-repo
150145
"""

0 commit comments

Comments
 (0)