[sysadmin-bin] handle-ldap-modules: store tarball names



commit b4ff4fac773ad554c3f9c5f970d2c6d396a7feaa
Author: Olav Vitters <olav vitters nl>
Date:   Tue Mar 8 20:30:53 2011 +0100

    handle-ldap-modules: store tarball names

 handle-ldap-modules |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/handle-ldap-modules b/handle-ldap-modules
index 4a11b8c..2e31381 100755
--- a/handle-ldap-modules
+++ b/handle-ldap-modules
@@ -541,9 +541,8 @@ it probably requires some other setting.""")
                     print "A:", dn, ldif_entry
                 if change:
                     l.add_s(dn, ldif_entry)
-            elif modname in ldap_modules \
-                 and (vcs_modules[modname].symmetric_difference(ldap_modules[modname]) \
-                      or vcs_tarballs[modname].symmetric_difference(ldap_tarballs[modname])):
+            elif (modname in ldap_modules and vcs_modules[modname].symmetric_difference(ldap_modules[modname])
+                  modname in vcs_tarballs and vcs_tarballs[modname].symmetric_difference(ldap_tarballs[modname])):
                 oldattrs = {
                     'maintainerUid': list(ldap_modules[modname]),
                     'tarballName': list(ldap_tarballs[modname])



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]