[sysadmin-bin] fix l10n modules
- From: Olav Vitters <ovitters src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] fix l10n modules
- Date: Sat, 3 Dec 2011 11:53:43 +0000 (UTC)
commit a23e9c83b39d7a423cde20ae8f13380a2eda7ad5
Author: Olav Vitters <olav vitters nl>
Date: Sat Dec 3 12:51:43 2011 +0100
fix l10n modules
handle-ldap-modules | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/handle-ldap-modules b/handle-ldap-modules
index 98ccd4e..dd662b5 100755
--- a/handle-ldap-modules
+++ b/handle-ldap-modules
@@ -496,7 +496,6 @@ foundation members.""")
'sn': modname,
'description': vcs_descs.get(modname, '%s module' % modname),
'maintainerUid': list(vcs_modules[modname]),
- 'tarballName': list(vcs_tarballs[modname])
}
classes = ['gnomeModule', 'inetOrgPerson']
@@ -504,6 +503,8 @@ foundation members.""")
if modname.startswith('l10n-') and modname in vcs_descs:
classes.append('localizationModule')
entry['localizationTeam'] = ' '
+ else:
+ entry['tarballName'] = list(vcs_tarballs[modname])
entry['objectClass'] = classes
@@ -516,12 +517,16 @@ foundation members.""")
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])
}
newattrs = {
'maintainerUid': list(vcs_modules[modname]),
'tarballName': list(vcs_tarballs[modname])
}
+ if not (modname.startswith('l10n-') and modname in vcs_descs):
+ oldattrs['tarballName'] = list(ldap_tarballs[modname])
+ newattrs['tarballName'] = list(vcs_tarballs[modname])
+
+
ldif_entry = ldap.modlist.modifyModlist(oldattrs, newattrs)
if verbose:
print "C:", dn, ldif_entry
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]