Verified Commit b653a55b authored by Adam Mercer's avatar Adam Mercer
Browse files

pass args.source as a string

parent 022a439f
...@@ -93,7 +93,10 @@ def main(): ...@@ -93,7 +93,10 @@ def main():
# get pkg name from source rpm # get pkg name from source rpm
try: try:
if args.source_type != 'git': if args.source_type != 'git':
pkg_name = rpm.get_package_name_from_source_rpm(args.source) pkg_name = rpm.get_package_name_from_source_rpm(
str(args.source),
logger=logger
)
logger.info("package name = %s" % pkg_name) logger.info("package name = %s" % pkg_name)
# how do we determine this when source is from git? # how do we determine this when source is from git?
except subprocess.CalledProcessError as e: except subprocess.CalledProcessError as e:
......
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