diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-09-15 14:12:19 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-11-04 18:04:00 +0100 |
commit | 825db89094a8413dcc9c8ef3abe0a45b0bb7a2e2 (patch) | |
tree | a6dc406c7f2a479faf7b7f3647e5c8bdc4b12b10 /apt-pkg/pkgsystem.cc | |
parent | 8d6d3f00b14217e69ecabd68379b1e29bf4a3ccd (diff) |
implement a public pkgSystem::ArchitecturesSupported
Diffstat (limited to 'apt-pkg/pkgsystem.cc')
-rw-r--r-- | apt-pkg/pkgsystem.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apt-pkg/pkgsystem.cc b/apt-pkg/pkgsystem.cc index 2a0fc9d3b..530150221 100644 --- a/apt-pkg/pkgsystem.cc +++ b/apt-pkg/pkgsystem.cc @@ -55,5 +55,13 @@ bool pkgSystem::MultiArchSupported() const /*{{{*/ 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() {} |