From da7de99f8473ae0ac90c90fad3eee80f5f72889a Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 26 Feb 2020 14:29:06 +0100 Subject: pkgsystem: Drop more virtual workaround shenanigans --- apt-pkg/pkgsystem.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'apt-pkg/pkgsystem.h') diff --git a/apt-pkg/pkgsystem.h b/apt-pkg/pkgsystem.h index 051b11ac2..1ccdcd1fb 100644 --- a/apt-pkg/pkgsystem.h +++ b/apt-pkg/pkgsystem.h @@ -100,7 +100,7 @@ class pkgSystem * * @return \b true if the system supports MultiArch, \b false if not. */ - bool MultiArchSupported() const; + virtual bool MultiArchSupported() const = 0; /** architectures supported by this system * * A MultiArch capable system might be configured to use @@ -109,7 +109,7 @@ class pkgSystem * @return a list of all architectures (native + foreign) configured * for on this system (aka: which can be installed without force) */ - std::vector ArchitecturesSupported() const; + virtual std::vector ArchitecturesSupported() const = 0; APT_HIDDEN void SetVersionMapping(map_id_t const in, map_id_t const out); APT_HIDDEN map_id_t GetVersionMapping(map_id_t const in) const; @@ -124,10 +124,10 @@ class pkgSystem * lock without releasing the overall outer lock, so that dpkg can run * correctly but no other APT instance can acquire the system lock. */ - bool LockInner(); - bool UnLockInner(bool NoErrors = false); + virtual bool LockInner() = 0; + virtual bool UnLockInner(bool NoErrors = false) = 0; /// checks if the system is currently locked - bool IsLocked(); + virtual bool IsLocked() = 0; private: pkgSystemPrivate * const d; }; -- cgit v1.2.3