X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/6c55f07a5fa3612a5d59c61a17da5fe640eadc8b..e6849dd8461c4bc7d121820982bea4c1aece8868:/apt-pkg/pkgsystem.cc diff --git a/apt-pkg/pkgsystem.cc b/apt-pkg/pkgsystem.cc index a6b61e655..530150221 100644 --- a/apt-pkg/pkgsystem.cc +++ b/apt-pkg/pkgsystem.cc @@ -12,6 +12,7 @@ // Include Files /*{{{*/ #include<config.h> +#include <apt-pkg/debsystem.h> #include <apt-pkg/pkgsystem.h> #include <apt-pkg/macros.h> @@ -46,5 +47,21 @@ APT_PURE pkgSystem *pkgSystem::GetSystem(const char *Label) return 0; } /*}}}*/ +bool pkgSystem::MultiArchSupported() const /*{{{*/ +{ + debSystem const * const deb = dynamic_cast<debSystem const *>(this); + if (deb != NULL) + return deb->SupportsMultiArch(); + return true; +} + /*}}}*/ +std::vector<std::string> pkgSystem::ArchitecturesSupported() const /*{{{*/ +{ + debSystem const * const deb = dynamic_cast<debSystem const *>(this); + if (deb != NULL) + return deb->SupportedArchitectures(); + return {}; +} + /*}}}*/ pkgSystem::~pkgSystem() {}