diff options
author | Jesse Keating <jkeating@redhat.com> | 2010-07-27 11:32:58 -0700 |
---|---|---|
committer | Jesse Keating <jkeating@redhat.com> | 2010-07-27 11:32:58 -0700 |
commit | a69d9c5eea8d58f333c51ad02568f3ab49d68c73 (patch) | |
tree | 142dc692f60097b2f834ffcfba97b9aa60193bd7 /src/fedpkg.py | |
parent | 68d0c93b40d4e53bc3597aa52bf8ebdda728566a (diff) | |
download | fedora-packager-a69d9c5eea8d58f333c51ad02568f3ab49d68c73.tar.gz fedora-packager-a69d9c5eea8d58f333c51ad02568f3ab49d68c73.tar.xz fedora-packager-a69d9c5eea8d58f333c51ad02568f3ab49d68c73.zip |
Allow anonymous checkouts with fedpkg
Comes from https://fedorahosted.org/fedora-packager/ticket/25
Diffstat (limited to 'src/fedpkg.py')
-rwxr-xr-x | src/fedpkg.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py index ba36f26..edc7bb2 100755 --- a/src/fedpkg.py +++ b/src/fedpkg.py @@ -394,7 +394,7 @@ def clog(args): sys.exit(1) def clone(args): - if not args.user: + if not args.user and not args.anonymous: # Doing a try doesn't really work since the fedora_cert library just # exits on error, but if that gets fixed this will work better. try: @@ -738,6 +738,10 @@ packages will be built sequentially. # provide a convenient way to get to a specific branch parser_clone.add_argument('--branch', '-b', help = 'Check out a specific branch') + # allow to clone without needing a account on the fedora buildsystem + parser_clone.add_argument('--anonymous', '-a', + action = 'store_true', + help = 'Check out a branch anonymously') # store the module to be cloned parser_clone.add_argument('module', nargs = 1, help = 'Name of the module to clone') |