summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/dpkgpm.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@ubuntu.com>2014-04-01 11:30:00 +0200
committerMichael Vogt <mvo@ubuntu.com>2014-04-01 12:16:03 +0200
commite5b7e019232f89a97e8ba3cbffa295595daa0351 (patch)
tree41a84963fb19fc8bc6d9b73bd424390027e8fa8c /apt-pkg/deb/dpkgpm.cc
parent21b3eac8f9ab8e12b43fa8998a5aa5465f29adc5 (diff)
Add new Debug::RunScripts option
This debug option will display all scripts that are run by apts RunScripts and RunScriptsWithPkgs helpers.
Diffstat (limited to 'apt-pkg/deb/dpkgpm.cc')
-rw-r--r--apt-pkg/deb/dpkgpm.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc
index 5a5fff13b..e68c2ca34 100644
--- a/apt-pkg/deb/dpkgpm.cc
+++ b/apt-pkg/deb/dpkgpm.cc
@@ -410,6 +410,10 @@ bool pkgDPkgPM::RunScriptsWithPkgs(const char *Cnf)
if (Opts->Value.empty() == true)
continue;
+ if(_config->FindB("Debug::RunScripts", false) == true)
+ std::clog << "Running external script with list of all .deb file: '"
+ << Opts->Value << "'" << std::endl;
+
// Determine the protocol version
string OptSec = Opts->Value;
string::size_type Pos;