summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2008-07-25 20:29:31 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2008-07-25 20:29:31 +0200
commit870ce08fa327a889cfbd9ca67d7a33808b5482f4 (patch)
tree9f8cc2cb67c1412696d10f8682c80080af05ea88
parenteea6312729b11f6c80c6cec027bbc475a34bb2d1 (diff)
* add DPkg::NoTriggers option so that applications that call
apt/aptitude (like the installer) defer trigger processing (thanks to Joey Hess)
-rw-r--r--apt-pkg/deb/dpkgpm.cc3
-rw-r--r--debian/changelog3
2 files changed, 6 insertions, 0 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc
index 3528c1619..c2c33f342 100644
--- a/apt-pkg/deb/dpkgpm.cc
+++ b/apt-pkg/deb/dpkgpm.cc
@@ -554,6 +554,7 @@ bool pkgDPkgPM::Go(int OutStatusFd)
{
unsigned int MaxArgs = _config->FindI("Dpkg::MaxArgs",8*1024);
unsigned int MaxArgBytes = _config->FindI("Dpkg::MaxArgBytes",32*1024);
+ bool NoTriggers = _config->FindB("DPkg::NoTriggers",false);
if (RunScripts("DPkg::Pre-Invoke") == false)
return false;
@@ -689,6 +690,8 @@ bool pkgDPkgPM::Go(int OutStatusFd)
case Item::Configure:
Args[n++] = "--configure";
+ if (NoTriggers)
+ Args[n++] = "--no-triggers";
Size += strlen(Args[n-1]);
break;
diff --git a/debian/changelog b/debian/changelog
index b921fb004..f040d6cdf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -21,6 +21,9 @@ apt (0.7.15) UNRELEASED; urgency=low
(thanks to Arnaud Ebalard, closes: #485965)
* add doc/examples/apt-https-method-example.cof
(thanks to Arnaud Ebalard, closes: #485964)
+ * add DPkg::NoTriggers option so that applications that call
+ apt/aptitude (like the installer) defer trigger processing
+ (thanks to Joey Hess)
--