Reduce number of packages install_prereq installs on Debian systems.

'search' will look for any package containing the name provided, so we need to
force a more exact search.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@379276 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jason Parker
2013-01-16 21:12:36 +00:00
parent 1e65bfc56e
commit b4ff573966

View File

@@ -50,8 +50,12 @@ in_test_mode() {
} }
check_installed_debs() { check_installed_debs() {
aptitude -F '%c %p' search "$@" 2>/dev/null \ for pack in "$@"
| awk '/^p/{print $2}' do
tocheck="${tocheck} ^${pack}$"
done
aptitude -F '%c %p' search ${tocheck} 2>/dev/null \
| awk '/^p/{print $2}'
} }
# parsing the output of yum is close to impossible. # parsing the output of yum is close to impossible.