libalpm
Arch Linux Package Manager Library
|
#include <stdio.h>
#include <alpm.h>
#include <alpm_list.h>
#include "pacman.h"
#include "conf.h"
#include "util.h"
Go to the source code of this file.
Functions | |
int | pacman_database (alpm_list_t *targets) |
Modify the 'local' package database. |
int pacman_database | ( | alpm_list_t * | targets | ) |
Modify the 'local' package database.
targets | a list of packages (as strings) to modify |
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().