Commit 005907c1 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm: small fixes

parent 10918d57
...@@ -27,7 +27,7 @@ __epm_removerepo_alt_grepremove() ...@@ -27,7 +27,7 @@ __epm_removerepo_alt_grepremove()
if [ "$1" = "all" ] || rhas "$1" "^rpm" ; then if [ "$1" = "all" ] || rhas "$1" "^rpm" ; then
rl="$1" rl="$1"
else else
rl="$( (epm --quiet repolist) 2>/dev/null | grep -E "$1")" rl="$( epm --quiet repolist 2>/dev/null | grep -F "$1" | head -n1 )"
[ -z "$rl" ] && warning "Can't find '$1' in the repos (see '# epm repolist' output)" && return 1 [ -z "$rl" ] && warning "Can't find '$1' in the repos (see '# epm repolist' output)" && return 1
fi fi
echo "$rl" | while read rp ; do echo "$rl" | while read rp ; do
......
...@@ -114,7 +114,7 @@ case $PMTYPE in ...@@ -114,7 +114,7 @@ case $PMTYPE in
docmd ds-conf docmd ds-conf
;; ;;
apt-dpkg|aptitude-dpkg) apt-dpkg|aptitude-dpkg)
print_apt_sources_list print_apt_sources_list "$@"
;; ;;
yum-rpm) yum-rpm)
docmd yum repolist $verbose docmd yum repolist $verbose
......
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