Verified Commit 53d6abfd authored by Adam Mercer's avatar Adam Mercer
Browse files

add --git option

this is for when the source is a git repository url
parent df8690a2
......@@ -48,12 +48,15 @@ def parse_options():
koji_options.add_argument('--target', default=__target__,
help='Koji tag to tag (%s)' % __target__)
source_options = parser.add_argument_group('Source Options')
source_options.add_argument('--git', action='store_true',
help='Source is from git')
source_options.add_argument('source', help='Source to build with Koji')
# parse options
args = parser.parse_args()
# check that source-rpm exists
if args.git:
source = pathlib.Path(args.source)
if not source.is_file():
print('File %s does not exist.' % args.source)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment