aur-fetch 0.5.0
“A libary for downloading and diffing AUR packages”
Constructs a Rust command using imported CommandImports Rust process::Command
SHA-25692389f606f67e895902098c20b93ab4b993be11d9d81a7b1fc96845a36d81d28
MaleculeH₂(F₂Po₂)
Evidence
8use std::os::unix::fs::symlink;
9use std::path::{Path, PathBuf};
10use std::process::{Command, Output};
11use std::rc::Rc;
12
⋯11 lines
119:26… pkg.as_ref());
120
121 let command = if is_git_repo {
122 fetched.push(pkg);
123 Command::new(&self.git)
124 .current_dir(&self.clone_dir.join(&pkg))
125 .args(&["fetch", "-v"])
126 …
224:5… path.set_extension("diff");
225
226 let mut file = File::create(path)?;
227
228 file.write_all(&git_log(&self.git, self.clone_dir.join(pkg.as_ref()), false)?.stdout)?;
229 file.write_all(&[b'\n'])?;
230 file …
314:54… S, path: P, args: &[&str]) -> Result<Output> {
315 let output = Command::new(git.as_ref())
316 .current_dir(path.as_ref())
317 .args(args)
⋯7 lines
332:55… it: S, path: P, args: &[&str]) -> Result<()> {
333 let status = Command::new(git.as_ref())
334 .current_dir(path.as_ref())
335 .args(args)
⋯8 lines
No evidence locations were recorded for this file. Raw result