libalpm
Arch Linux Package Manager Library
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <unistd.h>
#include <dirent.h>
#include <sys/stat.h>
#include <alpm.h>
#include <alpm_list.h>
#include "pacman.h"
#include "util.h"
#include "package.h"
#include "conf.h"
Go to the source code of this file.
Functions | |
int | sync_prepare_execute (void) |
int | pacman_sync (alpm_list_t *targets) |
int pacman_sync | ( | alpm_list_t * | targets | ) |
Definition at line 899 of file src/pacman/sync.c.
References _, alpm_list_diff(), alpm_list_free(), alpm_list_strdup(), ALPM_LOG_DEBUG, ALPM_LOG_ERROR, alpm_logaction(), alpm_option_get_syncdbs(), ALPM_TRANS_FLAG_NEEDED, ALPM_TRANS_FLAG_RECURSE, check_syncdbs(), config, __config_t::flags, FREELIST, __config_t::group, __config_t::handle, list_display(), __config_t::op_q_list, __config_t::op_s_clean, __config_t::op_s_downloadonly, __config_t::op_s_info, __config_t::op_s_search, __config_t::op_s_sync, __config_t::op_s_upgrade, pm_printf(), __config_t::print, trans_init(), trans_release(), and yesno().
Referenced by main().
int sync_prepare_execute | ( | void | ) |
Definition at line 774 of file src/pacman/sync.c.
References _, alpm_dep_compute_string(), ALPM_DEP_MOD_ANY, ALPM_ERR_CONFLICTING_DEPS, ALPM_ERR_DLT_INVALID, ALPM_ERR_FILE_CONFLICTS, ALPM_ERR_PKG_INVALID, ALPM_ERR_PKG_INVALID_ARCH, ALPM_ERR_PKG_INVALID_CHECKSUM, ALPM_ERR_PKG_INVALID_SIG, ALPM_ERR_UNSATISFIED_DEPS, alpm_errno(), ALPM_FILECONFLICT_FILESYSTEM, ALPM_FILECONFLICT_TARGET, alpm_list_next(), ALPM_LOG_ERROR, alpm_strerror(), alpm_trans_commit(), alpm_trans_get_add(), alpm_trans_prepare(), config, _alpm_fileconflict_t::ctarget, __alpm_list_t::data, _alpm_depmissing_t::depend, display_targets(), _alpm_fileconflict_t::file, FREELIST, __config_t::handle, _alpm_depend_t::mod, __config_t::op_s_downloadonly, _alpm_conflict_t::package1, _alpm_conflict_t::package2, pm_printf(), __config_t::print, print_packages(), _alpm_conflict_t::reason, _alpm_depmissing_t::target, _alpm_fileconflict_t::target, trans_release(), _alpm_fileconflict_t::type, and yesno().
Referenced by pacman_upgrade().