2016-09-19 11:50:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "package_spec.h"
|
|
|
|
#include "BinaryParagraph.h"
|
|
|
|
#include "StatusParagraphs.h"
|
|
|
|
#include "vcpkg_paths.h"
|
|
|
|
|
|
|
|
namespace vcpkg
|
|
|
|
{
|
|
|
|
StatusParagraphs database_load_check(const vcpkg_paths& paths);
|
|
|
|
|
2016-12-01 17:49:24 +08:00
|
|
|
void write_update(const vcpkg_paths& paths, const StatusParagraph& p);
|
2016-11-16 03:56:46 +08:00
|
|
|
|
|
|
|
expected<SourceParagraph> try_load_port(const fs::path& control_path);
|
2016-12-01 17:37:41 +08:00
|
|
|
|
2016-11-16 03:56:46 +08:00
|
|
|
inline expected<SourceParagraph> try_load_port(const vcpkg_paths& paths, const std::string& name)
|
|
|
|
{
|
|
|
|
return try_load_port(paths.ports / name);
|
|
|
|
}
|
|
|
|
|
|
|
|
expected<BinaryParagraph> try_load_cached_package(const vcpkg_paths& paths, const package_spec& spec);
|
2016-09-19 11:50:08 +08:00
|
|
|
} // namespace vcpkg
|