diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-09-15 12:44:53 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-11-04 15:02:36 +0100 |
commit | 8d6d3f00b14217e69ecabd68379b1e29bf4a3ccd (patch) | |
tree | b72f8bb2b10b46ad2b81acce2128d07ed4668e4a /apt-pkg/pkgsystem.h | |
parent | fa74b4ece008f6600d530e28a609f31312c8c864 (diff) |
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.
Diffstat (limited to 'apt-pkg/pkgsystem.h')
-rw-r--r-- | apt-pkg/pkgsystem.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apt-pkg/pkgsystem.h b/apt-pkg/pkgsystem.h index 5b31457e0..c7de63c87 100644 --- a/apt-pkg/pkgsystem.h +++ b/apt-pkg/pkgsystem.h @@ -92,6 +92,19 @@ class pkgSystem return 0; }; + //FIXME: these methods should be virtual + /** does this system has support for MultiArch? + * + * Systems supporting only single arch (not systems which are single arch) + * are considered legacy systems and support for it will likely degrade over + * time. + * + * The default implementation returns always \b true. + * + * @return \b true if the system supports MultiArch, \b false if not. + */ + bool MultiArchSupported() const; + pkgSystem(char const * const Label, pkgVersioningSystem * const VS); virtual ~pkgSystem(); private: |