summaryrefslogtreecommitdiffstats
path: root/src/fedpkg.py
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2010-09-20 17:46:10 -0700
committerJesse Keating <jkeating@redhat.com>2010-09-20 17:49:56 -0700
commit5f8cc69168a725364733ca5a1259fd01a6987342 (patch)
tree3c668ebc506dc64228d58ae93b8ce327d7a845ed /src/fedpkg.py
parentdcdcc603823c45bf7cb223ceece463d677e03cc0 (diff)
downloadfedora-packager-5f8cc69168a725364733ca5a1259fd01a6987342.zip
fedora-packager-5f8cc69168a725364733ca5a1259fd01a6987342.tar.gz
fedora-packager-5f8cc69168a725364733ca5a1259fd01a6987342.tar.xz
Add a tag request function (Xavier Lamien)
This patch is manually applied and then adjusted by me. Adds the basic tag request functionality.
Diffstat (limited to 'src/fedpkg.py')
-rwxr-xr-xsrc/fedpkg.py19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py
index 48fb1d4..20dc774 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -15,6 +15,7 @@ import pyfedpkg
import fedora_cert
import os
import sys
+import getpass
import logging
import koji
import xmlrpclib
@@ -705,8 +706,18 @@ def tag(args):
sys.exit(1)
def tagrequest(args):
- # not implimented
- log.warning('Not implimented yet, got %s' % args)
+ user = getuser(args.user)
+ passwd = getpass.getpass('Password for %s: ' % user)
+
+ if not args.desc:
+ args.desc = raw_input('\nAdd a description to your request: ')
+
+ try:
+ mymodule = pyfedpkg.PackageModule(args.path)
+ mymodule.new_ticket(user, passwd, args.desc, args.build)
+ except pyfedpkg.FedpkgError, e:
+ print('Could not request a tag release: %s' % e)
+ sys.exit(1)
def unusedfedpatches(args):
# not implimented; not planned
@@ -1138,7 +1149,9 @@ packages will be built sequentially.
# Create a releng tag request
parser_tagrequest = subparsers.add_parser('tag-request',
- help = 'Submit last build as a releng tag request')
+ help = 'Submit current build nvr as a releng tag request')
+ parser_tagrequest.add_argument('--desc', help="Description of tag request")
+ parser_tagrequest.add_argument('--build', help="Override the build n-v-r")
parser_tagrequest.set_defaults(command = tagrequest)
# Show unused Fedora patches; not planned