diff options
| author | Balint Reczey <balint@balintreczey.hu> | 2024-12-28 23:58:36 +0100 |
|---|---|---|
| committer | Balint Reczey <balint@balintreczey.hu> | 2024-12-30 13:15:44 +0100 |
| commit | 8e6a86aa3bc6d5a9013bb42fccea9bbce3fd97e2 (patch) | |
| tree | e1dd86ffac39c0c88134b2c5e9c2b0f38f793196 /apt-pkg/deb/dpkgpm.cc | |
| parent | 073c266ced5ea4057d0da8c86e6f1b72fcaf4f1f (diff) | |
apt-pkg/deb/debsystem.cc: Fall back to "dpkg" when Dir::Bin::dpkg is not found
The custom dpkg binary may be removed by apt and that breaks the end of
the operation. This can be observed when using eatmydata as dpkg and
removing the symlink to eatmydata when removing the apt-eatmydata package.
Diffstat (limited to 'apt-pkg/deb/dpkgpm.cc')
| -rw-r--r-- | apt-pkg/deb/dpkgpm.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index 8cadd2712..49c6f24f7 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -1773,7 +1773,6 @@ bool pkgDPkgPM::Go(APT::Progress::PackageManager *progress) // this loop is runs once per dpkg operation vector<Item>::const_iterator I = List.cbegin(); - BuildDpkgCall Args; while (I != List.end()) { // Do all actions with the same Op in one run @@ -1795,7 +1794,7 @@ bool pkgDPkgPM::Go(APT::Progress::PackageManager *progress) else J = std::find_if(J, List.cend(), [&J](Item const &I) { return I.Op != J->Op; }); - Args.clearCallArguments(); + BuildDpkgCall Args; Args.reserve((J - I) + 10); int fd[2]; |
