diff --git a/dnf5.spec b/dnf5.spec index 8f59f54663..226946df7e 100644 --- a/dnf5.spec +++ b/dnf5.spec @@ -303,6 +303,8 @@ Package management library. %dir %{_datadir}/dnf5/libdnf.conf.d %dir %{_sysconfdir}/dnf/libdnf5.conf.d %dir %{_sysconfdir}/dnf/libdnf5-plugins +%dir %{_datadir}/dnf5/repos.d +%dir %{_datadir}/dnf5/vars.d %dir %{_libdir}/libdnf5 %{_libdir}/libdnf5.so.1* %license lgpl-2.1.txt diff --git a/dnf5/config/usr/share/dnf5/repos.d/.gitkeep b/dnf5/config/usr/share/dnf5/repos.d/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/dnf5/config/usr/share/dnf5/vars.d/.gitkeep b/dnf5/config/usr/share/dnf5/vars.d/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/include/libdnf5/conf/const.hpp b/include/libdnf5/conf/const.hpp index 52c0f0cdfb..ff8066efd9 100644 --- a/include/libdnf5/conf/const.hpp +++ b/include/libdnf5/conf/const.hpp @@ -36,10 +36,11 @@ constexpr const char * CONF_DIRECTORY = "/etc/dnf/libdnf5.conf.d"; constexpr const char * PLUGINS_CONF_DIR = "/etc/dnf/libdnf5-plugins"; -const std::vector REPOSITORY_CONF_DIRS{"/etc/yum.repos.d", "/etc/distro.repos.d"}; +const std::vector REPOSITORY_CONF_DIRS{ + "/etc/yum.repos.d", "/etc/distro.repos.d", "/usr/share/dnf5/repos.d"}; // More important varsdirs must be on the end of vector -const std::vector VARS_DIRS{"/etc/dnf/vars"}; +const std::vector VARS_DIRS{"/usr/share/dnf5/vars.d", "/etc/dnf/vars"}; const std::vector GROUP_PACKAGE_TYPES{"mandatory", "default", "conditional"}; const std::vector INSTALLONLYPKGS{