-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow url to be templated to be used on non-rocky forges
- Loading branch information
1 parent
df55c42
commit 416e4f1
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]>") | ||
|
@@ -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 | ||
|