mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
doc/dev: Update documentation to not refer to managed_packages
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
4bf57c5707
commit
e3e3042da4
@ -32,13 +32,6 @@ triggers the setup() logic allowing the app to run upgrade scripts. This
|
|||||||
attribute is part of the :class:`~plinth.app.Info` component. Need for this
|
attribute is part of the :class:`~plinth.app.Info` component. Need for this
|
||||||
attribute at the module level will be removed in the future.
|
attribute at the module level will be removed in the future.
|
||||||
|
|
||||||
<app-module>.managed_packages
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
Optional. This must contain the list of all packages that this app deals with.
|
|
||||||
This is mostly needed to enforce better security. This information may be moved
|
|
||||||
to a separate component in the future.
|
|
||||||
|
|
||||||
<app-module>.managed_services
|
<app-module>.managed_services
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
|||||||
@ -126,7 +126,6 @@ Debian packages to be installed.
|
|||||||
|
|
||||||
from plinth.package import Packages
|
from plinth.package import Packages
|
||||||
|
|
||||||
managed_packages = ['transmission-daemon']
|
|
||||||
|
|
||||||
class TransmissionApp(app_module.App):
|
class TransmissionApp(app_module.App):
|
||||||
...
|
...
|
||||||
@ -134,7 +133,7 @@ Debian packages to be installed.
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
...
|
...
|
||||||
|
|
||||||
packages = Packages('packages-transmission', managed_packages)
|
packages = Packages('packages-transmission', ['transmission-daemon'])
|
||||||
self.add(packages)
|
self.add(packages)
|
||||||
|
|
||||||
The first argument uniquely identifies this instance of the `Packages`
|
The first argument uniquely identifies this instance of the `Packages`
|
||||||
|
|||||||
@ -16,11 +16,9 @@ installation:
|
|||||||
.. code-block:: python3
|
.. code-block:: python3
|
||||||
:caption: ``__init__.py``
|
:caption: ``__init__.py``
|
||||||
|
|
||||||
managed_packages = ['transmission-daemon']
|
|
||||||
|
|
||||||
def setup(helper, old_version=None):
|
def setup(helper, old_version=None):
|
||||||
"""Install and configure the module."""
|
"""Install and configure the module."""
|
||||||
helper.install(managed_packages)
|
app.setup(old_version)
|
||||||
|
|
||||||
new_configuration = {
|
new_configuration = {
|
||||||
'rpc-whitelist-enabled': False,
|
'rpc-whitelist-enabled': False,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user