Commit 6be20e43 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-removerepo: restore remove all

parent 3551c4b7
......@@ -23,8 +23,12 @@ load_helper epm-sh-altlinux
__epm_removerepo_alt_grepremove()
{
local rl
rl="$((quiet=1 epm repolist) 2>/dev/null | grep -E "$1")"
[ -z "$rl" ] && warning "Can't find '$1' in the repos (see '# epm repolist' output)" && return 1
if [ "$1" != "all" ] ; then
rl="$((quiet=1 epm repolist) 2>/dev/null | grep -E "$1")"
[ -z "$rl" ] && warning "Can't find '$1' in the repos (see '# epm repolist' output)" && return 1
else
rl="$1"
fi
echo "$rl" | while read rp ; do
# TODO: print removed lines
[ -n "$dryrun" ] && docmd apt-repo $dryrun rm "$rp" && continue
......
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