[asterisk-commits] qwell: branch 11 r379277 - in /branches/11: ./ contrib/scripts/install_prereq

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jan 16 15:13:18 CST 2013


Author: qwell
Date: Wed Jan 16 15:13:15 2013
New Revision: 379277

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

Merged revisions 379276 from http://svn.asterisk.org/svn/asterisk/branches/1.8

Modified:
    branches/11/   (props changed)
    branches/11/contrib/scripts/install_prereq

Propchange: branches/11/
------------------------------------------------------------------------------
--- branch-1.8-merged (original)
+++ branch-1.8-merged Wed Jan 16 15:13:15 2013
@@ -1,1 +1,1 @@
-/branches/1.8:1-378147,378164,378356,378375,378427,378455-378456,378486,378514,378554,378591,378733,378776,378933,378967,379001,379145,379178,379226
+/branches/1.8:1-378147,378164,378356,378375,378427,378455-378456,378486,378514,378554,378591,378733,378776,378933,378967,379001,379145,379178,379226,379276

Modified: branches/11/contrib/scripts/install_prereq
URL: http://svnview.digium.com/svn/asterisk/branches/11/contrib/scripts/install_prereq?view=diff&rev=379277&r1=379276&r2=379277
==============================================================================
--- branches/11/contrib/scripts/install_prereq (original)
+++ branches/11/contrib/scripts/install_prereq Wed Jan 16 15:13:15 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 asterisk-commits mailing list