MCPcopy Create free account
hub / github.com/archlinux/alpm / from_file

Method from_file

python-alpm/src/srcinfo/source_info/v1/mod.rs:24–27  ·  view source on GitHub ↗
(path: PathBuf)

Source from the content-addressed store, hash-verified

22
23 #[staticmethod]
24 fn from_file(path: PathBuf) -> Result<Self, crate::srcinfo::error::Error> {
25 let inner = alpm_srcinfo::SourceInfoV1::from_file(&path)?;
26 Ok(inner.into())
27 }
28
29 #[staticmethod]
30 fn from_pkgbuild(path: PathBuf) -> Result<Self, crate::srcinfo::error::Error> {

Calls

no outgoing calls