Browse Source

sdist loading can throw!

default_compile_flags
vector-of-bool 5 years ago
parent
commit
9d6525ff6d
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/dds/repo/repo.cpp
  2. +1
    -1
      src/dds/repo/repo.hpp

+ 1
- 1
src/dds/repo/repo.cpp View File

spdlog::info("Source distribution '{}' successfully exported", sd.ident()); spdlog::info("Source distribution '{}' successfully exported", sd.ident());
} }


std::vector<sdist> repository::load_sdists() const noexcept {
std::vector<sdist> repository::load_sdists() const {
using namespace ranges; using namespace ranges;
using namespace ranges::views; using namespace ranges::views;



+ 1
- 1
src/dds/repo/repo.hpp View File



void add_sdist(const sdist&, if_exists = if_exists::throw_exc); void add_sdist(const sdist&, if_exists = if_exists::throw_exc);
std::optional<sdist> get_sdist(std::string_view name, std::string_view version) const; std::optional<sdist> get_sdist(std::string_view name, std::string_view version) const;
std::vector<sdist> load_sdists() const noexcept;
std::vector<sdist> load_sdists() const;
}; };


} // namespace dds } // namespace dds

Loading…
Cancel
Save