From 8d6d3f00b14217e69ecabd68379b1e29bf4a3ccd Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Tue, 15 Sep 2015 12:44:53 +0200 Subject: implement a public pkgSystem::MultiArchSupported Some codepaths need to check if the system (in our case usually dpkg) supports MultiArch or not. We had copy-pasted the check so far into these paths, but having it as a system check is better for reusability. --- apt-pkg/deb/debsystem.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apt-pkg/deb/debsystem.h') diff --git a/apt-pkg/deb/debsystem.h b/apt-pkg/deb/debsystem.h index aed77520e..521552ef4 100644 --- a/apt-pkg/deb/debsystem.h +++ b/apt-pkg/deb/debsystem.h @@ -45,6 +45,11 @@ class debSystem : public pkgSystem debSystem(); virtual ~debSystem(); + + APT_HIDDEN static std::string GetDpkgExecutable(); + APT_HIDDEN static std::vector GetDpkgBaseCommand(); + APT_HIDDEN static void DpkgChrootDirectory(); + APT_HIDDEN static bool SupportsMultiArch(); }; extern debSystem debSys; -- cgit v1.2.3