Commit 739150f5 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack.d/common.sh: redirect assure_exists output to stderr to prevent apt…

epm repack.d/common.sh: redirect assure_exists output to stderr to prevent apt output leaking into requires
parent f6c8439c
...@@ -43,7 +43,7 @@ __epm_alt_rpm_requires() ...@@ -43,7 +43,7 @@ __epm_alt_rpm_requires()
get_linked_shared_libs() get_linked_shared_libs()
{ {
assure_exists readelf binutils assure_exists readelf binutils >&2
#is_command readelf || fatal "Can't get required shared library: readelf is missed. Try install binutils package." #is_command readelf || fatal "Can't get required shared library: readelf is missed. Try install binutils package."
#ldd "$exe" | sed -e 's|[[:space:]]*||' | grep "^lib.*[[:space:]]=>[[:space:]]\(/usr/lib\|/lib\)" | sed -e 's|[[:space:]].*||' #ldd "$exe" | sed -e 's|[[:space:]]*||' | grep "^lib.*[[:space:]]=>[[:space:]]\(/usr/lib\|/lib\)" | sed -e 's|[[:space:]].*||'
LC_ALL=C a="" readelf -d "$1" | grep "(NEEDED)" | grep "Shared library:" | sed -e 's|.*Shared library: \[||' -e 's|\]$||' | grep "^lib" LC_ALL=C a="" readelf -d "$1" | grep "(NEEDED)" | grep "Shared library:" | sed -e 's|.*Shared library: \[||' -e 's|\]$||' | grep "^lib"
......
...@@ -556,7 +556,7 @@ __get_library_provides() ...@@ -556,7 +556,7 @@ __get_library_provides()
{ {
local fdir="$1" local fdir="$1"
epm assure objdump binutils || fatal "Can't install needed binutils package" epm assure objdump binutils >&2 || fatal "Can't install needed binutils package"
info " Getting internal provides ..." info " Getting internal provides ..."
for libso in $(find "$fdir" -name "lib*.so*") ; do for libso in $(find "$fdir" -name "lib*.so*") ; do
......
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