Commit d2615a91 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-assure: fix the result code (ALT bug 40391)

parent 641e97fa
......@@ -22,6 +22,7 @@ __check_command_in_path()
PATH=$PATH:/sbin:/usr/sbin which "$1" 2>/dev/null
}
# returns TRUE if package version is omitted, or package is not installed, or version is too old
__epm_need_update()
{
local PACKAGE="$1"
......@@ -98,6 +99,9 @@ epm_assure()
# TODO: HACK: DEBUG=1 for skip to_remove_pkg handling
(DEBUG=1 repack='' non_interactive=1 pkg_names="$PACKAGE" pkg_files='' pkg_urls='' epm_install ) || return
# no check if we don't need a version
[ -n "$PACKAGEVERSION" ] || return 0
# check if we couldn't update and still need update
__epm_need_update $PACKAGE $PACKAGEVERSION && return 1
return 0
......
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