Commit e7ef527a authored by Boria138's avatar Boria138 Committed by Vitaly Lipatov

epm repo: add dnf support to epm repo del (eterbug #17353)

parent 9aafb8e7
......@@ -130,6 +130,10 @@ case $PMTYPE in
assure_exists yum-utils
sudocmd yum-config-manager --disable "$@"
;;
dnf-rpm)
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"
;;
urpm-rpm)
if [ "$1" = "all" ] ; then
sudocmd urpmi.removemedia -av
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment