libalpm
Arch Linux Package Manager Library
|
#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"
Go to the source code of this file.
Functions | |
int | alpm_trans_init (alpm_handle_t *handle, alpm_transflag_t flags) |
Initialize the transaction. | |
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. | |
void | _alpm_trans_free (alpm_trans_t *trans) |
int | _alpm_runscriptlet (alpm_handle_t *handle, const char *filepath, const char *script, const char *ver, const char *oldver, int is_archive) |
alpm_transflag_t | alpm_trans_get_flags (alpm_handle_t *handle) |
Returns the bitfield of flags for the current transaction. | |
alpm_list_t * | alpm_trans_get_add (alpm_handle_t *handle) |
Returns a list of packages added by the transaction. | |
alpm_list_t * | alpm_trans_get_remove (alpm_handle_t *handle) |
Returns the list of packages removed by the transaction. |
int _alpm_runscriptlet | ( | alpm_handle_t * | handle, |
const char * | filepath, | ||
const char * | script, | ||
const char * | ver, | ||
const char * | oldver, | ||
int | is_archive | ||
) |
Definition at line 276 of file trans.c.
References _, _alpm_access(), _alpm_copyfile(), _alpm_log(), _alpm_makepath_mode(), _alpm_run_chroot(), _alpm_unpack_single(), ALPM_ERR_MEMORY, ALPM_LOG_DEBUG, ALPM_LOG_ERROR, ALPM_LOG_WARNING, MALLOC, RET_ERR, and __alpm_handle_t::root.
Referenced by _alpm_remove_single_package().
void _alpm_trans_free | ( | alpm_trans_t * | trans | ) |
Definition at line 231 of file trans.c.
References _alpm_pkg_free(), _alpm_pkg_free_trans(), __alpm_trans_t::add, alpm_list_free(), alpm_list_free_inner(), FREE, FREELIST, __alpm_trans_t::remove, __alpm_trans_t::skip_remove, and __alpm_trans_t::unresolvable.
Referenced by _alpm_handle_free(), and alpm_trans_release().