Commit abd21f8e authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm install: redirect install by path (/usr/bin/git) to install via hi-level…

epm install: redirect install by path (/usr/bin/git) to install via hi-level commands for all distro
parent a8d0af18
...@@ -322,18 +322,19 @@ epm_install_files() ...@@ -322,18 +322,19 @@ epm_install_files()
local files="$*" local files="$*"
[ -z "$files" ] && return [ -z "$files" ] && return
# on some systems install target can be a real path
# use hi-level for install by file path (f.i. epm install /usr/bin/git)
if __epm_if_command_path $files ; then
epm_install_names $files
return
fi
# TODO: check read permissions # TODO: check read permissions
# sudo test -r FILE # sudo test -r FILE
# do not fallback to install_names if we have no permissions # do not fallback to install_names if we have no permissions
case "$BASEDISTRNAME" in case "$BASEDISTRNAME" in
"alt") "alt")
# on ALT install target can be a real path
# do not use low-level for install by file path (f.i. epm install /usr/bin/git)
if __epm_if_command_path $files ; then
epm_install_names $files
return
fi
__epm_print_warning_for_nonalt_packages $files __epm_print_warning_for_nonalt_packages $files
......
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