diff options
Diffstat (limited to 'apt-private')
-rw-r--r-- | apt-private/private-install.cc | 7 | ||||
-rw-r--r-- | apt-private/private-update.cc | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/apt-private/private-install.cc b/apt-private/private-install.cc index 243b75b1c..40543d995 100644 --- a/apt-private/private-install.cc +++ b/apt-private/private-install.cc @@ -103,6 +103,8 @@ static void RemoveDownloadNeedingItemsFromFetcher(pkgAcquire &Fetcher, bool &Tra } 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) for (pkgCache::PkgIterator I = Cache->PkgBegin(); I.end() == false; ++I) if (Cache[I].Delete() == true && Cache[I].Purge() == false) @@ -178,7 +180,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) @@ -392,6 +394,9 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask, bool Safety) } } + if (not RunScripts("APT::Install::Post-Invoke-Success")) + return false; + return true; } /*}}}*/ diff --git a/apt-private/private-update.cc b/apt-private/private-update.cc index c9113ddd3..4d9d0775d 100644 --- a/apt-private/private-update.cc +++ b/apt-private/private-update.cc @@ -138,6 +138,8 @@ bool DoUpdate(CommandLine &CmdL) c1out << _("All packages are up to date.") << std::endl; else ioprintf(c1out, msg, upgradable); + + RunScripts("APT::Update-Post-Invoke-Stats"); } return true; |