libalpm
Arch Linux Package Manager Library
add.c File Reference
#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"
Include dependency graph for add.c:

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)
 

Function Documentation

◆ commit_single_pkg()

◆ extract_db_file()

static int extract_db_file ( alpm_handle_t * handle,
struct archive * archive,
struct archive_entry * entry,
alpm_pkg_t * newpkg,
const char * entryname )
static

◆ extract_single_file()

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

◆ perform_extraction()

static int perform_extraction ( alpm_handle_t * handle,
struct archive * archive,
struct archive_entry * entry,
const char * filename )
static

◆ try_rename()

static int try_rename ( alpm_handle_t * handle,
const char * src,
const char * dest )
static