dpkg 1.21.11
Data Structures | Functions
db-ctrl-upgrade.c File Reference

(c192844eb)

#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. More...
 

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.

Referenced by archivefiles(), clearselections(), packages(), and setselections().

Here is the caller graph for this function: