|
libalpm
Arch Linux Package Manager Library
|
Functions for package files More...

Data Structures | |
| struct | alpm_file_t |
| File in a package. More... | |
| struct | alpm_filelist_t |
| Package filelist container. More... | |
| struct | alpm_backup_t |
| Local package or package file backup entry. More... | |
Functions | |
| alpm_file_t * | alpm_filelist_contains (const alpm_filelist_t *filelist, const char *path) |
| Determines whether a package filelist contains a given path. | |
Functions for package files
| struct alpm_file_t |
| struct alpm_filelist_t |
Package filelist container.

| Data Fields | ||
|---|---|---|
| size_t | count | Amount of files in the array. |
| alpm_file_t * | files | An array of files. |
| struct alpm_backup_t |
| alpm_file_t * alpm_filelist_contains | ( | const alpm_filelist_t * | filelist, |
| const char * | path ) |
Determines whether a package filelist contains a given path.
The provided path should be relative to the install root with no leading slashes, e.g. "etc/localtime". When searching for directories, the path must have a trailing slash.
| filelist | a pointer to a package filelist |
| path | the path to search for in the package |
References alpm_filelist_t::count, alpm_filelist_t::files, and alpm_file_t::name.
Referenced by alpm_db_find_file_owners(), dir_belongsto_pkgs(), extract_single_file(), should_skip_file(), and unlink_file().