Skip to content

Commit 15a2dbc

Browse files
committed
Fix dnf history commands to work on fedora
1 parent 406388c commit 15a2dbc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/testlib.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ function dednfyum() {
148148
# thus removing also the,
149149
# and restoring alternatives as in install rpms
150150
if which dnf ; then
151-
sudo dnf history info 0 | grep "${1}"
152-
sudo dnf history undo 0 -y --skip-broken
151+
sudo dnf history info last | grep "${1}"
152+
sudo dnf history undo last -y
153153
sudo dnf remove -y "$@" || true # to double check the evil...
154154
elif which yum ; then
155155
# shellcheck disable=SC2155

0 commit comments

Comments
 (0)