diff --git a/doc/dnf5.conf.5.rst b/doc/dnf5.conf.5.rst index 0b03050ec..bb147f40b 100644 --- a/doc/dnf5.conf.5.rst +++ b/doc/dnf5.conf.5.rst @@ -587,6 +587,15 @@ Repo Options Default: ``True``. + +Source and debuginfo repository names +===================================== + +For a given repository with an identifier in the form "-rpms", its corresponding source repository is expected to have an identifier in the form "-source-rpms" and debuginfo repository an identifier in the form "-debug-rpms". Otherwise (if the repository identifier doesn't have the "-rpms" suffix), the source repository is expected to have an identifier in the form "-source" and debuginfo repository an identifier in the form "-debuginfo". + +For example, for repository "fedora", the source repository is "fedora-source" and debuginfo repository is "fedora-debuginfo". For repository "fedora-rpms", the source repository is "fedora-source-rpms" and debuginfo repository is "fedora-debug-rpms". + + Repo Variables ============== diff --git a/include/libdnf5/repo/repo_sack.hpp b/include/libdnf5/repo/repo_sack.hpp index 549576d89..416ed5eb4 100644 --- a/include/libdnf5/repo/repo_sack.hpp +++ b/include/libdnf5/repo/repo_sack.hpp @@ -139,6 +139,8 @@ class LIBDNF_API RepoSack : public sack::Sack { libdnf5::BaseWeakPtr get_base() const; /// For each enabled repository enable corresponding source repository. + /// When repo ID has suffix -rpm then it enables -source-rpms + /// otherwise it enables -source /// @since 5.0 void enable_source_repos();