|
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/debug.h>#include <dpkg/dpkg.h>#include <dpkg/dpkg-db.h>#include <dpkg/pkg.h>#include <dpkg/subproc.h>#include <dpkg/command.h>#include <dpkg/triglib.h>#include <dpkg/db-ctrl.h>#include <dpkg/db-fsys.h>#include "main.h"Functions | |
| void | post_postinst_tasks (struct pkginfo *pkg, enum pkgstatus new_status) |
| int | maintscript_installed (struct pkginfo *pkg, const char *scriptname, const char *desc,...) |
| int | maintscript_postinst (struct pkginfo *pkg,...) |
| int | maintscript_new (struct pkginfo *pkg, const char *scriptname, const char *desc, const char *cidir, char *cidirrest,...) |
| int | maintscript_fallback (struct pkginfo *pkg, const char *scriptname, const char *desc, const char *cidir, char *cidirrest, const char *ifok, const char *iffallback) |
| int maintscript_fallback | ( | struct pkginfo * | pkg, |
| const char * | scriptname, | ||
| const char * | desc, | ||
| const char * | cidir, | ||
| char * | cidirrest, | ||
| const char * | ifok, | ||
| const char * | iffallback | ||
| ) |
References _, pkginfo::available, command_add_args(), command_destroy(), command_init(), dbg_scripts, debug(), pkginfo::installed, m_asprintf(), command::name, notice(), ohshit(), ohshite(), pkg_infodb_get_file(), pkg_name(), pnaw_nonambig, SUBPROC_WARN, vdew_nonambig, pkgbin::version, versiondescribe(), and warning().
Referenced by process_archive().
| int maintscript_installed | ( | struct pkginfo * | pkg, |
| const char * | scriptname, | ||
| const char * | desc, | ||
| ... | |||
| ) |
References args.
Referenced by cu_postrmupgrade(), deferred_remove(), and process_archive().
| int maintscript_new | ( | struct pkginfo * | pkg, |
| const char * | scriptname, | ||
| const char * | desc, | ||
| const char * | cidir, | ||
| char * | cidirrest, | ||
| ... | |||
| ) |
References _, args, pkginfo::available, command_add_arg(), command_add_argv(), command_destroy(), command_init(), dbg_scripts, debug(), m_asprintf(), ohshite(), pkg_name(), and pnaw_nonambig.
Referenced by cu_preinstnew(), cu_preinstupgrade(), cu_preinstverynew(), and process_archive().
| int maintscript_postinst | ( | struct pkginfo * | pkg, |
| ... | |||
| ) |
References args, ensure_diversions(), and POSTINSTFILE.
Referenced by cu_prermdeconfigure(), cu_prerminfavour(), cu_prermremove(), cu_prermupgrade(), deferred_configure(), and trigproc().
References dbg_triggersdetail, debug(), pkginfo::head, modstatdb_get_status(), modstatdb_note(), pkg_set_status(), PKG_STAT_INSTALLED, PKG_STAT_TRIGGERSAWAITED, PKG_STAT_TRIGGERSPENDING, trig_incorporate(), pkginfo::trigaw, and pkginfo::trigpend_head.
Referenced by cu_prermdeconfigure(), cu_prerminfavour(), cu_prermremove(), cu_prermupgrade(), deferred_configure(), and trigproc().