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

Method install_scriptlet

alpm-package/src/input.rs:586–588  ·  view source on GitHub ↗

Returns the optional [alpm-install-scriptlet] of the [`PackageInput`] as [`Path`] reference. # Note The [alpm-install-scriptlet] path relates directly to an on-disk file tracked by the [`PackageInput`]. This method provides access to the data as present during the creation of the [`PackageInput`]. While the data can be guaranteed to be correct, the on-disk file may have changed between creation

(&self)

Source from the content-addressed store, hash-verified

584 ///
585 /// The [alpm-install-scriptlet] path relates directly to an on-disk file tracked by the
586 /// [`PackageInput`]. This method provides access to the data as present during the creation
587 /// of the [`PackageInput`]. While the data can be guaranteed to be correct, the on-disk
588 /// file may have changed between creation of the [`PackageInput`] and the call of this method.
589 ///
590 /// [alpm-install-scriptlet]: https://alpm.archlinux.page/specifications/alpm-install-scriptlet.5.html
591 pub fn install_scriptlet(&self) -> Option<&Path> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected