[svn-commits] tzafrir: branch 1.2 r3110 - /branches/1.2/contrib/install_prereq

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Oct 4 09:35:59 CDT 2007


Author: tzafrir
Date: Thu Oct  4 09:35:58 2007
New Revision: 3110

URL: http://svn.digium.com/view/zaptel?view=rev&rev=3110
Log:
Don't run/print install command when there's nothing to install.

Modified:
    branches/1.2/contrib/install_prereq

Modified: branches/1.2/contrib/install_prereq
URL: http://svn.digium.com/view/zaptel/branches/1.2/contrib/install_prereq?view=diff&rev=3110&r1=3109&r2=3110
==============================================================================
--- branches/1.2/contrib/install_prereq (original)
+++ branches/1.2/contrib/install_prereq Thu Oct  4 09:35:58 2007
@@ -64,6 +64,9 @@
 		esac
 		echo "# Kernel source not found. Installing $kernel_package"
 	fi
+	if [ "$extra_packs$kernel_package" = '' ]; then
+		return
+	fi
 	$testcmd apt-get install -y $extra_packs $kernel_package
 }
 
@@ -86,6 +89,9 @@
 		echo "#yum install -y kernel$kern_str kernel$kern_str-devel"
 		echo "#"
 		echo "# and then reboot to upgrade to the newly installed kernel."
+	fi
+	if [ "$extra_packs$kernel_package" = '' ]; then
+		return
 	fi
 	$testcmd yum install -y $extra_packs $kernel_package
 }




More information about the svn-commits mailing list