Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load components for Arch Linux #69

Merged
merged 1 commit into from Dec 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -470,11 +470,11 @@ public:
private HashMap!(string, Package) getIconCandidatePackages (Suite suite, string section, string arch)
{
// always load the "main" and "universe" components, which contain most of the icon data
// on Debian and Ubuntu.
// on Debian and Ubuntu. Load the "core" and "extra" components for Arch Linux.
// FIXME: This is a hack, find a sane way to get rid of this, or at least get rid of the
// distro-specific hardcoding.
auto pkgs = appender!(Package[]);
foreach (ref newSection; ["main", "universe"]) {
foreach (ref newSection; ["main", "universe", "core", "extra"]) {
if ((section != newSection) && (suite.sections.canFind (newSection))) {
pkgs ~= pkgIndex.packagesFor (suite.name, newSection, arch);
if (!suite.baseSuite.empty)