aur-fetch 0.8.1
“A libary for downloading and diffing AUR packages”
Constructs a Rust command using imported CommandImports Rust process::Command
SHA-256f8ee1f4f344af70599dce72518673e0340cfa46c3ca014102000c42b78a71a34
MaleculeH₂(F₂Po₂)
Evidence
9use std::os::unix::fs::symlink;
10use std::path::{Path, PathBuf};
11use std::process::{Command, Output};
12
13use std::rc::Rc;
14
15use futures::future::try_join_all;
16
17#[cfg(feature = "view")]
18use tempfile::{Builder, TempDir};
19use tokio::process::Command as AsyncCommand;
20use url::Url;
21
⋯8 lines
163:30… f.is_git_repo(pkg);
164 let command = if is_git_repo {
165 fetched = true;
166 AsyncCommand::new(&self.git)
167 .current_dir(&self.clone_dir.join(pkg))
168 .args(&["fetch", "-v"])
⋯5 lines
302:5… path.set_extension("diff");
303
304 let mut file = File::create(path)?;
305
306 file.write_all(
307 &git_log(
308 &self.git,
309 &self.git_flags,
310 self.clone_di …
435:17… ing],
436 args: &[&str],
437) -> Result<Output> {
438 let output = Command::new(git.as_ref())
439 .current_dir(path.as_ref())
440 .args(flags)
⋯5 lines
460:13… [String],
461 args: &[&str],
462) -> Result<()> {
463 let status = Command::new(git.as_ref())
464 .current_dir(path.as_ref())
465 .args(flags)
⋯10 lines
No evidence locations were recorded for this file. Raw result