Clone (or update) the AUR git repo and extract .SRCINFO + PKGBUILD for every package
(&self)
| 39 | /// Clone (or update) the AUR git repo and extract |
| 40 | /// .SRCINFO + PKGBUILD for every package |
| 41 | pub fn download_packages(&self) -> Result<(), Error> { |
| 42 | self.update_or_clone()?; |
| 43 | self.parallel_extract_files()?; |
| 44 | Ok(()) |
| 45 | } |
| 46 | |
| 47 | /// Ensure we have a bare clone of aur.git locally. Update if already present. |
| 48 | fn update_or_clone(&self) -> Result<(), Error> { |