pub struct BackupEntry {
pub path: RelativeFilePath,
pub md5: Md5Checksum,
}Expand description
A path that should be tracked for backup together with its checksum.
Fields§
§path: RelativeFilePathThe path to the file that is backed up.
md5: Md5ChecksumThe MD5 checksum of the backed up file as stored in the package.
Implementations§
Source§impl BackupEntry
impl BackupEntry
Sourcepub(crate) fn parser(input: &mut &str) -> ModalResult<Option<Self>>
pub(crate) fn parser(input: &mut &str) -> ModalResult<Option<Self>>
Recognizes a single backup entry.
Each entry consists of a relative path, a tab, and a 32 character hexadecimal MD5 digest.
§Note
As a special edge case, the parser does not fail if it encounters the keyword (null)
instead of an MD-5 hash digest. The (null) keyword may be present in alpm-db-files
files, due to how pacman handles package metadata with invalid backup entries.
Specifically, if a package is created from a PKGBUILD that tracks files in its backup
array, which are not in the package, then pacman creates an invalid %BACKUP% entry upon
installation of the package, instead of skipping the invalid entries.
Trait Implementations§
Source§impl Clone for BackupEntry
impl Clone for BackupEntry
Source§fn clone(&self) -> BackupEntry
fn clone(&self) -> BackupEntry
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more