libalpm
Arch Linux Package Manager Library
Functions
database.c File Reference
#include <stdio.h>
#include <alpm.h>
#include <alpm_list.h>
#include "pacman.h"
#include "conf.h"
#include "util.h"
Include dependency graph for database.c:

Go to the source code of this file.

Functions

int pacman_database (alpm_list_t *targets)
 Modify the 'local' package database.

Function Documentation

int pacman_database ( alpm_list_t targets)

Modify the 'local' package database.

Parameters:
targetsa list of packages (as strings) to modify
Returns:
0 on success, 1 on failure

Definition at line 38 of file database.c.

References _, alpm_db_get_pkg(), alpm_db_set_pkgreason(), alpm_errno(), alpm_list_next(), ALPM_LOG_ERROR, alpm_option_get_localdb(), ALPM_PKG_REASON_DEPEND, ALPM_PKG_REASON_EXPLICIT, alpm_strerror(), ALPM_TRANS_FLAG_ALLDEPS, ALPM_TRANS_FLAG_ALLEXPLICIT, config, __alpm_list_t::data, __config_t::flags, __config_t::handle, pm_printf(), trans_init(), and trans_release().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function: