pmb.*: various comment reformatting to assist with generating docs (MR 2266)

This commit is contained in:
Robert Eckelmann 2024-05-08 14:39:48 -07:00 committed by Newbyte
parent 415e7364f4
commit 044d3b5a6a
No known key found for this signature in database
GPG key ID: 8A700086A9FE41FD
43 changed files with 592 additions and 599 deletions

View file

@ -13,7 +13,7 @@ import pmb.config.pmaports
def chroot_save_init(args, suffix):
""" Save the chroot initialization data in $WORK/workdir.cfg. """
"""Save the chroot initialization data in $WORK/workdir.cfg."""
# Read existing cfg
cfg = configparser.ConfigParser()
path = args.work + "/workdir.cfg"
@ -88,10 +88,12 @@ def chroot_check_channel(args, suffix):
def clean(args):
""" Remove obsolete data data from workdir.cfg.
:returns: None if workdir does not exist,
True if config was rewritten,
False if config did not change """
"""Remove obsolete data data from workdir.cfg.
:returns: None if workdir does not exist,
True if config was rewritten,
False if config did not change
"""
# Skip if workdir.cfg doesn't exist
path = args.work + "/workdir.cfg"
if not os.path.exists(path):