dpkg 1.22.7-3-g89f48
Loading...
Searching...
No Matches
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.
 
void pkg_set_status (struct pkginfo *pkg, enum pkgstatus status)
 Set the package installation status.
 
void pkg_set_eflags (struct pkginfo *pkg, enum pkgeflag eflag)
 Set the specified flags to 1 in the package error flags.
 
void pkg_clear_eflags (struct pkginfo *pkg, enum pkgeflag eflag)
 Clear the specified flags to 0 in the package error flags.
 
void pkg_reset_eflags (struct pkginfo *pkg)
 Reset the package error flags to 0.
 
void pkg_copy_eflags (struct pkginfo *pkg_dst, struct pkginfo *pkg_src)
 Copy the package error flags to another package.
 
void pkg_set_want (struct pkginfo *pkg, enum pkgwant want)
 Set the package selection status.
 

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.

Referenced by deferred_configure(), process_archive(), and removal_bulk().

Here is the caller graph for this function:

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

Referenced by process_archive().

Here is the caller graph for this function:

◆ 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(), deferred_remove(), post_postinst_tasks(), process_archive(), removal_bulk(), trig_clear_awaiters(), trig_note_pend(), and trigproc().

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(), deferred_remove(), process_archive(), removal_bulk(), and setselections().

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.