|
dpkg 1.22.7-3-g89f48
|
#include <config.h>#include <compat.h>#include <sys/types.h>#include <sys/stat.h>#include <errno.h>#include <string.h>#include <unistd.h>#include <stdio.h>#include <stdlib.h>#include <stdbool.h>#include <dpkg/i18n.h>#include <dpkg/dpkg.h>#include <dpkg/dpkg-db.h>#include <dpkg/pkg-array.h>#include <dpkg/pkg-show.h>#include <dpkg/dir.h>#include <dpkg/parsedump.h>Functions | |
| void | w_name (struct varbuf *vb, const struct pkginfo *pkg, const struct pkgbin *pkgbin, enum fwriteflags flags, const struct fieldinfo *fip) |
| void | w_version (struct varbuf *vb, const struct pkginfo *pkg, const struct pkgbin *pkgbin, enum fwriteflags flags, const struct fieldinfo *fip) |
| void | w_configversion (struct varbuf *vb, const struct pkginfo *pkg, const struct pkgbin *pkgbin, enum fwriteflags flags, const struct fieldinfo *fip) |
| void | w_null (struct varbuf *vb, const struct pkginfo *pkg, const struct pkgbin *pkgbin, enum fwriteflags flags, const struct fieldinfo *fip) |
| void | w_section (struct varbuf *vb, const struct pkginfo *pkg, const struct pkgbin *pkgbin, enum fwriteflags flags, const struct fieldinfo *fip) |
| void | w_charfield (struct varbuf *vb, const struct pkginfo *pkg, const struct pkgbin *pkgbin, enum fwriteflags flags, const struct fieldinfo *fip) |
| void | w_archives (struct varbuf *vb, const struct pkginfo *pkg, const struct pkgbin *pkgbin, enum fwriteflags flags, const struct fieldinfo *fip) |
| void | w_booleandefno (struct varbuf *vb, const struct pkginfo *pkg, const struct pkgbin *pkgbin, enum fwriteflags flags, const struct fieldinfo *fip) |
| void | w_multiarch (struct varbuf *vb, const struct pkginfo *pkg, const struct pkgbin *pkgbin, enum fwriteflags flags, const struct fieldinfo *fip) |
| void | w_architecture (struct varbuf *vb, const struct pkginfo *pkg, const struct pkgbin *pkgbin, enum fwriteflags flags, const struct fieldinfo *fip) |
| void | w_priority (struct varbuf *vb, const struct pkginfo *pkg, const struct pkgbin *pkgbin, enum fwriteflags flags, const struct fieldinfo *fip) |
| void | w_status (struct varbuf *vb, const struct pkginfo *pkg, const struct pkgbin *pkgbin, enum fwriteflags flags, const struct fieldinfo *fip) |
| void | varbufdependency (struct varbuf *vb, struct dependency *dep) |
| void | w_dependency (struct varbuf *vb, const struct pkginfo *pkg, const struct pkgbin *pkgbin, enum fwriteflags flags, const struct fieldinfo *fip) |
| void | w_conffiles (struct varbuf *vb, const struct pkginfo *pkg, const struct pkgbin *pkgbin, enum fwriteflags flags, const struct fieldinfo *fip) |
| void | w_trigpend (struct varbuf *vb, const struct pkginfo *pkg, const struct pkgbin *pkgbin, enum fwriteflags flags, const struct fieldinfo *fip) |
| void | w_trigaw (struct varbuf *vb, const struct pkginfo *pkg, const struct pkgbin *pkgbin, enum fwriteflags flags, const struct fieldinfo *fip) |
| void | varbuf_add_arbfield (struct varbuf *vb, const struct arbitraryfield *arbfield, enum fwriteflags flags) |
| void | varbuf_stanza (struct varbuf *vb, const struct pkginfo *pkg, const struct pkgbin *pkgbin) |
| void | write_stanza (FILE *file, const char *filename, const struct pkginfo *pkg, const struct pkgbin *pkgbin) |
| void | writedb_stanzas (FILE *fp, const char *filename, enum writedb_flags flags) |
| void | writedb (const char *filename, enum writedb_flags flags) |
| void w_architecture | ( | struct varbuf * | vb, |
| const struct pkginfo * | pkg, | ||
| const struct pkgbin * | pkgbin, | ||
| enum fwriteflags | flags, | ||
| const struct fieldinfo * | fip | ||
| ) |
References pkgbin::arch, DPKG_ARCH_EMPTY, DPKG_ARCH_NONE, fw_printheader, dpkg_arch::name, dpkg_arch::type, varbuf_add_char(), and varbuf_add_str.
| void w_archives | ( | struct varbuf * | vb, |
| const struct pkginfo * | pkg, | ||
| const struct pkgbin * | pkgbin, | ||
| enum fwriteflags | flags, | ||
| const struct fieldinfo * | fip | ||
| ) |
References pkginfo::archives, pkginfo::available, fw_printheader, fieldinfo::integer, fieldinfo::name, archivedetails::next, STRUCTFIELD, varbuf_add_char(), and varbuf_add_str.
| void w_booleandefno | ( | struct varbuf * | vb, |
| const struct pkginfo * | pkg, | ||
| const struct pkgbin * | pkgbin, | ||
| enum fwriteflags | flags, | ||
| const struct fieldinfo * | fip | ||
| ) |
References fw_printheader, fieldinfo::integer, STRUCTFIELD, varbuf_add_char(), and varbuf_add_str.
| void w_charfield | ( | struct varbuf * | vb, |
| const struct pkginfo * | pkg, | ||
| const struct pkgbin * | pkgbin, | ||
| enum fwriteflags | flags, | ||
| const struct fieldinfo * | fip | ||
| ) |
References fw_printheader, fieldinfo::integer, STRUCTFIELD, varbuf_add_char(), and varbuf_add_str.
| void w_conffiles | ( | struct varbuf * | vb, |
| const struct pkginfo * | pkg, | ||
| const struct pkgbin * | pkgbin, | ||
| enum fwriteflags | flags, | ||
| const struct fieldinfo * | fip | ||
| ) |
References pkginfo::available, CONFFILE_OBSOLETE, CONFFILE_REMOVE_ON_UPGRADE, pkgbin::conffiles, conffile::flags, fw_printheader, conffile::hash, conffile::name, conffile::next, varbuf_add_char(), and varbuf_add_str.
| void w_configversion | ( | struct varbuf * | vb, |
| const struct pkginfo * | pkg, | ||
| const struct pkgbin * | pkgbin, | ||
| enum fwriteflags | flags, | ||
| const struct fieldinfo * | fip | ||
| ) |
References pkginfo::configversion, dpkg_version_is_informative(), fw_printheader, pkginfo::installed, PKG_STAT_INSTALLED, PKG_STAT_NOTINSTALLED, PKG_STAT_TRIGGERSPENDING, pkginfo::status, varbuf_add_char(), varbuf_add_str, varbufversion(), and vdew_nonambig.
| void w_dependency | ( | struct varbuf * | vb, |
| const struct pkginfo * | pkg, | ||
| const struct pkgbin * | pkgbin, | ||
| enum fwriteflags | flags, | ||
| const struct fieldinfo * | fip | ||
| ) |
References pkgbin::depends, fw_printheader, internerr, pkgbin_name_const(), pnaw_always, dependency::type, varbuf_add_char(), varbuf_add_str, and varbufdependency().
| void w_multiarch | ( | struct varbuf * | vb, |
| const struct pkginfo * | pkg, | ||
| const struct pkgbin * | pkgbin, | ||
| enum fwriteflags | flags, | ||
| const struct fieldinfo * | fip | ||
| ) |
References fw_printheader, fieldinfo::integer, multiarchinfos, archivedetails::name, STRUCTFIELD, varbuf_add_char(), and varbuf_add_str.
| void w_name | ( | struct varbuf * | vb, |
| const struct pkginfo * | pkg, | ||
| const struct pkgbin * | pkgbin, | ||
| enum fwriteflags | flags, | ||
| const struct fieldinfo * | fip | ||
| ) |
References fw_printheader, internerr, pkgset::name, pkginfo::set, varbuf_add_char(), and varbuf_add_str.
| void w_null | ( | struct varbuf * | vb, |
| const struct pkginfo * | pkg, | ||
| const struct pkgbin * | pkgbin, | ||
| enum fwriteflags | flags, | ||
| const struct fieldinfo * | fip | ||
| ) |
| void w_priority | ( | struct varbuf * | vb, |
| const struct pkginfo * | pkg, | ||
| const struct pkgbin * | pkgbin, | ||
| enum fwriteflags | flags, | ||
| const struct fieldinfo * | fip | ||
| ) |
References fw_printheader, internerr, PKG_PRIO_UNKNOWN, pkg_priority_name(), pkgbin_name_const(), pnaw_always, pkginfo::priority, varbuf_add_char(), and varbuf_add_str.
| void w_section | ( | struct varbuf * | vb, |
| const struct pkginfo * | pkg, | ||
| const struct pkgbin * | pkgbin, | ||
| enum fwriteflags | flags, | ||
| const struct fieldinfo * | fip | ||
| ) |
References fw_printheader, pkginfo::section, varbuf_add_char(), and varbuf_add_str.
| void w_status | ( | struct varbuf * | vb, |
| const struct pkginfo * | pkg, | ||
| const struct pkgbin * | pkgbin, | ||
| enum fwriteflags | flags, | ||
| const struct fieldinfo * | fip | ||
| ) |
References pkginfo::eflag, fw_printheader, pkginfo::head, pkginfo::installed, internerr, pkg_eflag_name(), PKG_EFLAG_REINSTREQ, PKG_STAT_CONFIGFILES, PKG_STAT_HALFCONFIGURED, PKG_STAT_HALFINSTALLED, PKG_STAT_INSTALLED, PKG_STAT_NOTINSTALLED, PKG_STAT_TRIGGERSAWAITED, PKG_STAT_TRIGGERSPENDING, PKG_STAT_UNPACKED, pkg_status_name(), pkg_want_name(), PKG_WANT_PURGE, pkgbin_name_const(), pnaw_always, pkginfo::status, pkginfo::trigaw, pkginfo::trigpend_head, varbuf_add_char(), varbuf_add_str, and pkginfo::want.
| void w_trigaw | ( | struct varbuf * | vb, |
| const struct pkginfo * | pkg, | ||
| const struct pkgbin * | pkgbin, | ||
| enum fwriteflags | flags, | ||
| const struct fieldinfo * | fip | ||
| ) |
References pkginfo::available, fw_printheader, pkginfo::head, pkginfo::installed, internerr, trigaw::next, trigaw::pend, PKG_STAT_CONFIGFILES, PKG_STAT_TRIGGERSAWAITED, pkg_status_name(), pkgbin_name_const(), pnaw_always, pnaw_nonambig, trigaw::sameaw, pkginfo::status, pkginfo::trigaw, varbuf_add_char(), varbuf_add_pkgbin_name(), and varbuf_add_str.
| void w_trigpend | ( | struct varbuf * | vb, |
| const struct pkginfo * | pkg, | ||
| const struct pkgbin * | pkgbin, | ||
| enum fwriteflags | flags, | ||
| const struct fieldinfo * | fip | ||
| ) |
References pkginfo::available, fw_printheader, internerr, trigpend::name, trigpend::next, PKG_STAT_TRIGGERSAWAITED, PKG_STAT_TRIGGERSPENDING, pkg_status_name(), pkgbin_name_const(), pnaw_always, pkginfo::status, pkginfo::trigpend_head, varbuf_add_char(), and varbuf_add_str.
| void w_version | ( | struct varbuf * | vb, |
| const struct pkginfo * | pkg, | ||
| const struct pkgbin * | pkgbin, | ||
| enum fwriteflags | flags, | ||
| const struct fieldinfo * | fip | ||
| ) |
References dpkg_version_is_informative(), fw_printheader, varbuf_add_char(), varbuf_add_str, varbufversion(), vdew_nonambig, and pkgbin::version.