[Fai-commit] r5520 - trunk/bin

Thomas Lange lange at alioth.debian.org
Wed Sep 23 15:41:33 UTC 2009


Author: lange
Date: 2009-09-23 15:41:33 +0000 (Wed, 23 Sep 2009)
New Revision: 5520

Modified:
   trunk/bin/install_packages
Log:
add condition when to executed following commands


Modified: trunk/bin/install_packages
===================================================================
--- trunk/bin/install_packages	2009-09-23 14:54:15 UTC (rev 5519)
+++ trunk/bin/install_packages	2009-09-23 15:41:33 UTC (rev 5520)
@@ -463,6 +463,7 @@
   for (@known) { print LIST "$_\n"; }
   close(LIST);
 
+  return unless ($ENV{'FAI_DEBSOURCESDIR'});
   # download debian source packages if $ENV{'FAI_DEBSOURCESDIR'} is defined
   execute("$rootcmd (cd $debsourcesdir ; apt-get sources @known)");
   execute("mv $FAI_ROOT/$debsourcesdir/*.deb $ENV{'FAI_DEBSOURCESDIR'}");




More information about the Fai-commit mailing list