Skip to content

Commit

Permalink
reposync: Respect --norepopath with --metadata-path
Browse files Browse the repository at this point in the history
  • Loading branch information
pkratoch authored and kontura committed Jul 29, 2024
1 parent 75018d0 commit 05706d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/reposync.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def repo_target(self, repo):

def metadata_target(self, repo):
if self.opts.metadata_path:
return _pkgdir(self.opts.metadata_path, repo.id)
return _pkgdir(self.opts.metadata_path, repo.id if not self.opts.norepopath else '')
else:
return self.repo_target(repo)

Expand Down

0 comments on commit 05706d0

Please sign in to comment.