From ad18f2b0fb4a914f7896adc201e7e0f4201a8ccd Mon Sep 17 00:00:00 2001 From: Pavla Kratochvilova Date: Wed, 24 Jul 2024 11:05:18 +0200 Subject: [PATCH] reposync: Respect --norepopath with --metadata-path Resolves: https://issues.redhat.com/browse/RHEL-40914 --- plugins/reposync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/reposync.py b/plugins/reposync.py index 0ff936f8..ab513e76 100644 --- a/plugins/reposync.py +++ b/plugins/reposync.py @@ -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)