dpkg 1.21.11
Typedefs | Functions
Package handling primitives
Collaboration diagram for Package handling primitives:

Typedefs

typedef int pkg_sorter_func(const void *a, const void *b)
 

Functions

void pkgset_link_pkg (struct pkgset *set, struct pkginfo *pkg)
 Link a pkginfo instance into a package set. More...
 
void pkg_set_status (struct pkginfo *pkg, enum pkgstatus status)
 Set the package installation status. More...
 
void pkg_set_eflags (struct pkginfo *pkg, enum pkgeflag eflag)
 Set the specified flags to 1 in the package error flags. More...
 
void pkg_clear_eflags (struct pkginfo *pkg, enum pkgeflag eflag)
 Clear the specified flags to 0 in the package error flags. More...
 
void pkg_reset_eflags (struct pkginfo *pkg)
 Reset the package error flags to 0. More...
 
void pkg_copy_eflags (struct pkginfo *pkg_dst, struct pkginfo *pkg_src)
 Copy the package error flags to another package. More...
 
void pkg_set_want (struct pkginfo *pkg, enum pkgwant want)
 Set the package selection status. More...
 

Detailed Description

Typedef Documentation

◆ pkg_sorter_func

typedef int pkg_sorter_func(const void *a, const void *b)

Function Documentation

◆ pkg_clear_eflags()

void pkg_clear_eflags ( struct pkginfo pkg,
enum pkgeflag  eflag 
)

Clear the specified flags to 0 in the package error flags.

References pkginfo::eflag.

Referenced by cu_preinstnew(), cu_preinstupgrade(), cu_preinstverynew(), cu_prerminfavour(), cu_prermremove(), and cu_prermupgrade().

Here is the caller graph for this function:

◆ pkg_copy_eflags()

void pkg_copy_eflags ( struct pkginfo pkg_dst,
struct pkginfo pkg_src 
)

Copy the package error flags to another package.

References pkginfo::eflag.

◆ pkg_reset_eflags()

void pkg_reset_eflags ( struct pkginfo pkg)

Reset the package error flags to 0.

References pkginfo::eflag, and PKG_EFLAG_OK.

◆ pkg_set_eflags()

void pkg_set_eflags ( struct pkginfo pkg,
enum pkgeflag  eflag 
)

Set the specified flags to 1 in the package error flags.

References pkginfo::eflag.

◆ pkg_set_status()

void pkg_set_status ( struct pkginfo pkg,
enum pkgstatus  status 
)

Set the package installation status.

References pkgset::installed_instances, internerr, pkgset::name, PKG_STAT_NOTINSTALLED, pkginfo::set, pkginfo::status, and pkginfo::status_dirty.

Referenced by cu_preinstnew(), cu_preinstupgrade(), cu_preinstverynew(), deferred_configure(), post_postinst_tasks(), trig_clear_awaiters(), and trig_note_pend().

Here is the caller graph for this function:

◆ pkg_set_want()

void pkg_set_want ( struct pkginfo pkg,
enum pkgwant  want 
)

Set the package selection status.

References pkginfo::want.

Referenced by clearselections(), and deferred_remove().

Here is the caller graph for this function:

◆ pkgset_link_pkg()

void pkgset_link_pkg ( struct pkgset set,
struct pkginfo pkg 
)

Link a pkginfo instance into a package set.

Parameters
setThe package set to use.
pkgThe package to link into the set.

References pkginfo::arch_next, pkgset::pkg, and pkginfo::set.