libalpm
Arch Linux Package Manager Library
|
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <limits.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdint.h>
#include <archive.h>
#include <archive_entry.h>
#include "add.h"
#include "alpm.h"
#include "alpm_list.h"
#include "handle.h"
#include "libarchive-compat.h"
#include "trans.h"
#include "util.h"
#include "log.h"
#include "backup.h"
#include "package.h"
#include "db.h"
#include "remove.h"
Functions | |
int | alpm_add_pkg (alpm_handle_t *handle, alpm_pkg_t *pkg) |
Add a package to the transaction. | |
static int | perform_extraction (alpm_handle_t *handle, struct archive *archive, struct archive_entry *entry, const char *filename) |
static int | try_rename (alpm_handle_t *handle, const char *src, const char *dest) |
static int | extract_db_file (alpm_handle_t *handle, struct archive *archive, struct archive_entry *entry, alpm_pkg_t *newpkg, const char *entryname) |
static int | extract_single_file (alpm_handle_t *handle, struct archive *archive, struct archive_entry *entry, alpm_pkg_t *newpkg, alpm_pkg_t *oldpkg) |
static int | commit_single_pkg (alpm_handle_t *handle, alpm_pkg_t *newpkg, size_t pkg_current, size_t pkg_count) |
|
static |
References _, ALPM_CALLER_PREFIX, ALPM_ERR_DB_WRITE, ALPM_ERR_PKG_OPEN, ALPM_ERR_TRANS_ABORT, ALPM_EVENT_PACKAGE_OPERATION_DONE, ALPM_EVENT_PACKAGE_OPERATION_START, ALPM_LOG_DEBUG, ALPM_LOG_ERROR, alpm_logaction(), ALPM_PACKAGE_DOWNGRADE, ALPM_PACKAGE_INSTALL, ALPM_PACKAGE_REINSTALL, ALPM_PACKAGE_UPGRADE, alpm_pkg_get_reason(), alpm_pkg_has_scriptlet(), ALPM_PKG_REASON_DEPEND, ALPM_PKG_REASON_EXPLICIT, ALPM_PROGRESS_ADD_START, ALPM_PROGRESS_DOWNGRADE_START, ALPM_PROGRESS_REINSTALL_START, ALPM_PROGRESS_UPGRADE_START, ALPM_TRANS_FLAG_ALLDEPS, ALPM_TRANS_FLAG_ALLEXPLICIT, ALPM_TRANS_FLAG_DBONLY, ALPM_TRANS_FLAG_NOSCRIPTLET, ASSERT, EVENT, extract_db_file(), extract_single_file(), alpm_trans_t::flags, INFRQ_ALL, OPEN, alpm_event_package_operation_t::operation, and PROGRESS.
|
static |
References ALPM_LOG_DEBUG, and perform_extraction().
Referenced by commit_single_pkg(), and extract_single_file().
|
static |
References _, ALPM_CALLER_PREFIX, alpm_compute_md5sum(), ALPM_EVENT_PACNEW_CREATED, alpm_filelist_contains(), ALPM_LOG_DEBUG, ALPM_LOG_ERROR, ALPM_LOG_WARNING, alpm_logaction(), EVENT, extract_db_file(), FREE, alpm_backup_t::hash, perform_extraction(), try_rename(), and alpm_event_pacnew_created_t::type.
Referenced by commit_single_pkg().
|
static |
References _, ALPM_CALLER_PREFIX, ALPM_LOG_ERROR, ALPM_LOG_WARNING, and alpm_logaction().
Referenced by extract_db_file(), and extract_single_file().
|
static |
References _, ALPM_CALLER_PREFIX, ALPM_LOG_ERROR, and alpm_logaction().
Referenced by extract_single_file().