diff --git a/backport-reposync-Respect-norepopath-with-metadata-path.patch b/backport-reposync-Respect-norepopath-with-metadata-path.patch new file mode 100644 index 0000000000000000000000000000000000000000..0dafcc56d151ba51cd2c929b437c9d1d606c4455 --- /dev/null +++ b/backport-reposync-Respect-norepopath-with-metadata-path.patch @@ -0,0 +1,25 @@ +From 1177f339dc3c428d57aef9ec6ae5d1db09ff7b95 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 0ff936f..ab513e7 100644 +--- a/plugins/reposync.py ++++ b/plugins/reposync.py +@@ -180,7 +180,7 @@ class RepoSyncCommand(dnf.cli.Command): + + 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) + +-- +2.46.2 diff --git a/dnf-plugins-core.spec b/dnf-plugins-core.spec index ce9e9706c8f9374a76c0f74329c3a72e2c67020a..75135a647c7618b047fefc418df98eb0c80a04e8 100644 --- a/dnf-plugins-core.spec +++ b/dnf-plugins-core.spec @@ -7,13 +7,14 @@ Name: dnf-plugins-core Version: 4.3.1 -Release: 4 +Release: 5 Summary: Core Plugins for DNF License: GPLv2+ URL: https://github.com/rpm-software-management/dnf-plugins-core Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz patch6000: backport-download-plugin-respect-install_weak_deps-option-value.patch +patch6001: backport-reposync-Respect-norepopath-with-metadata-path.patch patch9000: 9000-Replace-COPR-hub-with-openeuler.patch @@ -347,6 +348,12 @@ popd %{_mandir}/man8/dnf-local.* %changelog +* Thu Nov 07 2024 yueyuankun - 4.3.1-5 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:reposync: Respect --norepopath with --metadata-path + * Wed May 8 2024 wangyueliang - 4.3.1-4 - Type:bugfix - CVE:NA