libalpm
Arch Linux Package Manager Library
|
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <limits.h>
#include <errno.h>
#include <time.h>
#include <alpm.h>
#include <alpm_list.h>
#include "package.h"
#include "util.h"
#include "conf.h"
Go to the source code of this file.
Defines | |
#define | CLBUF_SIZE 4096 |
Functions | |
void | dump_pkg_full (alpm_pkg_t *pkg, int extra) |
Display the details of a package. | |
void | dump_pkg_backups (alpm_pkg_t *pkg) |
void | dump_pkg_files (alpm_pkg_t *pkg, int quiet) |
void | dump_pkg_changelog (alpm_pkg_t *pkg) |
#define CLBUF_SIZE 4096 |
Definition at line 37 of file src/pacman/package.c.
Referenced by dump_pkg_changelog().
void dump_pkg_backups | ( | alpm_pkg_t * | pkg | ) |
Definition at line 217 of file src/pacman/package.c.
References _, alpm_list_next(), alpm_option_get_root(), alpm_pkg_get_backup(), config, __alpm_list_t::data, __config_t::handle, _alpm_backup_t::hash, and _alpm_backup_t::name.
Referenced by dump_pkg_full().
void dump_pkg_changelog | ( | alpm_pkg_t * | pkg | ) |
Definition at line 270 of file src/pacman/package.c.
References _, ALPM_LOG_ERROR, alpm_pkg_changelog_close(), alpm_pkg_changelog_open(), alpm_pkg_changelog_read(), alpm_pkg_get_name(), CLBUF_SIZE, and pm_printf().
void dump_pkg_files | ( | alpm_pkg_t * | pkg, |
int | quiet | ||
) |
Definition at line 241 of file src/pacman/package.c.
References alpm_option_get_root(), alpm_pkg_get_files(), alpm_pkg_get_name(), config, _alpm_filelist_t::count, _alpm_filelist_t::files, __config_t::handle, and _alpm_file_t::name.
void dump_pkg_full | ( | alpm_pkg_t * | pkg, |
int | extra | ||
) |
Display the details of a package.
Extra information entails 'required by' info for sync packages and backup files info for local packages.
pkg | package to display information for |
from | the type of package we are dealing with |
extra | should we show extra information |
Definition at line 63 of file src/pacman/package.c.
References _, alpm_db_get_name(), ALPM_ERR_SIG_MISSING, alpm_errno(), alpm_pkg_check_pgp_signature(), alpm_pkg_compute_requiredby(), alpm_pkg_get_arch(), alpm_pkg_get_base64_sig(), alpm_pkg_get_builddate(), alpm_pkg_get_conflicts(), alpm_pkg_get_db(), alpm_pkg_get_depends(), alpm_pkg_get_desc(), alpm_pkg_get_groups(), alpm_pkg_get_installdate(), alpm_pkg_get_isize(), alpm_pkg_get_licenses(), alpm_pkg_get_md5sum(), alpm_pkg_get_name(), alpm_pkg_get_optdepends(), alpm_pkg_get_origin(), alpm_pkg_get_packager(), alpm_pkg_get_provides(), alpm_pkg_get_reason(), alpm_pkg_get_replaces(), alpm_pkg_get_sha256sum(), alpm_pkg_get_size(), alpm_pkg_get_url(), alpm_pkg_get_version(), alpm_pkg_has_scriptlet(), ALPM_PKG_REASON_DEPEND, ALPM_PKG_REASON_EXPLICIT, alpm_siglist_cleanup(), alpm_strerror(), config, dump_pkg_backups(), FREELIST, __config_t::handle, humanize_size(), list_display(), list_display_linebreak(), PKG_FROM_FILE, PKG_FROM_LOCALDB, PKG_FROM_SYNCDB, signature_display(), and string_display().