forked from lix-project/lix
Formatting
This commit is contained in:
parent
07790fdddf
commit
ceda58d112
|
@ -803,14 +803,14 @@ std::map<StorePath, StorePath> copyPaths(ref<Store> srcStore, ref<Store> dstStor
|
||||||
// Copy the realisation closure
|
// Copy the realisation closure
|
||||||
processGraph<Realisation>(
|
processGraph<Realisation>(
|
||||||
pool, Realisation::closure(*srcStore, toplevelRealisations),
|
pool, Realisation::closure(*srcStore, toplevelRealisations),
|
||||||
[&](const Realisation& current) -> std::set<Realisation> {
|
[&](const Realisation & current) -> std::set<Realisation> {
|
||||||
std::set<Realisation> children;
|
std::set<Realisation> children;
|
||||||
for (const auto& [drvOutput, _] : current.dependentRealisations) {
|
for (const auto & [drvOutput, _] : current.dependentRealisations) {
|
||||||
auto currentChild = srcStore->queryRealisation(drvOutput);
|
auto currentChild = srcStore->queryRealisation(drvOutput);
|
||||||
if (!currentChild)
|
if (!currentChild)
|
||||||
throw Error(
|
throw Error(
|
||||||
"Incomplete realisation closure: '%s' is a "
|
"incomplete realisation closure: '%s' is a "
|
||||||
"dependency of '%s' but isn’t registered",
|
"dependency of '%s' but isn't registered",
|
||||||
drvOutput.to_string(), current.id.to_string());
|
drvOutput.to_string(), current.id.to_string());
|
||||||
children.insert(*currentChild);
|
children.insert(*currentChild);
|
||||||
}
|
}
|
||||||
|
|
|
@ -762,7 +762,7 @@ std::map<StorePath, StorePath> copyPaths(ref<Store> srcStore, ref<Store> dstStor
|
||||||
CheckSigsFlag checkSigs = CheckSigs,
|
CheckSigsFlag checkSigs = CheckSigs,
|
||||||
SubstituteFlag substitute = NoSubstitute);
|
SubstituteFlag substitute = NoSubstitute);
|
||||||
std::map<StorePath, StorePath> copyPaths(ref<Store> srcStore, ref<Store> dstStore,
|
std::map<StorePath, StorePath> copyPaths(ref<Store> srcStore, ref<Store> dstStore,
|
||||||
const StorePathSet& paths,
|
const StorePathSet & paths,
|
||||||
RepairFlag repair = NoRepair,
|
RepairFlag repair = NoRepair,
|
||||||
CheckSigsFlag checkSigs = CheckSigs,
|
CheckSigsFlag checkSigs = CheckSigs,
|
||||||
SubstituteFlag substitute = NoSubstitute);
|
SubstituteFlag substitute = NoSubstitute);
|
||||||
|
|
Loading…
Reference in a new issue