mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
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:
parent
9a855f7bd2
commit
20b46f7df5
@ -15,6 +15,7 @@ from plinth import frontpage, menu
|
|||||||
from plinth.modules.apache import (get_users_with_website, user_of_uws_url,
|
from plinth.modules.apache import (get_users_with_website, user_of_uws_url,
|
||||||
uws_url_of_user)
|
uws_url_of_user)
|
||||||
from plinth.modules.names.components import DomainType
|
from plinth.modules.names.components import DomainType
|
||||||
|
from plinth.package import Packages
|
||||||
from plinth.signals import domain_added
|
from plinth.signals import domain_added
|
||||||
|
|
||||||
version = 3
|
version = 3
|
||||||
@ -64,6 +65,9 @@ class ConfigApp(app_module.App):
|
|||||||
'config:index', parent_url_name='system')
|
'config:index', parent_url_name='system')
|
||||||
self.add(menu_item)
|
self.add(menu_item)
|
||||||
|
|
||||||
|
packages = Packages('packages-config', managed_packages)
|
||||||
|
self.add(packages)
|
||||||
|
|
||||||
domain_type = DomainType('domain-type-static', _('Domain Name'),
|
domain_type = DomainType('domain-type-static', _('Domain Name'),
|
||||||
'config:index', can_have_certificate=True)
|
'config:index', can_have_certificate=True)
|
||||||
self.add(domain_type)
|
self.add(domain_type)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user