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 jan-kolarik committed Oct 10, 2024
1 parent ff993ed commit ad18f2b
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 @@ -180,7 +180,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 ad18f2b

Please sign in to comment.