dpkg 1.21.11
Functions | Variables
help.c File Reference

(ad2a3e1ea)

#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/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)
 
bool find_command (const char *prog)
 
void checkpath (void)
 Verify that some programs can be found in the PATH. More...
 
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)
 
void conffile_mark_obsolete (struct pkginfo *pkg, struct fsys_namenode *namenode)
 Mark a conffile as obsolete. More...
 
void pkg_conffiles_mark_old (struct pkginfo *pkg)
 Mark all package conffiles as old. More...
 
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, DEFAULTSHELL, DIFF, find_command(), 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(), and process_queue().

Here is the call graph for this function:
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 pkgbin::conffiles, dbg_conff, debug(), pkginfo::installed, conffile::name, fsys_namenode::name, conffile::next, conffile::obsolete, 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 pkgbin::conffiles, dbg_veryverbose, debug(), pkginfo::installed, conffile::name, file::name, conffile::next, conffile::obsolete, pkg_name(), pnaw_always, and conffile::remove_on_upgrade.

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:

◆ find_command()

bool find_command ( const char *  prog)

References _, varbuf::buf, file_is_exec(), ohshit(), varbuf_add_buf(), varbuf_add_char(), varbuf_add_str, varbuf_destroy(), varbuf_end_str(), VARBUF_INIT, and varbuf_reset().

Referenced by checkpath().

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

◆ force_breaks()

bool force_breaks ( struct deppossi possi)

References FORCE_BREAKS, and in_force().

Here is the call graph for this function:

◆ force_conflicts()

bool force_conflicts ( struct deppossi possi)

References FORCE_CONFLICTS, and in_force().

Here is the call graph for this function:

◆ force_depends()

bool force_depends ( struct deppossi possi)

References FORCE_DEPENDS, and in_force().

Here is the call graph for this function:

◆ ignore_depends()

bool ignore_depends ( const struct pkginfo pkg)

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

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

Here is the call 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:178
@ PKG_STAT_TRIGGERSAWAITED
Definition: dpkg-db.h:177
@ PKG_STAT_CONFIGFILES
Definition: dpkg-db.h:173
@ PKG_STAT_NOTINSTALLED
Definition: dpkg-db.h:172
@ PKG_STAT_INSTALLED
Definition: dpkg-db.h:179
@ PKG_STAT_HALFCONFIGURED
Definition: dpkg-db.h:176
@ PKG_STAT_HALFINSTALLED
Definition: dpkg-db.h:174
@ PKG_STAT_UNPACKED
Definition: dpkg-db.h:175
#define N_(str)
Definition: i18n.h:42

Referenced by depisok().