[asterisk-commits] qwell: trunk r379278 - in /trunk: ./ contrib/scripts/install_prereq

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


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

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

Merged revisions 379277 from http://svn.asterisk.org/svn/asterisk/branches/11

Modified:
    trunk/   (props changed)
    trunk/contrib/scripts/install_prereq

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.

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