summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apt-private/private-install.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/apt-private/private-install.cc b/apt-private/private-install.cc
index 107ed398e..64ab3d72a 100644
--- a/apt-private/private-install.cc
+++ b/apt-private/private-install.cc
@@ -47,6 +47,8 @@ class pkgSourceList;
happen and then calls the download routines */
bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask, bool Safety)
{
+ if (not RunScripts("APT::Install::Pre-Invoke"))
+ return false;
if (_config->FindB("APT::Get::Purge",false) == true)
{
pkgCache::PkgIterator I = Cache->PkgBegin();
@@ -83,7 +85,7 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask, bool Safety)
if (Cache->DelCount() == 0 && Cache->InstCount() == 0 &&
Cache->BadCount() == 0)
- return true;
+ return RunScripts("APT::Install::Post-Invoke-Success");
// No remove flag
if (Cache->DelCount() != 0 && _config->FindB("APT::Get::Remove",true) == false)
@@ -368,6 +370,9 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask, bool Safety)
"all files have been overwritten by other packages:", disappearedPkgs.size()), disappear, "");
c0out << _("Note: This is done automatically and on purpose by dpkg.") << std::endl;
+ if (not RunScripts("APT::Install::Post-Invoke-Success"))
+ return false;
+
return true;
}
/*}}}*/