mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +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:
1 parent
4bf57c5707
commit
e3e3042da4
3 files changed
+2
-12
No files matched your search
@@ -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`
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user