[Checkins] SVN: z3c.recipe.ldap/trunk/z3c/recipe/ldap/slapadd.py Fix handling of multiple LDIF files

Ross Patterson me at rpatterson.net
Mon Dec 10 13:50:01 EST 2007


Log message for revision 82245:
  Fix handling of multiple LDIF files
  

Changed:
  U   z3c.recipe.ldap/trunk/z3c/recipe/ldap/slapadd.py

-=-
Modified: z3c.recipe.ldap/trunk/z3c/recipe/ldap/slapadd.py
===================================================================
--- z3c.recipe.ldap/trunk/z3c/recipe/ldap/slapadd.py	2007-12-10 18:49:43 UTC (rev 82244)
+++ z3c.recipe.ldap/trunk/z3c/recipe/ldap/slapadd.py	2007-12-10 18:50:00 UTC (rev 82245)
@@ -27,7 +27,8 @@
     def install(self):
         """installer"""
         args = [self.options['slapadd'], '-f', self.options['conf']]
-        subprocess.Popen(args).wait()
+        for ldif in self.ldifs:
+            subprocess.Popen(args+['-l', ldif]).wait()
         return ()
 
     def update(self):



More information about the Checkins mailing list