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

Method new

python-alpm/src/srcinfo/source_info/v1/package_base.rs:39–45  ·  view source on GitHub ↗
(name: String, version: FullVersion)

Source from the content-addressed store, hash-verified

37impl PackageBase {
38 #[new]
39 fn new(name: String, version: FullVersion) -> Result<Self, crate::types::Error> {
40 let inner = alpm_srcinfo::source_info::v1::package_base::PackageBase::new_with_defaults(
41 alpm_types::Name::new(name.as_str())?,
42 version.into(),
43 );
44 Ok(inner.into())
45 }
46
47 #[getter]
48 fn get_name(&self) -> String {

Callers

nothing calls this directly

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected