diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2020-02-26 14:29:06 +0100 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2020-02-26 14:30:03 +0100 |
commit | da7de99f8473ae0ac90c90fad3eee80f5f72889a (patch) | |
tree | 795744c3038a9d6e9c7cae5ef69e4095c0d1fc94 /apt-pkg/deb/dpkgpm.cc | |
parent | d77c1c7db760ae21d703b8b0f129379e54918bf7 (diff) |
pkgsystem: Drop more virtual workaround shenanigans
Diffstat (limited to 'apt-pkg/deb/dpkgpm.cc')
-rw-r--r-- | apt-pkg/deb/dpkgpm.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index 0b807d668..ef73881c8 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -1711,7 +1711,7 @@ bool pkgDPkgPM::Go(APT::Progress::PackageManager *progress) // create log OpenLog(); - bool dpkgMultiArch = debSystem::SupportsMultiArch(); + bool dpkgMultiArch = _system->MultiArchSupported(); // start pty magic before the loop StartPtyMagic(); @@ -2014,8 +2014,7 @@ 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) { + if (_system->IsLocked() == true) { setenv("DPKG_FRONTEND_LOCKED", "true", 1); } if (_config->Find("DPkg::Path", "").empty() == false) |