(a4dfcc1ef)
#include <stdbool.h>
#include <dpkg/dpkg-db.h>
Go to the source code of this file.
◆ pkg_infodb_file_func
typedef void pkg_infodb_file_func(const char *filename, const char *filetype) |
◆ pkg_infodb_format
Enumerator |
---|
PKG_INFODB_FORMAT_UNKNOWN | |
PKG_INFODB_FORMAT_LEGACY | |
PKG_INFODB_FORMAT_MULTIARCH | |
PKG_INFODB_FORMAT_LAST | |
◆ pkg_infodb_foreach()
◆ pkg_infodb_get_dir()
const char * pkg_infodb_get_dir |
( |
void |
| ) |
|
◆ pkg_infodb_get_file()
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, varbuf_end_str(), and varbuf_reset().
Referenced by maintscript_fallback(), parse_filehash(), pkg_infodb_has_file(), trig_activate_packageprocessing(), write_filehash_except(), and write_filelist_except().
◆ pkg_infodb_get_format()
◆ pkg_infodb_has_file()
bool pkg_infodb_has_file |
( |
struct pkginfo * |
pkg, |
|
|
struct pkgbin * |
pkgbin, |
|
|
const char * |
name |
|
) |
| |
◆ pkg_infodb_is_upgrading()
bool pkg_infodb_is_upgrading |
( |
void |
| ) |
|
◆ pkg_infodb_reset_dir()
const char * pkg_infodb_reset_dir |
( |
void |
| ) |
|
◆ pkg_infodb_set_format()
◆ pkg_infodb_upgrade()
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:
- previous upgrade has not been completed; or
- current format is not the latest one.
Referenced by archivefiles(), clearselections(), packages(), and setselections().