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:
Sunil Mohan Adapa 2021-11-16 08:19:13 -08:00 committed by James Valleroy
parent 4bf57c5707
commit e3e3042da4
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
3 changed files with 2 additions and 12 deletions

View File

@ -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 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
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

View File

@ -126,7 +126,6 @@ Debian packages to be installed.
from plinth.package import Packages
managed_packages = ['transmission-daemon']
class TransmissionApp(app_module.App):
...
@ -134,7 +133,7 @@ Debian packages to be installed.
def __init__(self):
...
packages = Packages('packages-transmission', managed_packages)
packages = Packages('packages-transmission', ['transmission-daemon'])
self.add(packages)
The first argument uniquely identifies this instance of the `Packages`

View File

@ -16,11 +16,9 @@ installation:
.. code-block:: python3
:caption: ``__init__.py``
managed_packages = ['transmission-daemon']
def setup(helper, old_version=None):
"""Install and configure the module."""
helper.install(managed_packages)
app.setup(old_version)
new_configuration = {
'rpc-whitelist-enabled': False,