commit beb98c2a48e56ed49ef611944d58a8b4b74e46ea Author: Pierre-Yves Chibon pingou@pingoured.fr Date: Fri Oct 10 12:31:18 2014 +0200
Authenticate against FAS to check if the user is a packager or not
pkgdb2client/utils.py | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) --- diff --git a/pkgdb2client/utils.py b/pkgdb2client/utils.py index c5a977a..1eed430 100644 --- a/pkgdb2client/utils.py +++ b/pkgdb2client/utils.py @@ -211,6 +211,11 @@ def check_branch_creation(pkgdbclient, pkg_name, clt_name, user): )
# Check if user is a packager + if not FASCLIENT.username: + username, password = pkgdb2client.ask_password() + FASCLIENT.username = username + FASCLIENT.password = password + if not is_packager(user): messages.append('User {0} is not a packager'.format(user))
packagedb-cli-commits@lists.stg.fedorahosted.org