dpkg 1.21.11
|
#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/db-fsys.h>
#include "main.h"
Functions | |
struct fsys_namenode * | namenodetouse (struct fsys_namenode *namenode, struct pkginfo *pkg, struct pkgbin *pkgbin) |
bool | find_command (const char *prog) |
void | checkpath (void) |
Verify that some programs can be found in the PATH. More... | |
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) |
void | conffile_mark_obsolete (struct pkginfo *pkg, struct fsys_namenode *namenode) |
Mark a conffile as obsolete. More... | |
void | pkg_conffiles_mark_old (struct pkginfo *pkg) |
Mark all package conffiles as old. More... | |
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, DEFAULTSHELL, DIFF, find_command(), 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(), and process_queue().
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 pkgbin::conffiles, dbg_conff, debug(), pkginfo::installed, conffile::name, fsys_namenode::name, conffile::next, conffile::obsolete, pkg_name(), and pnaw_always.
bool dir_has_conffiles | ( | struct fsys_namenode * | file, |
struct pkginfo * | pkg | ||
) |
References pkgbin::conffiles, dbg_veryverbose, debug(), pkginfo::installed, conffile::name, file::name, conffile::next, conffile::obsolete, pkg_name(), pnaw_always, and conffile::remove_on_upgrade.
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 find_command | ( | const char * | prog | ) |
References _, varbuf::buf, file_is_exec(), ohshit(), varbuf_add_buf(), varbuf_add_char(), varbuf_add_str, varbuf_destroy(), varbuf_end_str(), VARBUF_INIT, and varbuf_reset().
Referenced by checkpath().
bool force_breaks | ( | struct deppossi * | possi | ) |
bool force_conflicts | ( | struct deppossi * | possi | ) |
bool force_depends | ( | struct deppossi * | possi | ) |
bool ignore_depends | ( | const struct pkginfo * | pkg | ) |
References ignoredependss, pkg_list::next, and pkg_list::pkg.
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().
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 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(), 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.
const char* const statusstrings[] |
Referenced by depisok().