dpkg 1.21.11
Enumerations | Functions | Variables
packages.c File Reference

(affb86e43)

#include <config.h>
#include <compat.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <fcntl.h>
#include <dirent.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <dpkg/i18n.h>
#include <dpkg/dpkg.h>
#include <dpkg/dpkg-db.h>
#include <dpkg/pkg-list.h>
#include <dpkg/pkg-queue.h>
#include <dpkg/options.h>
#include <dpkg/db-ctrl.h>
#include <dpkg/db-fsys.h>
#include "main.h"
Include dependency graph for packages.c:

Enumerations

enum  found_status { FOUND_NONE = 0 , FOUND_DEFER = 1 , FOUND_FORCED = 2 , FOUND_OK = 3 }
 

Functions

void enqueue_package (struct pkginfo *pkg)
 
void enqueue_package_mark_seen (struct pkginfo *pkg)
 
int packages (const char *const *argv)
 
void process_queue (void)
 
enum dep_check breakses_ok (struct pkginfo *pkg, struct varbuf *aemsgs)
 
enum dep_check dependencies_ok (struct pkginfo *pkg, struct pkginfo *removing, struct varbuf *aemsgs)
 

Variables

enum dependtry dependtry = DEPEND_TRY_NORMAL
 
int sincenothing = 0
 

Enumeration Type Documentation

◆ found_status

Enumerator
FOUND_NONE 
FOUND_DEFER 
FOUND_FORCED 
FOUND_OK 

Function Documentation

◆ breakses_ok()

enum dep_check breakses_ok ( struct pkginfo pkg,
struct varbuf aemsgs 
)

References dbg_depcon, debug(), and DEP_CHECK_OK.

Referenced by deferred_configure().

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

◆ dependencies_ok()

enum dep_check dependencies_ok ( struct pkginfo pkg,
struct pkginfo removing,
struct varbuf aemsgs 
)

Referenced by deferred_configure(), and trigproc().

Here is the caller graph for this function:

◆ enqueue_package()

void enqueue_package ( struct pkginfo pkg)

References pkginfo::clientdata, perpackagestate::enqueued, ensure_package_clientdata(), and pkg_queue_push().

Referenced by deferred_configure(), enqueue_package_mark_seen(), ok_prermdeconfigure(), and trigproc().

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

◆ enqueue_package_mark_seen()

void enqueue_package_mark_seen ( struct pkginfo pkg)

References pkginfo::clientdata, perpackagestate::cmdline_seen, and enqueue_package().

Here is the call graph for this function:

◆ packages()

int packages ( const char *const *  argv)

References _, badusage(), checkpath(), cipaction, f_noact, f_pending, FORCE_NON_ROOT, in_force(), log_message(), modstatdb_open(), msdbrw_needsuperuser, msdbrw_readonly, msdbrw_write, cmdinfo::olong, pkg_infodb_upgrade(), and trigproc_install_hooks().

Here is the call graph for this function:

◆ process_queue()

void process_queue ( void  )

References abort_processing, act_configure, act_install, act_purge, act_remove, act_triggers, cmdinfo::arg_int, cipaction, clear_istobes(), internerr, PKG_ISTOBE_INSTALLNEW, PKG_ISTOBE_NORMAL, and PKG_ISTOBE_REMOVE.

Here is the call graph for this function:

Variable Documentation

◆ dependtry

◆ sincenothing

int sincenothing = 0