Follow-up Comment #1, bug #2838 (project savane):

Actually, the following should take care of such cases. But the bug is
probably lying on this area, since clearly the problem occurs when a user
join a group while he was already member of other groups and had already a
registered key.


        # Update of group keyrings
        if ($gpg_group_keyring) {
            foreach my $thisgroup (@{$db_user_group{$user}}) {
                
                # Add the group to the list of update candidate, unless
                # already there, if there were changes
                if ($keys_differs) {
                    $gpg_keyrings_to_rebuild{$thisgroup} = 1
                        unless $gpg_keyrings_to_rebuild{$thisgroup};
                }
                
                # Store the key content if it is something worth being
                # registered, in any cases (other users can cause the
                # update to be necessary, so it's irrelevant whether this
                # peculiar user needed the update)
                if ($gpg_keys and $gpg_keys ne "NULL" ) {
                    push(@{$group_gpg_keyring{$thisgroup}}, $gpg_keys);
                }
            }
        }

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?func=detailitem&item_id=2838>

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


_______________________________________________
Savane-dev mailing list
[email protected]
https://mail.gna.org/listinfo/savane-dev

Reply via email to