Skip to content

Commit

Permalink
feat: allow url to be templated to be used on non-rocky forges
Browse files Browse the repository at this point in the history
  • Loading branch information
NeilHanlon committed Jul 9, 2024
1 parent df55c42 commit 416e4f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mangle/quick-bump.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@

parser.add_argument("--git-user", default="Release Engineering")
parser.add_argument("--git-email", default="[email protected]")
parser.add_argument("--url", default="ssh://[email protected]:22220/staging/src/%s.git",
help="override default URL")
parser.add_argument("--change-user",
help="Sets the user for the rpm changelog (first last <email>)",
default="Release Engineering <[email protected]>")
Expand All @@ -62,10 +64,12 @@
print('DO NOT RUN AS ROOT')
sys.exit(1)

default_url = 'ssh://[email protected]:22220/staging/src/%s.git' % args.pkg
if args.sig:
default_url = 'ssh://[email protected]:22220/sig/%s/src/%s.git' % (args.sig, args.pkg)

if args.url:
default_url = getattr(args, 'url').format(pkg=args.pkg)

# functions
workdir = '/var/tmp'
environment = os.environ
Expand Down

0 comments on commit 416e4f1

Please sign in to comment.