config: Add packages component to a re-add zram-tools dependency

Fixes: #2151.

Tests:

- Before this patch, --list-dependencies does not list zram-tools. After this
patch, --list-dependencies lists zram-tools.

- After this patch, --list-dependencies exactly matches the output from
freedombox release without Packages component changes.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2021-11-23 07:30:10 -08:00 committed by James Valleroy
parent 9a855f7bd2
commit 20b46f7df5
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -15,6 +15,7 @@ from plinth import frontpage, menu
from plinth.modules.apache import (get_users_with_website, user_of_uws_url,
uws_url_of_user)
from plinth.modules.names.components import DomainType
from plinth.package import Packages
from plinth.signals import domain_added
version = 3
@ -64,6 +65,9 @@ class ConfigApp(app_module.App):
'config:index', parent_url_name='system')
self.add(menu_item)
packages = Packages('packages-config', managed_packages)
self.add(packages)
domain_type = DomainType('domain-type-static', _('Domain Name'),
'config:index', can_have_certificate=True)
self.add(domain_type)