pkglistgen: do_dump_solv(): utilize os.path.join().

This commit is contained in:
Jimmy Berry 2018-03-08 16:43:18 -06:00
parent fe4edd62dd
commit 28b467f4e8

View File

@ -878,7 +878,7 @@ class CommandLineInterface(ToolBase.CommandLineInterface):
ofh = sys.stdout
if self.options.output_dir:
build, repo_style = self.dump_solv_build(baseurl)
name = '{}/{}.solv'.format(self.options.output_dir, build)
name = os.path.join(self.options.output_dir, '{}.solv'.format(build))
# For update repo name never changes so always update.
if not opts.overwrite and repo_style != 'update' and os.path.exists(name):
logger.info("%s exists", name)