Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/installer/corehost/cli/deps_format.cpp')
-rw-r--r--src/installer/corehost/cli/deps_format.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/installer/corehost/cli/deps_format.cpp b/src/installer/corehost/cli/deps_format.cpp
index 873dd815c7a..b098d953025 100644
--- a/src/installer/corehost/cli/deps_format.cpp
+++ b/src/installer/corehost/cli/deps_format.cpp
@@ -6,7 +6,6 @@
#include "deps_format.h"
#include "utils.h"
#include "trace.h"
-#include "bundle/info.h"
#include <tuple>
#include <array>
#include <iterator>
@@ -427,16 +426,16 @@ bool deps_json_t::has_package(const pal::string_t& name, const pal::string_t& ve
bool deps_json_t::load(bool is_framework_dependent, const pal::string_t& deps_path, const rid_fallback_graph_t& rid_fallback_graph)
{
m_deps_file = deps_path;
- m_file_exists = bundle::info_t::config_t::probe(deps_path) || pal::file_exists(deps_path);
+ m_file_exists = pal::file_exists(deps_path);
- json_parser_t json;
+ // If file doesn't exist, then assume parsed.
if (!m_file_exists)
{
- // If file doesn't exist, then assume parsed.
trace::verbose(_X("Could not locate the dependencies manifest file [%s]. Some libraries may fail to resolve."), deps_path.c_str());
return true;
}
+ json_parser_t json;
if (!json.parse_file(deps_path))
{
return false;