diff --git a/.gitignore b/.gitignore index 98784b38..d73e883c 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ TAGS *~ build/ libexec/dnf-utils +libexec/dnf-utils-3 diff --git a/plugins/local.py b/plugins/local.py index 1ca61660..12ffc920 100644 --- a/plugins/local.py +++ b/plugins/local.py @@ -26,6 +26,7 @@ import dnf import dnf.cli +import dnf.repo import os import shutil import subprocess @@ -63,6 +64,8 @@ def parse_config(self): else: raise KeyError("Disabled") + main["exclude"] = self.get_value("main", "exclude", "") + if crepo["enabled"]: crepo["cachedir"] = self.get_value("createrepo", "cachedir") @@ -103,6 +106,7 @@ def pre_config(self): local_repo = dnf.repo.Repo("_dnf_local", self.base.conf) local_repo.baseurl = "file://{}".format(self.main["repodir"]) + local_repo.exclude = self.main["exclude"] local_repo.cost = 500 local_repo.skip_if_unavailable = True self.base.repos.add(local_repo)