libalpm
Arch Linux Package Manager Library
Functions
remove.h File Reference
#include "db.h"
#include "alpm_list.h"
#include "trans.h"
Include dependency graph for remove.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int _alpm_remove_prepare (alpm_handle_t *handle, alpm_list_t **data)
 Transaction preparation for remove actions.
int _alpm_remove_packages (alpm_handle_t *handle, int run_ldconfig)
int _alpm_remove_single_package (alpm_handle_t *handle, alpm_pkg_t *oldpkg, alpm_pkg_t *newpkg, size_t targ_count, size_t pkg_count)

Function Documentation

int _alpm_remove_packages ( alpm_handle_t handle,
int  run_ldconfig 
)
int _alpm_remove_prepare ( alpm_handle_t handle,
alpm_list_t **  data 
)

Transaction preparation for remove actions.

This functions takes a pointer to a alpm_list_t which will be filled with a list of alpm_depmissing_t* objects representing the packages blocking the transaction.

Parameters:
handlethe context handle
dataa pointer to an alpm_list_t* to fill
Returns:
0 on success, -1 on error

Definition at line 146 of file lib/libalpm/remove.c.

References _alpm_db_get_pkgcache(), _alpm_depmiss_free(), _alpm_log(), _alpm_recursedeps(), _alpm_sortbydeps(), alpm_checkdeps(), ALPM_ERR_UNSATISFIED_DEPS, ALPM_EVENT_CHECKDEPS_DONE, ALPM_EVENT_CHECKDEPS_START, alpm_list_free(), alpm_list_free_inner(), ALPM_LOG_DEBUG, ALPM_TRANS_FLAG_CASCADE, ALPM_TRANS_FLAG_NODEPS, ALPM_TRANS_FLAG_RECURSE, ALPM_TRANS_FLAG_RECURSEALL, ALPM_TRANS_FLAG_UNNEEDED, __alpm_handle_t::db_local, EVENT, __alpm_trans_t::flags, __alpm_trans_t::remove, RET_ERR, and __alpm_handle_t::trans.

Referenced by alpm_trans_prepare().

Here is the call graph for this function:

Here is the caller graph for this function:

int _alpm_remove_single_package ( alpm_handle_t handle,
alpm_pkg_t oldpkg,
alpm_pkg_t newpkg,
size_t  targ_count,
size_t  pkg_count 
)