forked from Mirror/pmbootstrap
pmb.*: various comment reformatting to assist with generating docs (MR 2266)
This commit is contained in:
parent
415e7364f4
commit
044d3b5a6a
43 changed files with 592 additions and 599 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue