fixed bug where pipgen named ebuilds dev-python-VERSION.ebuild

This commit is contained in:
~keith 2022-08-08 02:05:06 +00:00
parent 2e79dcbd34
commit e0cbadd94b
Signed by: keith
GPG Key ID: 5BEBEEAB2C73D520
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ def __main__():
os.makedirs(pkg_name)
pkg_data = get_package((args.name + '/' + args.version) if args.version else args.name)
with open(f'{pkg_name}/{pkg_name.partition("/")[0]}-{pkg_data["version"]}.ebuild', 'w') as fh:
with open(f'{pkg_name}/{pkg_name.partition("/")[2]}-{pkg_data["version"]}.ebuild', 'w') as fh:
fh.write(fill_template(pkg_data))
if __name__ == '__main__':