From 6b8147b88eb5ee755ff4477568503b205c79a030 Mon Sep 17 00:00:00 2001 From: Matt Zimmerman Date: Sat, 13 Nov 2004 18:29:08 +0000 Subject: Increase Dpkg::MaxArgs and Dpkg::MaxArgBytes * Set default Dpkg::MaxArgs to 1024, and Dpkg::MaxArgBytes to 32k. Needed to work around ordering bugs when installing a large number of packages --- apt-pkg/deb/dpkgpm.cc | 4 ++-- debian/changelog | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index d80b23132..85d46edba 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -328,8 +328,8 @@ bool pkgDPkgPM::RunScriptsWithPkgs(const char *Cnf) /* This globs the operations and calls dpkg */ bool pkgDPkgPM::Go() { - unsigned int MaxArgs = _config->FindI("Dpkg::MaxArgs",350); - unsigned int MaxArgBytes = _config->FindI("Dpkg::MaxArgBytes",8192); + unsigned int MaxArgs = _config->FindI("Dpkg::MaxArgs",8*1024); + unsigned int MaxArgBytes = _config->FindI("Dpkg::MaxArgBytes",32*1024); if (RunScripts("DPkg::Pre-Invoke") == false) return false; diff --git a/debian/changelog b/debian/changelog index 49b3b685d..c5122fc54 100644 --- a/debian/changelog +++ b/debian/changelog @@ -20,6 +20,8 @@ apt (0.5.28) unstable; urgency=low - Updated Slovak from Peter Mann (Closes: #279481) * APT::Get::APT::Get::No-List-Cleanup -> APT::Get::List-Cleanup in apt-get.cc (Closes: #267266) + * Set default Dpkg::MaxArgs to 1024, and Dpkg::MaxArgBytes to 32k. Needed + to work around ordering bugs when installing a large number of packages -- -- cgit v1.2.3