opened 01:04PM - 03 Oct 23 UTC
Priority: MEDIUM
Triaged
When `dnf5 mark group <grp> <pkg>` is called, dnf5 pretends to do it (exits with… 0), however, the reason for the `<pkg>` is not changed.
Example: comparison of `dnf5 mark user` and `dnf5 mark group` behavior (at the beginning, `mock` package is installed via `rpm-development-tools` group):
~~~
# dnf5 -y mark user mock
Package Arch Version Repository Size
Changing reason:
mock noarch 5.2-1.fc38 @System 1.0 MiB
Group -> User
Transaction Summary:
Changing reason: 1 packages
After this operation 0 B will be used (install 0 B, remove 0 B).
Running transaction
# dnf5 -y mark user mock
Package "mock-5.2-1.fc38.noarch" is already installed with reason "User".
Nothing to do.
# dnf5 -y mark group rpm-development-tools mock
Package Arch Version Repository Size
Changing reason:
mock noarch 5.2-1.fc38 @System 1.0 MiB
User -> Group
Transaction Summary:
Changing reason: 1 packages
After this operation 0 B will be used (install 0 B, remove 0 B).
Running transaction
# echo $?
0
# dnf5 -y mark group rpm-development-tools mock
Package Arch Version Repository Size
Changing reason:
mock noarch 5.2-1.fc38 @System 1.0 MiB
User -> Group
Transaction Summary:
Changing reason: 1 packages
After this operation 0 B will be used (install 0 B, remove 0 B).
Running transaction
# echo $?
0
# dnf5 -y mark user mock
Package "mock-5.2-1.fc38.noarch" is already installed with reason "User".
Nothing to do.
~~~
The second call of `dnf5 -y mark group rpm-development-tools mock` should provide info, that "package is already installed with reason Group" and the last call of `dnf5 -y mark user mock` should be able to change the reason from Group to User.
version: dnf5-5.1.4-20231003004717.24.gbf73442c.fc38