be_files.c File Reference

#include "config.h"
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <stdint.h>
#include <sys/stat.h>
#include <dirent.h>
#include <ctype.h>
#include <time.h>
#include <limits.h>
#include <locale.h>
#include "db.h"
#include "alpm_list.h"
#include "log.h"
#include "util.h"
#include "alpm.h"
#include "error.h"
#include "handle.h"
#include "package.h"
#include "delta.h"
#include "deps.h"

Include dependency graph for be_files.c:

Go to the source code of this file.

Functions

int _alpm_db_install (pmdb_t *db, const char *dbfile)
int _alpm_db_open (pmdb_t *db)
void _alpm_db_close (pmdb_t *db)
void _alpm_db_rewind (pmdb_t *db)
pmpkg_t_alpm_db_scan (pmdb_t *db, const char *target)
int _alpm_db_read (pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq)
int _alpm_db_write (pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq)
int _alpm_db_remove (pmdb_t *db, pmpkg_t *info)
time_t _alpm_db_getlastupdate (const pmdb_t *db)
int _alpm_db_setlastupdate (const pmdb_t *db, time_t time)


Function Documentation

void _alpm_db_close ( pmdb_t db  ) 

Definition at line 84 of file be_files.c.

References ALPM_LOG_FUNC, and __pmdb_t::handle.

time_t _alpm_db_getlastupdate ( const pmdb_t db  ) 

Definition at line 747 of file be_files.c.

References ALPM_LOG_FUNC, and __pmdb_t::path.

Referenced by alpm_db_update().

Here is the caller graph for this function:

int _alpm_db_install ( pmdb_t db,
const char *  dbfile 
)

Definition at line 52 of file be_files.c.

References _alpm_log(), _alpm_unpack(), ALPM_LOG_FUNC, __pmdb_t::path, PM_ERR_SYSTEM, PM_LOG_DEBUG, and RET_ERR.

Referenced by alpm_db_update().

Here is the call graph for this function:

Here is the caller graph for this function:

int _alpm_db_open ( pmdb_t db  ) 

Definition at line 67 of file be_files.c.

References _alpm_log(), ALPM_LOG_FUNC, __pmdb_t::handle, __pmdb_t::path, PM_ERR_DB_NULL, PM_ERR_DB_OPEN, PM_LOG_DEBUG, and RET_ERR.

Referenced by _alpm_db_register_local(), and _alpm_db_register_sync().

Here is the call graph for this function:

Here is the caller graph for this function:

int _alpm_db_read ( pmdb_t db,
pmpkg_t info,
pmdbinfrq_t  inforeq 
)

Definition at line 248 of file be_files.c.

References _, _alpm_delta_parse(), _alpm_log(), _alpm_strtrim(), alpm_list_add(), ALPM_LOG_FUNC, alpm_splitdep(), __pmpkg_t::arch, __pmpkg_t::backup, __pmpkg_t::builddate, __pmpkg_t::conflicts, __pmpkg_t::deltas, __pmpkg_t::depends, __pmpkg_t::desc, __pmpkg_t::filename, __pmpkg_t::files, __pmpkg_t::force, __pmpkg_t::groups, __pmpkg_t::infolevel, INFRQ_DELTAS, INFRQ_DEPENDS, INFRQ_DESC, INFRQ_FILES, INFRQ_SCRIPTLET, __pmpkg_t::installdate, __pmpkg_t::isize, __pmpkg_t::licenses, __pmpkg_t::md5sum, __pmpkg_t::name, __pmpkg_t::optdepends, __pmpkg_t::origin, __pmpkg_t::packager, __pmdb_t::path, PKG_FROM_FILE, PM_ERR_DB_NULL, PM_LOG_DEBUG, PM_LOG_ERROR, PM_LOG_FUNCTION, __pmpkg_t::provides, __pmpkg_t::reason, __pmpkg_t::replaces, RET_ERR, __pmpkg_t::scriptlet, __pmpkg_t::size, STRDUP, __pmdb_t::treename, __pmpkg_t::url, and __pmpkg_t::version.

Referenced by _alpm_db_scan(), _alpm_pkg_compare_versions(), alpm_pkg_get_arch(), alpm_pkg_get_backup(), alpm_pkg_get_builddate(), alpm_pkg_get_conflicts(), alpm_pkg_get_deltas(), alpm_pkg_get_depends(), alpm_pkg_get_desc(), alpm_pkg_get_filename(), alpm_pkg_get_files(), alpm_pkg_get_groups(), alpm_pkg_get_installdate(), alpm_pkg_get_isize(), alpm_pkg_get_licenses(), alpm_pkg_get_md5sum(), alpm_pkg_get_name(), alpm_pkg_get_optdepends(), alpm_pkg_get_packager(), alpm_pkg_get_provides(), alpm_pkg_get_reason(), alpm_pkg_get_replaces(), alpm_pkg_get_size(), alpm_pkg_get_url(), alpm_pkg_get_version(), and alpm_pkg_has_scriptlet().

Here is the call graph for this function:

Here is the caller graph for this function:

int _alpm_db_remove ( pmdb_t db,
pmpkg_t info 
)

Definition at line 725 of file be_files.c.

References _alpm_rmrf(), ALPM_LOG_FUNC, __pmpkg_t::name, __pmdb_t::path, PM_ERR_DB_NULL, RET_ERR, and __pmpkg_t::version.

Referenced by _alpm_remove_commit(), and alpm_db_update().

Here is the call graph for this function:

Here is the caller graph for this function:

void _alpm_db_rewind ( pmdb_t db  ) 

Definition at line 98 of file be_files.c.

References ALPM_LOG_FUNC, and __pmdb_t::handle.

Referenced by _alpm_db_load_pkgcache().

Here is the caller graph for this function:

pmpkg_t* _alpm_db_scan ( pmdb_t db,
const char *  target 
)

Definition at line 148 of file be_files.c.

References _, _alpm_db_read(), _alpm_log(), _alpm_pkg_free(), _alpm_pkg_new(), ALPM_LOG_FUNC, alpm_pkg_free(), __pmpkg_t::db, FREE, __pmdb_t::handle, INFRQ_BASE, __pmpkg_t::origin, __pmpkg_t::origin_data, __pmdb_t::path, PKG_FROM_CACHE, PM_ERR_DB_NULL, PM_LOG_DEBUG, PM_LOG_ERROR, RET_ERR, and STRDUP.

Referenced by _alpm_db_load_pkgcache(), _alpm_remove_loadtarget(), and _alpm_remove_prepare().

Here is the call graph for this function:

Here is the caller graph for this function:

int _alpm_db_setlastupdate ( const pmdb_t db,
time_t  time 
)

Definition at line 777 of file be_files.c.

References ALPM_LOG_FUNC, and __pmdb_t::path.

Referenced by alpm_db_update().

Here is the caller graph for this function:

int _alpm_db_write ( pmdb_t db,
pmpkg_t info,
pmdbinfrq_t  inforeq 
)

Definition at line 526 of file be_files.c.

References _, _alpm_log(), alpm_dep_get_string(), ALPM_LOG_FUNC, __pmpkg_t::arch, __pmpkg_t::backup, __pmpkg_t::builddate, __pmpkg_t::conflicts, __alpm_list_t::data, __pmpkg_t::depends, __pmpkg_t::desc, __pmpkg_t::files, __pmpkg_t::force, __pmpkg_t::groups, INFRQ_DEPENDS, INFRQ_DESC, INFRQ_FILES, __pmpkg_t::installdate, __pmpkg_t::isize, __pmpkg_t::licenses, __pmpkg_t::md5sum, __pmpkg_t::name, __alpm_list_t::next, __pmpkg_t::optdepends, __pmpkg_t::packager, __pmdb_t::path, PM_LOG_DEBUG, PM_LOG_ERROR, __pmpkg_t::provides, __pmpkg_t::reason, __pmpkg_t::replaces, __pmpkg_t::size, __pmdb_t::treename, __pmpkg_t::url, and __pmpkg_t::version.

Here is the call graph for this function:


Generated on Mon Jan 14 23:54:37 2008 for libalpm by  doxygen 1.5.4