Commit d9f25d6d authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-simulate: fix simulate for yum

parent 91daab06
......@@ -35,8 +35,10 @@ epm_simulate()
CMD="apt-get --simulate install"
;;
yum-rpm)
CMD="yum provides"
;;
LC_ALL=C sudocmd yum --assumeno install $filenames
# FIXME: check only error output
LC_ALL=C sudocmd yum --assumeno install $filenames 2>&1 | grep "^No package" && return 1
return 0 ;;
urpm-rpm)
CMD="urpmi --test --auto"
;;
......
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