libalpm
Arch Linux Package Manager Library
|
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include <sys/stat.h>
#include <dirent.h>
#include "conflict.h"
#include "alpm_list.h"
#include "alpm.h"
#include "handle.h"
#include "trans.h"
#include "util.h"
#include "log.h"
#include "deps.h"
Go to the source code of this file.
Functions | |
void | _alpm_conflict_free (alpm_conflict_t *conflict) |
alpm_conflict_t * | _alpm_conflict_dup (const alpm_conflict_t *conflict) |
alpm_list_t * | _alpm_innerconflicts (alpm_handle_t *handle, alpm_list_t *packages) |
alpm_list_t * | _alpm_outerconflicts (alpm_db_t *db, alpm_list_t *packages) |
alpm_list_t * | alpm_checkconflicts (alpm_handle_t *handle, alpm_list_t *pkglist) |
Check the package conflicts in a database. | |
void | _alpm_fileconflict_free (alpm_fileconflict_t *conflict) |
const alpm_file_t * | _alpm_filelist_contains (alpm_filelist_t *filelist, const char *name) |
alpm_list_t * | _alpm_db_find_fileconflicts (alpm_handle_t *handle, alpm_list_t *upgrade, alpm_list_t *remove) |
alpm_conflict_t* _alpm_conflict_dup | ( | const alpm_conflict_t * | conflict | ) |
Definition at line 65 of file conflict.c.
References CALLOC, _alpm_conflict_t::package1, _alpm_conflict_t::package1_hash, _alpm_conflict_t::package2, _alpm_conflict_t::package2_hash, _alpm_conflict_t::reason, and STRDUP.
Referenced by _alpm_sync_prepare().
void _alpm_conflict_free | ( | alpm_conflict_t * | conflict | ) |
Definition at line 58 of file conflict.c.
References FREE, _alpm_conflict_t::package1, and _alpm_conflict_t::package2.
Referenced by _alpm_sync_prepare().
alpm_list_t* _alpm_db_find_fileconflicts | ( | alpm_handle_t * | handle, |
alpm_list_t * | upgrade, | ||
alpm_list_t * | remove | ||
) |
Definition at line 382 of file conflict.c.
References _alpm_db_get_pkgcache(), _alpm_db_get_pkgfromcache(), _alpm_filelist_contains(), _alpm_log(), _alpm_lstat(), _alpm_needbackup(), ALPM_ERR_MEMORY, alpm_list_add(), alpm_list_count(), alpm_list_free(), alpm_list_to_array(), ALPM_LOG_DEBUG, alpm_pkg_get_files(), ALPM_PROGRESS_CONFLICTS_START, _alpm_filelist_t::count, __alpm_list_t::data, __alpm_handle_t::db_local, _alpm_filelist_t::files, FREELIST, _alpm_file_t::mode, __alpm_pkg_t::name, _alpm_file_t::name, __alpm_list_t::next, __alpm_handle_t::pm_errno, PROGRESS, __alpm_handle_t::root, __alpm_trans_t::skip_remove, and __alpm_handle_t::trans.
Referenced by _alpm_sync_commit().
void _alpm_fileconflict_free | ( | alpm_fileconflict_t * | conflict | ) |
Definition at line 307 of file conflict.c.
References _alpm_fileconflict_t::ctarget, _alpm_fileconflict_t::file, FREE, and _alpm_fileconflict_t::target.
Referenced by _alpm_sync_commit().
const alpm_file_t* _alpm_filelist_contains | ( | alpm_filelist_t * | filelist, |
const char * | name | ||
) |
Definition at line 315 of file conflict.c.
References _alpm_filelist_t::files, and _alpm_file_t::name.
Referenced by _alpm_db_find_fileconflicts().
alpm_list_t* _alpm_innerconflicts | ( | alpm_handle_t * | handle, |
alpm_list_t * | packages | ||
) |
Definition at line 171 of file conflict.c.
References _alpm_log(), and ALPM_LOG_DEBUG.
Referenced by _alpm_sync_prepare(), and alpm_checkconflicts().
alpm_list_t* _alpm_outerconflicts | ( | alpm_db_t * | db, |
alpm_list_t * | packages | ||
) |
Definition at line 182 of file conflict.c.
References _alpm_db_get_pkgcache(), _alpm_log(), _alpm_pkg_cmp(), alpm_list_diff(), alpm_list_free(), ALPM_LOG_DEBUG, and __alpm_db_t::handle.
Referenced by _alpm_sync_prepare().