outpaths: fixup execute after nix.rs improvements

This commit is contained in:
Graham Christensen 2019-04-13 10:01:46 -04:00
parent 62a66a8553
commit 9f544b04ca
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -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,
], ],
&[], &[],