Quellcode durchsuchen

Fix transposed lm namespace/name

default_compile_flags
vector-of-bool vor 5 Jahren
Ursprung
Commit
20f8b070d3
1 geänderte Dateien mit 3 neuen und 8 gelöschten Zeilen
  1. +3
    -8
      src/dds/catalog/catalog.cpp

+ 3
- 8
src/dds/catalog/catalog.cpp Datei anzeigen

@@ -30,11 +30,12 @@ void migrate_repodb_1(sqlite3::database& db) {
lm_name TEXT,
lm_namespace TEXT,
UNIQUE(name, version),
CONSTRAINT has_remote_info CHECK(
CONSTRAINT has_source_info CHECK(
(
git_url NOT NULL
AND git_ref NOT NULL
)
= 1
),
CONSTRAINT valid_lm_info CHECK(
(
@@ -214,7 +215,7 @@ std::optional<package_info> catalog::get(const package_id& pk_id) const noexcept
git_remote_listing{
*git_url,
*git_ref,
lm_name ? std::make_optional(lm::usage{*lm_name, *lm_namespace}) : std::nullopt,
lm_name ? std::make_optional(lm::usage{*lm_namespace, *lm_name}) : std::nullopt,
},
};
}
@@ -344,9 +345,3 @@ void catalog::import_json_str(std::string_view content) {
}
}
}

std::vector<package_id> catalog::solve_requirements(const std::vector<dependency>& deps) const {
return dds::solve(deps,
[&](std::string_view pkg_name) { return this->by_name(pkg_name); },
[&](const package_id& pkg) { return this->dependencies_of(pkg); });
}

Laden…
Abbrechen
Speichern