dpkg 1.22.7-3-g89f48
|
#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/command.h>
#include <dpkg/db-fsys.h>
#include "main.h"
Functions | |
struct fsys_namenode * | namenodetouse (struct fsys_namenode *namenode, struct pkginfo *pkg, struct pkgbin *pkgbin) |
void | checkpath (void) |
Verify that some programs can be found in the PATH. | |
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) |
bool | conffile_is_disappearing (struct conffile *conff) |
Returns whether the conffile is disappearing, because it is obsolete or marked for removal on upgrade. | |
void | conffile_mark_obsolete (struct pkginfo *pkg, struct fsys_namenode *namenode) |
Mark a conffile as obsolete. | |
void | pkg_conffiles_mark_old (struct pkginfo *pkg) |
Mark all package conffiles as old. | |
void | log_action (const char *action, struct pkginfo *pkg, struct pkgbin *pkgbin) |
Variables | |
const char *const | statusstrings [] |
void checkpath | ( | void | ) |
Verify that some programs can be found in the PATH.
References _, BACKEND, command_in_path(), DIFF, FORCE_BAD_PATH, forcibleerr(), P_, RM, and warning().
Referenced by archivefiles(), and packages().
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(), process_archive(), and process_queue().
bool conffile_is_disappearing | ( | struct conffile * | conff | ) |
Returns whether the conffile is disappearing, because it is obsolete or marked for removal on upgrade.
References CONFFILE_OBSOLETE, CONFFILE_REMOVE_ON_UPGRADE, and conffile::flags.
Referenced by deferred_configure(), and dir_has_conffiles().
void conffile_mark_obsolete | ( | struct pkginfo * | pkg, |
struct fsys_namenode * | namenode | ||
) |
Mark a conffile as obsolete.
pkg | The package owning the conffile. |
namenode | The namenode for the obsolete conffile. |
References CONFFILE_OBSOLETE, pkgbin::conffiles, dbg_conff, debug(), conffile::flags, pkginfo::installed, conffile::name, fsys_namenode::name, conffile::next, pkg_name(), and pnaw_always.
bool dir_has_conffiles | ( | struct fsys_namenode * | file, |
struct pkginfo * | pkg | ||
) |
References conffile_is_disappearing(), pkgbin::conffiles, dbg_veryverbose, debug(), pkginfo::installed, conffile::name, file::name, conffile::next, pkg_name(), and pnaw_always.
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.
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.
bool force_breaks | ( | struct deppossi * | possi | ) |
References FORCE_BREAKS, ignore_depends(), in_force(), dependency::up, and deppossi::up.
Referenced by check_breaks().
bool force_conflicts | ( | struct deppossi * | possi | ) |
References FORCE_CONFLICTS, and in_force().
Referenced by check_conflict().
bool force_depends | ( | struct deppossi * | possi | ) |
References FORCE_DEPENDS, ignore_depends(), in_force(), dependency::up, and deppossi::up.
bool ignore_depends | ( | const struct pkginfo * | pkg | ) |
References ignoredependss, pkg_list::next, and pkg_list::pkg.
Referenced by force_breaks(), and force_depends().
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(), deferred_remove(), process_archive(), and trigproc().
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 tar_deferred_extract(), and tarobject().
void pkg_conffiles_mark_old | ( | struct pkginfo * | pkg | ) |
Mark all package conffiles as old.
pkg | The package owning the conffiles. |
References pkgbin::conffiles, dbg_conffdetail, debug(), FHFF_NONE, 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.
Referenced by deferred_remove(), and process_archive().
const char* const statusstrings[] |
Referenced by depisok(), and process_archive().