forked from lix-project/lix
Merge pull request #4271 from wiltaylor/IgnoreReferenceSwitch
Skip Reference Check on bundler
This commit is contained in:
commit
1973669e86
|
@ -32,6 +32,7 @@ struct CmdBundle : InstallableCommand
|
||||||
.handler = {&outLink},
|
.handler = {&outLink},
|
||||||
.completer = completePath
|
.completer = completePath
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string description() override
|
std::string description() override
|
||||||
|
@ -116,10 +117,6 @@ struct CmdBundle : InstallableCommand
|
||||||
|
|
||||||
auto outPathS = store->printStorePath(outPath);
|
auto outPathS = store->printStorePath(outPath);
|
||||||
|
|
||||||
auto info = store->queryPathInfo(outPath);
|
|
||||||
if (!info->references.empty())
|
|
||||||
throw Error("'%s' has references; a bundler must not leave any references", outPathS);
|
|
||||||
|
|
||||||
if (!outLink)
|
if (!outLink)
|
||||||
outLink = baseNameOf(app.program);
|
outLink = baseNameOf(app.program);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue