Commit 9a10be1c authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-removerepo: fix task removing

parent 439ef8bc
...@@ -63,9 +63,9 @@ __epm_removerepo_alt_grepremove() ...@@ -63,9 +63,9 @@ __epm_removerepo_alt_grepremove()
# ^rpm means full string # ^rpm means full string
if ! rhas "$rl" "^rpm" ; then if ! rhas "$rl" "^rpm" ; then
rl="$(__epm_grep_repo_list "$rl" 2>/dev/null)" rl="$(__epm_grep_repo_list $rl 2>/dev/null)"
if [ -z "$rl" ] ; then if [ -z "$rl" ] ; then
[ -n "$verbose" ] && warning 'Can'\''t find '$rl' in the repos (see # epm repolist output)' [ -n "$verbose" ] && warning 'Can'\''t find '$*' in the repos (see # epm repolist output)'
return 1 return 1
fi fi
fi fi
...@@ -124,7 +124,7 @@ __epm_removerepo_alt() ...@@ -124,7 +124,7 @@ __epm_removerepo_alt()
if echo "$*" | grep -q "^rpm" ; then if echo "$*" | grep -q "^rpm" ; then
__epm_removerepo_apt "$*" __epm_removerepo_apt "$*"
else else
info "removing all source.list" info "removing with grep by '$*'"
__epm_removerepo_alt_grepremove "$*" __epm_removerepo_alt_grepremove "$*"
fi fi
;; ;;
......
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