[sysadmin-bin] s/+/- or the if statement won't return the correct result.



commit d7b608f8520c40d0d05b3165effed237f3877983
Author: Andrea Veri <av gnome org>
Date:   Sat Aug 24 14:18:36 2013 +0200

    s/+/- or the if statement won't return the correct result.

 create-auth |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/create-auth b/create-auth
index d7e5126..bba96bb 100755
--- a/create-auth
+++ b/create-auth
@@ -324,7 +324,7 @@ def build_user_hash(group_list, restrict=None):
         users.update(get_uids_from_group(group, force_ldap=True))
     if restrict in ('gnomegit', 'gnomegit-i18n', 'mango'):
         gnomevcs_users = (get_uids_from_group('gnomecvs', force_ldap=True) | get_uids_from_group('gnomevcs', 
force_ldap=True)) - users
-        if restrict == 'gnomegit+i18n':
+        if restrict == 'gnomegit-i18n':
             gnomevcs_users.update(['translations'])
     elif restrict == 'nagios':
        gnomevcs_users = get_uids_from_group('nagios', force_ldap=True) - users


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