Skip to content

Commit

Permalink
epm repo del: added dnf5 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Boria138 authored and vitlav committed Dec 5, 2024
1 parent 77e9c1f commit 465b84a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/epm-removerepo
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ case $PMTYPE in
repo_file_name=$(env LC_ALL=C dnf repoinfo "$@" 2>/dev/null | sed -n 's/^Repo-filename\s*:\s*//p')
sudocmd rm "$repo_file_name"
;;
dnf5-rpm)
repo_file_name=$(env LC_ALL=C dnf repoinfo "$@" 2>/dev/null | sed -n 's/^Config file\s*:\s*//p')
sudocmd rm "$repo_file_name"
;;
urpm-rpm)
if [ "$1" = "all" ] ; then
sudocmd urpmi.removemedia -av
Expand Down

0 comments on commit 465b84a

Please sign in to comment.