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

Method new

python-alpm/src/srcinfo/source_info/v1/package.rs:105–108  ·  view source on GitHub ↗
(name: &str)

Source from the content-addressed store, hash-verified

103impl Package {
104 #[new]
105 fn new(name: &str) -> Result<Self, crate::types::Error> {
106 let inner = alpm_srcinfo_package::Package::from(alpm_types::Name::new(name)?);
107 Ok(inner.into())
108 }
109
110 #[getter]
111 fn get_name(&self) -> String {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected