dpkg 1.22.7-3-g89f48
|
Go to the source code of this file.
Typedefs | |
typedef void | pkg_infodb_file_func(const char *filename, const char *filetype) |
Enumerations | |
enum | pkg_infodb_format { PKG_INFODB_FORMAT_UNKNOWN = -1 , PKG_INFODB_FORMAT_LEGACY = 0 , PKG_INFODB_FORMAT_MULTIARCH = 1 , PKG_INFODB_FORMAT_LAST } |
Functions | |
enum pkg_infodb_format | pkg_infodb_get_format (void) |
void | pkg_infodb_set_format (enum pkg_infodb_format format) |
bool | pkg_infodb_is_upgrading (void) |
void | pkg_infodb_upgrade (void) |
Upgrade the infodb if there's the need and possibility. | |
const char * | pkg_infodb_get_dir (void) |
const char * | pkg_infodb_get_file (const struct pkginfo *pkg, const struct pkgbin *pkgbin, const char *filetype) |
const char * | pkg_infodb_reset_dir (void) |
bool | pkg_infodb_has_file (struct pkginfo *pkg, struct pkgbin *pkgbin, const char *name) |
void | pkg_infodb_foreach (struct pkginfo *pkg, struct pkgbin *pkgbin, pkg_infodb_file_func *func) |
typedef void pkg_infodb_file_func(const char *filename, const char *filetype) |
enum pkg_infodb_format |
void pkg_infodb_foreach | ( | struct pkginfo * | pkg, |
struct pkgbin * | pkgbin, | ||
pkg_infodb_file_func * | func | ||
) |
References _, varbuf::buf, cu_closedir(), dbg_stupidlyverbose, dbg_veryverbose, debug(), ehflag_normaltidy, pkgbin::multiarch, ohshite(), PKG_INFODB_FORMAT_MULTIARCH, pkg_infodb_get_dir(), pkg_infodb_get_format(), PKG_MULTIARCH_SAME, pkgbin_name(), pnaw_always, pnaw_never, pop_cleanup(), push_cleanup(), varbuf_add_dir(), varbuf_add_str, varbuf_destroy(), VARBUF_INIT, varbuf_rollback(), and varbuf_snapshot().
const char * pkg_infodb_get_dir | ( | void | ) |
References dpkg_db_get_path(), and INFODIR.
Referenced by pkg_infodb_foreach(), pkg_infodb_get_file(), pkg_infodb_reset_dir(), write_filehash_except(), and write_filelist_except().
const char * pkg_infodb_get_file | ( | const struct pkginfo * | pkg, |
const struct pkgbin * | pkgbin, | ||
const char * | filetype | ||
) |
References pkgbin::arch, varbuf::buf, pkgbin::multiarch, pkgset::name, PKG_INFODB_FORMAT_MULTIARCH, pkg_infodb_get_dir(), pkg_infodb_get_format(), PKG_MULTIARCH_SAME, pkginfo::set, varbuf_add_archqual(), varbuf_add_char(), varbuf_add_dir(), varbuf_add_str, and varbuf_reset().
Referenced by ensure_packagefiles_available(), maintscript_fallback(), parse_filehash(), pkg_infodb_has_file(), process_archive(), removal_bulk(), trig_activate_packageprocessing(), write_filehash_except(), and write_filelist_except().
enum pkg_infodb_format pkg_infodb_get_format | ( | void | ) |
References PKG_INFODB_FORMAT_UNKNOWN.
Referenced by pkg_infodb_foreach(), pkg_infodb_get_file(), and pkg_infodb_upgrade().
References _, ohshite(), and pkg_infodb_get_file().
Referenced by removal_bulk(), and write_filehash_except().
bool pkg_infodb_is_upgrading | ( | void | ) |
const char * pkg_infodb_reset_dir | ( | void | ) |
void pkg_infodb_set_format | ( | enum pkg_infodb_format | format | ) |
void pkg_infodb_upgrade | ( | void | ) |
Upgrade the infodb if there's the need and possibility.
Currently this implies, that the modstatdb was opened for writing and:
References modstatdb_get_status(), msdbrw_write, PKG_INFODB_FORMAT_MULTIARCH, pkg_infodb_get_format(), and pkg_infodb_is_upgrading().
Referenced by archivefiles(), clearselections(), packages(), and setselections().