make a stab at really not exporting empty groups userdir-ldap-0.3.75
authorStephen Gran <steve@lobefin.net>
Tue, 8 Dec 2009 11:31:27 +0000 (11:31 +0000)
committerStephen Gran <steve@lobefin.net>
Tue, 8 Dec 2009 11:31:27 +0000 (11:31 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
debian/changelog
ud-generate

index c4376f6..c0403b7 100644 (file)
@@ -1,8 +1,8 @@
-userdir-ldap (0.3.XX) Xnstable; urgency=low
+userdir-ldap (0.3.75) unstable; urgency=low
 
   * Enable support for mailDefaultOptions
 
- -- Stephen Gran <sgran@debian.org>  Mon, 16 Nov 2009 00:19:15 +0000
+ -- Stephen Gran <sgran@debian.org>  Mon, 16 Nov 2009 21:36:53 +0000
 
 userdir-ldap (0.3.74) unstable; urgency=low
 
index 1681e97..9355965 100755 (executable)
@@ -446,9 +446,15 @@ def GenGroup(File):
       # Output the group file.
       J = 0
       for x in GroupMap.keys():
-         grouprevmap[GroupIDMap[x]] = x
+
+         if len(GroupMap[x]) == 0:
+            continue
+
          if GroupIDMap.has_key(x) == 0:
             continue
+
+         grouprevmap[GroupIDMap[x]] = x
+
          Line = "%s:x:%u:" % (x, GroupIDMap[x])
          Comma = ''
          for I in GroupMap[x]: