#include "alpm.h"#include "db.h"#include "package.h"


Go to the source code of this file.
Data Structures | |
| struct | __pmconflict_t |
| struct | __pmfileconflict_t |
Functions | |
| pmconflict_t * | _alpm_conflict_new (const char *package1, const char *package2) |
| void | _alpm_conflict_free (pmconflict_t *conflict) |
| int | _alpm_conflict_isin (pmconflict_t *needle, alpm_list_t *haystack) |
| alpm_list_t * | _alpm_innerconflicts (alpm_list_t *packages) |
| alpm_list_t * | _alpm_outerconflicts (pmdb_t *db, alpm_list_t *packages) |
| alpm_list_t * | _alpm_checkconflicts (pmdb_t *db, alpm_list_t *packages) |
| alpm_list_t * | _alpm_db_find_fileconflicts (pmdb_t *db, pmtrans_t *trans, char *root) |
| void | _alpm_fileconflict_free (pmfileconflict_t *conflict) |
| alpm_list_t* _alpm_checkconflicts | ( | pmdb_t * | db, | |
| alpm_list_t * | packages | |||
| ) |
Definition at line 211 of file conflict.c.
References _alpm_innerconflicts(), _alpm_outerconflicts(), and alpm_list_join().
Referenced by _alpm_sync_prepare().


| void _alpm_conflict_free | ( | pmconflict_t * | conflict | ) |
Definition at line 58 of file conflict.c.
References FREE, __pmconflict_t::package1, and __pmconflict_t::package2.
Referenced by _alpm_sync_prepare().

| int _alpm_conflict_isin | ( | pmconflict_t * | needle, | |
| alpm_list_t * | haystack | |||
| ) |
Definition at line 65 of file conflict.c.
References ALPM_LOG_FUNC, __alpm_list_t::data, __alpm_list_t::next, __pmconflict_t::package1, and __pmconflict_t::package2.
| pmconflict_t* _alpm_conflict_new | ( | const char * | package1, | |
| const char * | package2 | |||
| ) |
Definition at line 44 of file conflict.c.
References ALPM_LOG_FUNC, MALLOC, __pmconflict_t::package1, __pmconflict_t::package2, PM_ERR_MEMORY, RET_ERR, and STRDUP.
| alpm_list_t* _alpm_db_find_fileconflicts | ( | pmdb_t * | db, | |
| pmtrans_t * | trans, | |||
| char * | root | |||
| ) |
Definition at line 334 of file conflict.c.
References _alpm_db_get_pkgfromcache(), _alpm_log(), _alpm_lstat(), alpm_list_add(), alpm_list_count(), alpm_list_find_str(), alpm_list_strdup(), ALPM_LOG_FUNC, alpm_pkg_get_files(), alpm_pkg_get_name(), __alpm_list_t::data, __pmpkg_t::files, FREELIST, __pmpkg_t::name, __alpm_list_t::next, __pmtrans_t::packages, PM_FILECONFLICT_FILESYSTEM, PM_FILECONFLICT_TARGET, PM_LOG_DEBUG, PM_TRANS_PROGRESS_CONFLICTS_START, PROGRESS, and __pmtrans_t::skip_remove.
Referenced by _alpm_add_prepare().


| void _alpm_fileconflict_free | ( | pmfileconflict_t * | conflict | ) |
Definition at line 321 of file conflict.c.
References __pmfileconflict_t::ctarget, __pmfileconflict_t::file, FREE, and __pmfileconflict_t::target.
Referenced by _alpm_add_prepare().

| alpm_list_t* _alpm_innerconflicts | ( | alpm_list_t * | packages | ) |
Definition at line 171 of file conflict.c.
References _alpm_log(), ALPM_LOG_FUNC, and PM_LOG_DEBUG.
Referenced by _alpm_add_prepare(), and _alpm_checkconflicts().


| alpm_list_t* _alpm_outerconflicts | ( | pmdb_t * | db, | |
| alpm_list_t * | packages | |||
| ) |
Definition at line 187 of file conflict.c.
References _alpm_db_get_pkgcache(), _alpm_log(), _alpm_pkg_cmp(), alpm_list_diff(), alpm_list_free(), ALPM_LOG_FUNC, and PM_LOG_DEBUG.
Referenced by _alpm_add_prepare(), and _alpm_checkconflicts().


1.5.4