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



commit f4ed2c3c4df4d04b9028687f9f75491c30cb3360
Author: Olav Vitters <olav vitters nl>
Date:   Tue Mar 8 20:31:31 2011 +0100

    handle-ldap-modules: store tarball names

 handle-ldap-modules |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/handle-ldap-modules b/handle-ldap-modules
index 2e31381..f010699 100755
--- a/handle-ldap-modules
+++ b/handle-ldap-modules
@@ -541,8 +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])
-                  modname in vcs_tarballs and vcs_tarballs[modname].symmetric_difference(ldap_tarballs[modname])):
+            elif ((modname in ldap_modules and vcs_modules[modname].symmetric_difference(ldap_modules[modname])) \
+                  or (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]