libalpm
Arch Linux Package Manager Library
trans.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <errno.h>
#include <limits.h>
#include "trans.h"
#include "alpm_list.h"
#include "package.h"
#include "util.h"
#include "log.h"
#include "handle.h"
#include "remove.h"
#include "sync.h"
#include "alpm.h"
#include "deps.h"
#include "hook.h"
Include dependency graph for trans.c:

Functions

int alpm_trans_init (alpm_handle_t *handle, int flags)
 Initialize the transaction.
 
static alpm_list_tcheck_arch (alpm_handle_t *handle, alpm_list_t *pkgs)
 
int alpm_trans_prepare (alpm_handle_t *handle, alpm_list_t **data)
 Prepare a transaction.
 
int alpm_trans_commit (alpm_handle_t *handle, alpm_list_t **data)
 Commit a transaction.
 
int alpm_trans_interrupt (alpm_handle_t *handle)
 Interrupt a transaction.
 
int alpm_trans_release (alpm_handle_t *handle)
 Release a transaction.
 
static int grep (const char *fn, const char *needle)
 
int alpm_trans_get_flags (alpm_handle_t *handle)
 Returns the bitfield of flags for the current transaction.
 
alpm_list_talpm_trans_get_add (alpm_handle_t *handle)
 Returns a list of packages added by the transaction.
 
alpm_list_talpm_trans_get_remove (alpm_handle_t *handle)
 Returns the list of packages removed by the transaction.
 

Function Documentation

◆ check_arch()

static alpm_list_t * check_arch ( alpm_handle_t * handle,
alpm_list_t * pkgs )
static

◆ grep()

static int grep ( const char * fn,
const char * needle )
static