Skip to content

Commit

Permalink
repo: Make Repo::download_metadata() method public
Browse files Browse the repository at this point in the history
It's needed for `dnf5 reposync --download-metadata` command.
  • Loading branch information
m-blaha authored and kontura committed Nov 21, 2024
1 parent d3b8b4a commit f69e338
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/libdnf5/repo/repo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,10 @@ class LIBDNF_API Repo {
/// Return string representation of the Type enum
static std::string type_to_string(Type type);

/// Downloads repository metadata.
// @replaces libdnf:repo/Repo.hpp:method:Repo.downloadMetadata(const std::string & destdir)
void download_metadata(const std::string & destdir);

private:
class LIBDNF_LOCAL Impl;
friend class RepoSack;
Expand All @@ -324,10 +328,6 @@ class LIBDNF_API Repo {
/// Also writes the libsolv's solv/solvx cache files.
LIBDNF_LOCAL void load();

/// Downloads repository metadata.
// @replaces libdnf:repo/Repo.hpp:method:Repo.downloadMetadata(const std::string & destdir)
LIBDNF_LOCAL void download_metadata(const std::string & destdir);

LIBDNF_LOCAL void add_libsolv_testcase(const std::string & path);

/// Adds an RPM package at `path` to the repository.
Expand Down

0 comments on commit f69e338

Please sign in to comment.