dpkg 1.22.7-3-g89f48
Loading...
Searching...
No Matches
Data Structures | Functions
db-ctrl-upgrade.c File Reference

(ae03bfd28)

#include <config.h>
#include <compat.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
#include <dpkg/i18n.h>
#include <dpkg/dpkg.h>
#include <dpkg/dpkg-db.h>
#include <dpkg/fsys.h>
#include <dpkg/db-ctrl.h>
#include <dpkg/path.h>
#include <dpkg/dir.h>
Include dependency graph for db-ctrl-upgrade.c:

Data Structures

struct  rename_node
 

Functions

void pkg_infodb_upgrade (void)
 Upgrade the infodb if there's the need and possibility.
 

Function Documentation

◆ 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.

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().

Here is the call graph for this function:
Here is the caller graph for this function: