libalpm
Arch Linux Package Manager Library
|
#include <archive.h>
#include <archive_entry.h>
#include "alpm.h"
#include "pkghash.h"
#include "signing.h"
Go to the source code of this file.
typedef enum _alpm_dbinfrq_t alpm_dbinfrq_t |
enum _alpm_dbinfrq_t |
enum _alpm_dbstatus_t |
int _alpm_db_add_pkgincache | ( | alpm_db_t * | db, |
alpm_pkg_t * | pkg | ||
) |
Definition at line 548 of file db.c.
References _alpm_log(), _alpm_pkg_dup(), _alpm_pkghash_add_sorted(), ALPM_LOG_DEBUG, DB_STATUS_PKGCACHE, __alpm_db_t::handle, __alpm_pkg_t::name, __alpm_db_t::pkgcache, __alpm_db_t::status, and __alpm_db_t::treename.
int _alpm_db_cmp | ( | const void * | d1, |
const void * | d2 | ||
) |
Definition at line 380 of file db.c.
References __alpm_db_t::treename.
Referenced by alpm_db_unregister().
void _alpm_db_free | ( | alpm_db_t * | db | ) |
Definition at line 336 of file db.c.
References _alpm_db_free_pkgcache(), __alpm_db_t::_path, FREE, FREELIST, __alpm_db_t::servers, and __alpm_db_t::treename.
Referenced by _alpm_db_register_local(), and _alpm_db_unregister().
void _alpm_db_free_pkgcache | ( | alpm_db_t * | db | ) |
Definition at line 500 of file db.c.
References _alpm_log(), _alpm_pkg_free(), _alpm_pkghash_free(), alpm_list_free_inner(), ALPM_LOG_DEBUG, DB_STATUS_PKGCACHE, __alpm_db_t::handle, __alpm_pkghash_t::list, __alpm_db_t::pkgcache, __alpm_db_t::status, and __alpm_db_t::treename.
Referenced by _alpm_db_free(), and alpm_db_update().
alpm_list_t* _alpm_db_get_groupcache | ( | alpm_db_t * | db | ) |
Definition at line 661 of file db.c.
References ALPM_ERR_DB_INVALID, DB_STATUS_GRPCACHE, DB_STATUS_VALID, __alpm_db_t::grpcache, __alpm_db_t::handle, RET_ERR, and __alpm_db_t::status.
Referenced by _alpm_db_get_groupfromcache(), and alpm_db_get_groupcache().
alpm_group_t* _alpm_db_get_groupfromcache | ( | alpm_db_t * | db, |
const char * | target | ||
) |
Definition at line 678 of file db.c.
References _alpm_db_get_groupcache(), __alpm_list_t::data, _alpm_group_t::name, and __alpm_list_t::next.
Referenced by alpm_db_readgroup().
alpm_list_t* _alpm_db_get_pkgcache | ( | alpm_db_t * | db | ) |
Definition at line 536 of file db.c.
References _alpm_db_get_pkgcache_hash(), and __alpm_pkghash_t::list.
Referenced by _alpm_db_find_fileconflicts(), _alpm_db_search(), _alpm_outerconflicts(), _alpm_recursedeps(), _alpm_remove_prepare(), _alpm_sync_prepare(), alpm_db_get_pkgcache(), and alpm_sync_sysupgrade().
Definition at line 519 of file db.c.
References ALPM_ERR_DB_INVALID, DB_STATUS_PKGCACHE, DB_STATUS_VALID, __alpm_db_t::handle, __alpm_db_t::pkgcache, RET_ERR, and __alpm_db_t::status.
Referenced by _alpm_db_get_pkgcache(), and _alpm_db_get_pkgfromcache().
alpm_pkg_t* _alpm_db_get_pkgfromcache | ( | alpm_db_t * | db, |
const char * | target | ||
) |
Definition at line 595 of file db.c.
References _alpm_db_get_pkgcache_hash(), and _alpm_pkghash_find().
Referenced by _alpm_check_diskspace(), _alpm_db_find_fileconflicts(), _alpm_resolvedeps(), _alpm_sync_prepare(), alpm_add_pkg(), alpm_db_get_pkg(), alpm_sync_newversion(), and alpm_sync_sysupgrade().
alpm_db_t* _alpm_db_new | ( | const char * | treename, |
int | is_local | ||
) |
Definition at line 321 of file db.c.
References CALLOC, DB_STATUS_LOCAL, __alpm_db_t::status, STRDUP, and __alpm_db_t::treename.
Referenced by _alpm_db_register_local(), and _alpm_db_register_sync().
const char* _alpm_db_path | ( | alpm_db_t * | db | ) |
Definition at line 349 of file db.c.
References _, _alpm_log(), __alpm_db_t::_path, ALPM_ERR_DB_OPEN, ALPM_ERR_MEMORY, ALPM_LOG_DEBUG, ALPM_LOG_ERROR, CALLOC, DB_STATUS_LOCAL, __alpm_handle_t::dbpath, dbpath, __alpm_db_t::handle, RET_ERR, __alpm_db_t::status, and __alpm_db_t::treename.
Referenced by _alpm_local_db_pkgpath(), alpm_db_check_pgp_signature(), and alpm_db_update().
alpm_db_t* _alpm_db_register_local | ( | alpm_handle_t * | handle | ) |
Definition at line 927 of file be_local.c.
References _alpm_db_free(), _alpm_db_new(), _alpm_log(), ALPM_ERR_DB_CREATE, ALPM_LOG_DEBUG, __alpm_handle_t::db_local, handle, __alpm_db_t::handle, local_db_ops, __alpm_db_t::ops, and __alpm_handle_t::pm_errno.
Referenced by alpm_initialize().
alpm_db_t* _alpm_db_register_sync | ( | alpm_handle_t * | handle, |
const char * | treename, | ||
alpm_siglevel_t | level | ||
) |
Definition at line 608 of file be_sync.c.
References _alpm_db_new(), _alpm_log(), ALPM_ERR_DB_CREATE, ALPM_ERR_WRONG_ARGS, alpm_list_add(), ALPM_LOG_DEBUG, ALPM_SIG_USE_DEFAULT, __alpm_handle_t::dbs_sync, handle, __alpm_db_t::handle, __alpm_db_t::ops, RET_ERR, __alpm_db_t::siglevel, and sync_db_ops.
Referenced by alpm_db_register_sync().
int _alpm_db_remove_pkgfromcache | ( | alpm_db_t * | db, |
alpm_pkg_t * | pkg | ||
) |
Definition at line 569 of file db.c.
References _alpm_log(), _alpm_pkg_free(), _alpm_pkghash_remove(), ALPM_LOG_DEBUG, DB_STATUS_PKGCACHE, __alpm_db_t::handle, __alpm_pkg_t::name, __alpm_db_t::pkgcache, __alpm_db_t::status, and __alpm_db_t::treename.
Referenced by _alpm_remove_single_package().
alpm_list_t* _alpm_db_search | ( | alpm_db_t * | db, |
const alpm_list_t * | needles | ||
) |
Definition at line 387 of file db.c.
References _alpm_db_get_pkgcache(), _alpm_log(), ALPM_ERR_INVALID_REGEX, alpm_list_add(), alpm_list_copy(), alpm_list_free(), ALPM_LOG_DEBUG, alpm_pkg_get_desc(), alpm_pkg_get_groups(), alpm_pkg_get_provides(), __alpm_list_t::data, __alpm_db_t::handle, __alpm_pkg_t::name, _alpm_depend_t::name, __alpm_list_t::next, and RET_ERR.
Referenced by alpm_db_search().
char* _alpm_local_db_pkgpath | ( | alpm_db_t * | db, |
alpm_pkg_t * | info, | ||
const char * | filename | ||
) |
Definition at line 474 of file be_local.c.
References _alpm_db_path(), ALPM_ERR_MEMORY, dbpath, __alpm_db_t::handle, MALLOC, __alpm_pkg_t::name, RET_ERR, and __alpm_pkg_t::version.
Referenced by _alpm_local_db_prepare(), _alpm_local_db_remove(), _alpm_local_db_write(), and _alpm_remove_single_package().
int _alpm_local_db_prepare | ( | alpm_db_t * | db, |
alpm_pkg_t * | info | ||
) |
Definition at line 710 of file be_local.c.
References _, _alpm_local_db_pkgpath(), _alpm_log(), ALPM_LOG_ERROR, and __alpm_db_t::handle.
int _alpm_local_db_remove | ( | alpm_db_t * | db, |
alpm_pkg_t * | info | ||
) |
Definition at line 907 of file be_local.c.
References _alpm_local_db_pkgpath(), and _alpm_rmrf().
Referenced by _alpm_remove_single_package().
int _alpm_local_db_write | ( | alpm_db_t * | db, |
alpm_pkg_t * | info, | ||
alpm_dbinfrq_t | inforeq | ||
) |
Definition at line 734 of file be_local.c.
References _, _alpm_local_db_pkgpath(), _alpm_log(), alpm_dep_compute_string(), ALPM_LOG_DEBUG, ALPM_LOG_ERROR, __alpm_pkg_t::arch, __alpm_pkg_t::backup, __alpm_pkg_t::builddate, __alpm_pkg_t::conflicts, _alpm_filelist_t::count, __alpm_list_t::data, DB_STATUS_LOCAL, __alpm_pkg_t::depends, __alpm_pkg_t::desc, __alpm_pkg_t::files, _alpm_filelist_t::files, __alpm_pkg_t::groups, __alpm_db_t::handle, _alpm_backup_t::hash, INFRQ_DESC, INFRQ_FILES, __alpm_pkg_t::installdate, __alpm_pkg_t::isize, __alpm_pkg_t::licenses, __alpm_pkg_t::name, _alpm_file_t::name, _alpm_backup_t::name, __alpm_list_t::next, __alpm_pkg_t::optdepends, __alpm_pkg_t::packager, __alpm_pkg_t::provides, __alpm_pkg_t::reason, __alpm_pkg_t::replaces, __alpm_db_t::status, __alpm_pkg_t::url, and __alpm_pkg_t::version.
Referenced by alpm_db_set_pkgreason().