diff options
author | Julian Andres Klode <jak@debian.org> | 2018-08-07 13:51:13 +0000 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2018-08-07 13:51:13 +0000 |
commit | e165588b0b9bc7c484c91e324b6b9418b0a29457 (patch) | |
tree | 0e20b60cfc4e79ceebe916cef692ffa8cf7ec875 /apt-pkg/deb/dpkgpm.cc | |
parent | 1ff389a5053e9ece91db8199afdcec16090a76b0 (diff) | |
parent | c2c8b4787b0882234ba2772ec7513afbf97b563a (diff) |
Merge branch 'bugfix/big-lock' into 'master'
Add support for dpkg frontend lock
See merge request apt-team/apt!11
Diffstat (limited to 'apt-pkg/deb/dpkgpm.cc')
-rw-r--r-- | apt-pkg/deb/dpkgpm.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index c6900ec77..790019b98 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -2010,6 +2010,10 @@ bool pkgDPkgPM::Go(APT::Progress::PackageManager *progress) else setenv("DPKG_COLORS", "never", 0); + if (dynamic_cast<debSystem*>(_system) != nullptr + && dynamic_cast<debSystem*>(_system)->IsLocked() == true) { + setenv("DPKG_FRONTEND_LOCKED", "true", 1); + } execvp(Args[0], (char**) &Args[0]); cerr << "Could not exec dpkg!" << endl; _exit(100); |