dpkg 1.22.7-3-g89f48
Loading...
Searching...
No Matches
Functions | Variables
help.c File Reference

(17456a341)

#include <config.h>
#include <compat.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <dpkg/i18n.h>
#include <dpkg/dpkg.h>
#include <dpkg/dpkg-db.h>
#include <dpkg/path.h>
#include <dpkg/file.h>
#include <dpkg/command.h>
#include <dpkg/db-fsys.h>
#include "main.h"
Include dependency graph for help.c:

Functions

struct fsys_namenodenamenodetouse (struct fsys_namenode *namenode, struct pkginfo *pkg, struct pkgbin *pkgbin)
 
void checkpath (void)
 Verify that some programs can be found in the PATH.
 
bool ignore_depends (const struct pkginfo *pkg)
 
bool force_depends (struct deppossi *possi)
 
bool force_breaks (struct deppossi *possi)
 
bool force_conflicts (struct deppossi *possi)
 
void clear_istobes (void)
 
bool dir_has_conffiles (struct fsys_namenode *file, struct pkginfo *pkg)
 
bool dir_is_used_by_others (struct fsys_namenode *file, struct pkginfo *pkg)
 
bool dir_is_used_by_pkg (struct fsys_namenode *file, struct pkginfo *pkg, struct fsys_namenode_list *list)
 
bool conffile_is_disappearing (struct conffile *conff)
 Returns whether the conffile is disappearing, because it is obsolete or marked for removal on upgrade.
 
void conffile_mark_obsolete (struct pkginfo *pkg, struct fsys_namenode *namenode)
 Mark a conffile as obsolete.
 
void pkg_conffiles_mark_old (struct pkginfo *pkg)
 Mark all package conffiles as old.
 
void log_action (const char *action, struct pkginfo *pkg, struct pkgbin *pkgbin)
 

Variables

const char *const statusstrings []
 

Function Documentation

◆ checkpath()

void checkpath ( void  )

Verify that some programs can be found in the PATH.

References _, BACKEND, command_in_path(), DIFF, FORCE_BAD_PATH, forcibleerr(), P_, RM, and warning().

Referenced by archivefiles(), and packages().

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

◆ clear_istobes()

void clear_istobes ( void  )

References pkginfo::clientdata, ensure_package_clientdata(), perpackagestate::istobe, pkg_hash_iter_free(), pkg_hash_iter_new(), pkg_hash_iter_next_pkg(), PKG_ISTOBE_NORMAL, and perpackagestate::replacingfilesandsaid.

Referenced by predeppackage(), process_archive(), and process_queue().

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

◆ conffile_is_disappearing()

bool conffile_is_disappearing ( struct conffile conff)

Returns whether the conffile is disappearing, because it is obsolete or marked for removal on upgrade.

References CONFFILE_OBSOLETE, CONFFILE_REMOVE_ON_UPGRADE, and conffile::flags.

Referenced by deferred_configure(), and dir_has_conffiles().

Here is the caller graph for this function:

◆ conffile_mark_obsolete()

void conffile_mark_obsolete ( struct pkginfo pkg,
struct fsys_namenode namenode 
)

Mark a conffile as obsolete.

Parameters
pkgThe package owning the conffile.
namenodeThe namenode for the obsolete conffile.

References CONFFILE_OBSOLETE, pkgbin::conffiles, dbg_conff, debug(), conffile::flags, pkginfo::installed, conffile::name, fsys_namenode::name, conffile::next, pkg_name(), and pnaw_always.

Here is the call graph for this function:

◆ dir_has_conffiles()

bool dir_has_conffiles ( struct fsys_namenode file,
struct pkginfo pkg 
)

References conffile_is_disappearing(), pkgbin::conffiles, dbg_veryverbose, debug(), pkginfo::installed, conffile::name, file::name, conffile::next, pkg_name(), and pnaw_always.

Here is the call graph for this function:

◆ dir_is_used_by_others()

bool dir_is_used_by_others ( struct fsys_namenode file,
struct pkginfo pkg 
)

References dbg_veryverbose, debug(), fsys_node_pkgs_iter_free(), fsys_node_pkgs_iter_new(), fsys_node_pkgs_iter_next(), file::name, pkg_name(), and pnaw_always.

Here is the call graph for this function:

◆ dir_is_used_by_pkg()

bool dir_is_used_by_pkg ( struct fsys_namenode file,
struct pkginfo pkg,
struct fsys_namenode_list list 
)

References dbg_veryverbose, debug(), fsys_namenode::name, file::name, fsys_namenode_list::namenode, fsys_namenode_list::next, pkg_name(), and pnaw_always.

Here is the call graph for this function:

◆ force_breaks()

bool force_breaks ( struct deppossi possi)

References FORCE_BREAKS, ignore_depends(), in_force(), dependency::up, and deppossi::up.

Referenced by check_breaks().

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

◆ force_conflicts()

bool force_conflicts ( struct deppossi possi)

References FORCE_CONFLICTS, and in_force().

Referenced by check_conflict().

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

◆ force_depends()

bool force_depends ( struct deppossi possi)

References FORCE_DEPENDS, ignore_depends(), in_force(), dependency::up, and deppossi::up.

Here is the call graph for this function:

◆ ignore_depends()

bool ignore_depends ( const struct pkginfo pkg)

References ignoredependss, pkg_list::next, and pkg_list::pkg.

Referenced by force_breaks(), and force_depends().

Here is the caller graph for this function:

◆ log_action()

void log_action ( const char *  action,
struct pkginfo pkg,
struct pkgbin pkgbin 
)

References pkginfo::available, pkginfo::installed, log_message(), pkgbin_name(), pnaw_always, pnaw_nonambig, statusfd_send(), vdew_nonambig, pkgbin::version, and versiondescribe_c().

Referenced by deferred_configure(), deferred_remove(), process_archive(), and trigproc().

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

◆ namenodetouse()

struct fsys_namenode * namenodetouse ( struct fsys_namenode namenode,
struct pkginfo pkg,
struct pkgbin pkgbin 
)

References fsys_diversion::camefrom, dbg_eachfile, debug(), fsys_namenode::divert, pkgset::name, fsys_namenode::name, pkgbin_name(), fsys_diversion::pkgset, pnaw_always, pkginfo::set, and fsys_diversion::useinstead.

Referenced by tar_deferred_extract(), and tarobject().

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

◆ pkg_conffiles_mark_old()

void pkg_conffiles_mark_old ( struct pkginfo pkg)

Mark all package conffiles as old.

Parameters
pkgThe package owning the conffiles.

References pkgbin::conffiles, dbg_conffdetail, debug(), FHFF_NONE, fsys_namenode::flags, FNNF_OLD_CONFF, fsys_hash_find_node(), conffile::hash, pkginfo::installed, conffile::name, fsys_namenode::name, conffile::next, and fsys_namenode::oldhash.

Referenced by deferred_remove(), and process_archive().

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

Variable Documentation

◆ statusstrings

const char* const statusstrings[]
Initial value:
= {
[PKG_STAT_NOTINSTALLED] = N_("not installed"),
[PKG_STAT_CONFIGFILES] = N_("not installed but configs remain"),
[PKG_STAT_HALFINSTALLED] = N_("broken due to failed removal or installation"),
[PKG_STAT_UNPACKED] = N_("unpacked but not configured"),
[PKG_STAT_HALFCONFIGURED] = N_("broken due to postinst failure"),
[PKG_STAT_TRIGGERSAWAITED] = N_("awaiting trigger processing by another package"),
[PKG_STAT_TRIGGERSPENDING] = N_("triggered"),
[PKG_STAT_INSTALLED] = N_("installed")
}
@ PKG_STAT_TRIGGERSPENDING
Definition dpkg-db.h:186
@ PKG_STAT_TRIGGERSAWAITED
Definition dpkg-db.h:185
@ PKG_STAT_CONFIGFILES
Definition dpkg-db.h:181
@ PKG_STAT_NOTINSTALLED
Definition dpkg-db.h:180
@ PKG_STAT_INSTALLED
Definition dpkg-db.h:187
@ PKG_STAT_HALFCONFIGURED
Definition dpkg-db.h:184
@ PKG_STAT_HALFINSTALLED
Definition dpkg-db.h:182
@ PKG_STAT_UNPACKED
Definition dpkg-db.h:183
#define N_(str)
Definition i18n.h:42

Referenced by depisok(), and process_archive().