dpkg 1.21.11
Data Structures | Functions
depcon.c File Reference

(e7b55c940)

#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/db-ctrl.h>
#include <dpkg/db-fsys.h>
#include "main.h"
Include dependency graph for depcon.c:

Data Structures

struct  deppossi_pkg_iterator
 
struct  cyclesofarlink
 

Functions

struct deppossi_pkg_iteratordeppossi_pkg_iter_new (struct deppossi *possi, enum which_pkgbin wpb)
 
struct pkginfodeppossi_pkg_iter_next (struct deppossi_pkg_iterator *iter)
 
void deppossi_pkg_iter_free (struct deppossi_pkg_iterator *iter)
 
bool findbreakcycle (struct pkginfo *pkg)
 
void describedepcon (struct varbuf *addto, struct dependency *dep)
 
bool depisok (struct dependency *dep, struct varbuf *whynot, struct pkginfo **canfixbyremove, struct pkginfo **canfixbytrigaw, bool allowunconfigd)
 

Function Documentation

◆ depisok()

bool depisok ( struct dependency dep,
struct varbuf whynot,
struct pkginfo **  canfixbyremove,
struct pkginfo **  canfixbytrigaw,
bool  allowunconfigd 
)

References _, pkginfo::available, pkgset::available, pkginfo::clientdata, pkginfo::configversion, dep_breaks, dep_conflicts, dep_depends, dep_enhances, dep_predepends, dep_provides, dep_recommends, dep_suggests, pkgset::depended, deppossi_pkg_iter_free(), deppossi_pkg_iter_new(), deppossi_pkg_iter_next(), describedepcon(), dpkg_version_is_informative(), dpkg_version_relate(), deppossi::ed, pkginfo::installed, pkgset::installed, internerr, perpackagestate::istobe, dependency::list, pkgset::name, deppossi::next, PKG_ISTOBE_DECONFIGURE, PKG_ISTOBE_INSTALLNEW, PKG_ISTOBE_NORMAL, PKG_ISTOBE_PREINSTALL, PKG_ISTOBE_REMOVE, pkg_name(), 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_virtual_deppossi_satisfied(), pkgbin_name(), pnaw_nonambig, deppossi_pkg_iterator::possi, deppossi::rev_next, pkginfo::set, pkginfo::status, statusstrings, dependency::type, dependency::up, deppossi::up, varbuf_add_char(), varbuf_add_str, varbuf_reset(), vdew_nonambig, deppossi::verrel, deppossi::version, pkgbin::version, versiondescribe(), versionsatisfied(), and wpb_by_istobe.

Referenced by check_breaks(), check_conflict(), and predeppackage().

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

◆ deppossi_pkg_iter_free()

void deppossi_pkg_iter_free ( struct deppossi_pkg_iterator iter)

Referenced by depisok(), and predeppackage().

Here is the caller graph for this function:

◆ deppossi_pkg_iter_new()

struct deppossi_pkg_iterator * deppossi_pkg_iter_new ( struct deppossi possi,
enum which_pkgbin  wpb 
)

References deppossi::ed, m_malloc(), pkgset::pkg, deppossi_pkg_iterator::pkg_next, deppossi_pkg_iterator::possi, and deppossi_pkg_iterator::which_pkgbin.

Referenced by depisok(), and predeppackage().

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

◆ deppossi_pkg_iter_next()

struct pkginfo * deppossi_pkg_iter_next ( struct deppossi_pkg_iterator iter)

References pkginfo::arch_next, archsatisfied(), pkginfo::available, pkginfo::clientdata, pkginfo::installed, internerr, perpackagestate::istobe, PKG_ISTOBE_INSTALLNEW, deppossi_pkg_iterator::pkg_next, deppossi_pkg_iterator::possi, deppossi_pkg_iterator::which_pkgbin, wpb_available, wpb_by_istobe, and wpb_installed.

Referenced by depisok(), and predeppackage().

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

◆ describedepcon()

void describedepcon ( struct varbuf addto,
struct dependency dep 
)

References _, varbuf::buf, dep_breaks, dep_conflicts, dep_depends, dep_enhances, dep_predepends, dep_recommends, dep_suggests, internerr, pkg_name(), pnaw_nonambig, dependency::type, dependency::up, varbuf_destroy(), varbuf_end_str(), VARBUF_INIT, varbuf_printf(), and varbufdependency().

Referenced by depisok(), and predeppackage().

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

◆ findbreakcycle()

bool findbreakcycle ( struct pkginfo pkg)

References pkginfo::clientdata, perpackagestate::color, ensure_package_clientdata(), PKG_CYCLE_WHITE, pkg_hash_iter_free(), pkg_hash_iter_new(), and pkg_hash_iter_next_pkg().

Referenced by deferred_configure(), and trigproc().

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