-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable history-undo-dependant.feature and history-undo-obsoletes.feature
- Undoing install of dependecies that are not used by anything else is now described as `remove-unused`. - The `undo` command now has `allow_erasing` set which allows to remove `postgresql-test-9.6.8-1.module_1710+b535a823.x86_64` but it requires the `--ignore-extras` flag because it is not part of the original transaction
- Loading branch information
Showing
2 changed files
with
21 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
@dnf5 | ||
Feature: Transaction history undo | ||
|
||
@bz1700529 | ||
Scenario: Undo module install with dependent userinstalled package | ||
Given I use repository "dnf-ci-fedora" | ||
And I use repository "dnf-ci-fedora-modular" | ||
# install module that contains postgresql-server | ||
When I execute dnf with args "module install postgresql/server" | ||
Then the exit code is 0 | ||
And Transaction contains | ||
| Action | Package | | ||
| install-group | postgresql-server-0:9.6.8-1.module_1710+b535a823.x86_64 | | ||
And I successfully execute dnf with args "module enable postgresql/server" | ||
And I successfully execute dnf with args "install postgresql-server-0:9.6.8-1.module_1710+b535a823.x86_64" | ||
# install package, that requires postgresql-server | ||
When I execute dnf with args "install postgresql-test" | ||
Then the exit code is 0 | ||
And I successfully execute dnf with args "install postgresql-test" | ||
# try to undo module install transaction | ||
When I execute dnf with args "history undo last-1" | ||
# the transaction is not supposed to reinstall required packages, but to fail | ||
Then the exit code is 1 | ||
And stdout does not contain "Reinstalling\s+: postgresql-server-9\.6\.8-1\.module_1710\+b535a823" | ||
And stderr contains "package postgresql-test-9\.6\.8-1\.module_1710\+b535a823\.x86_64 requires postgresql-server\(x86-64\) = 9\.6\.8-1\.module_1710\+b535a823, but none of the providers can be installed" | ||
And stdout is | ||
""" | ||
<REPOSYNC> | ||
""" | ||
And stderr is | ||
""" | ||
Failed to resolve the transaction: | ||
Extra package 'postgresql-test-9.6.8-1.module_1710+b535a823.x86_64' (with action 'Remove') which is not present in the stored transaction was pulled into the transaction. | ||
You can try to add to command line: | ||
--ignore-extras to allow extra packages in the transaction | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters