[svn-commits] qwell: branch 1.8 r379276 - /branches/1.8/contrib/scripts/install_prereq

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Jan 16 15:12:40 CST 2013


Author: qwell
Date: Wed Jan 16 15:12:36 2013
New Revision: 379276

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=379276
Log:
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.

Modified:
    branches/1.8/contrib/scripts/install_prereq

Modified: branches/1.8/contrib/scripts/install_prereq
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/contrib/scripts/install_prereq?view=diff&rev=379276&r1=379275&r2=379276
==============================================================================
--- branches/1.8/contrib/scripts/install_prereq (original)
+++ branches/1.8/contrib/scripts/install_prereq Wed Jan 16 15:12:36 2013
@@ -50,8 +50,12 @@
 }
 
 check_installed_debs() {
-	aptitude -F '%c %p' search "$@" 2>/dev/null \
-	| awk '/^p/{print $2}'
+	for pack in "$@"
+	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.




More information about the svn-commits mailing list