Commit b86769e0 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-removerepo: remove full line (with ^rpm) without grep

parent 4f09533e
......@@ -117,7 +117,12 @@ __epm_removerepo_alt()
fatal "epm removerepo: no options are supported"
;;
*)
__epm_removerepo_alt_grepremove "$*"
if echo "$*" | grep -q "^rpm" ] ; then
__epm_removerepo_apt "$*"
else
info "removing source.list entries by mask '$*'"
__epm_removerepo_alt_grepremove "$*"
fi
;;
esac
......
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