dpkg 1.22.7-3-g89f48
|
#include <config.h>
#include <compat.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <dpkg/i18n.h>
#include <dpkg/dpkg.h>
#include <dpkg/dpkg-db.h>
#include <dpkg/varbuf.h>
#include <dpkg/db-ctrl.h>
Functions | |
enum pkg_infodb_format | pkg_infodb_get_format (void) |
void | pkg_infodb_set_format (enum pkg_infodb_format version) |
bool | pkg_infodb_is_upgrading (void) |
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) |
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().
bool pkg_infodb_is_upgrading | ( | void | ) |
const char * pkg_infodb_reset_dir | ( | void | ) |
void pkg_infodb_set_format | ( | enum pkg_infodb_format | version | ) |