Commit 63ebf6fe authored by Boris Yumankulov's avatar Boris Yumankulov Committed by Vitaly Lipatov

added add_directrequires function

parent 186c4f4a
...@@ -331,6 +331,12 @@ add_requires() ...@@ -331,6 +331,12 @@ add_requires()
__add_tag_after_d "Requires: $*" __add_tag_after_d "Requires: $*"
} }
add_directrequires()
{
[ -n "$1" ] || return
__add_tag_after_d "Requires: $*"
}
add_conflicts() add_conflicts()
{ {
[ -n "$1" ] || return [ -n "$1" ] || return
...@@ -375,7 +381,6 @@ add_unirequires() ...@@ -375,7 +381,6 @@ add_unirequires()
fi fi
} }
install_requires() install_requires()
{ {
[ -n "$1" ] || return [ -n "$1" ] || return
...@@ -459,7 +464,7 @@ add_libs_requires() ...@@ -459,7 +464,7 @@ add_libs_requires()
info "Scanning for required libs soname ..." info "Scanning for required libs soname ..."
get_libs_requires | xargs -n6 echo | grep -ve '^$' | while read ll ; do get_libs_requires | xargs -n6 echo | grep -ve '^$' | while read ll ; do
info "Requires: $ll" info "Requires: $ll"
add_unirequires "$ll" </dev/null add_directrequires "$ll" </dev/null
done done
} }
......
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