forked from the-distro/ofborg
outpaths: fixup execute after nix.rs improvements
This commit is contained in:
parent
62a66a8553
commit
9f544b04ca
1 changed files with 6 additions and 10 deletions
|
@ -174,20 +174,16 @@ impl OutPaths {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn execute(&self) -> (bool, File, File) {
|
fn execute(&self) -> (bool, File, File) {
|
||||||
let check_meta: String = if self.check_meta {
|
let check_meta = if self.check_meta { "true" } else { "false" };
|
||||||
String::from("true")
|
|
||||||
} else {
|
|
||||||
String::from("false")
|
|
||||||
};
|
|
||||||
|
|
||||||
self.nix.run_stderr_stdout(self.nix.safe_command(
|
self.nix.run_stderr_stdout(self.nix.safe_command(
|
||||||
&nix::Operation::QueryPackagesOutputs,
|
&nix::Operation::QueryPackagesOutputs,
|
||||||
&self.path,
|
&self.path,
|
||||||
vec![
|
&[
|
||||||
String::from("-f"),
|
"-f",
|
||||||
String::from(".gc-of-borg-outpaths.nix"),
|
".gc-of-borg-outpaths.nix",
|
||||||
String::from("--arg"),
|
"--arg",
|
||||||
String::from("checkMeta"),
|
"checkMeta",
|
||||||
check_meta,
|
check_meta,
|
||||||
],
|
],
|
||||||
&[],
|
&[],
|
||||||
|
|
Loading…
Reference in a new issue