Skip to content

Commit ed2352a

Browse files
scaronnipraiskup
authored andcommitted
Document --scrub=bootstrap
1 parent 5237f12 commit ed2352a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

mock/py/mock.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
# pylint: disable=pointless-string-statement,wrong-import-position
2525
"""
26-
mock [options] {--init|--clean|--scrub=[all,chroot,cache,root-cache,c-cache,yum-cache,dnf-cache,lvm,overlayfs]}
26+
mock [options] {--init|--clean|--scrub=[all,bootstrap,chroot,cache,root-cache,c-cache,yum-cache,dnf-cache,lvm,overlayfs]}
2727
mock [options] [--rebuild] /path/to/srpm(s)
2828
mock [options] [--chain] /path/to/srpm(s)
2929
mock [options] --buildsrpm {--spec /path/to/spec --sources /path/to/src|
@@ -145,10 +145,10 @@ def command_parse():
145145
help="completely remove the specified chroot")
146146
scrub_choices = ('chroot', 'cache', 'root-cache', 'c-cache', 'yum-cache',
147147
'dnf-cache', 'lvm', 'overlayfs', 'bootstrap', 'all')
148-
scrub_metavar = "[all|chroot|cache|root-cache|c-cache|yum-cache|dnf-cache]"
148+
scrub_metavar = "[all|bootstrap|chroot|cache|root-cache|c-cache|yum-cache|dnf-cache]"
149149
parser.add_option("--scrub", action='append', choices=scrub_choices, default=[],
150150
metavar=scrub_metavar,
151-
help="completely remove the specified chroot "
151+
help="completely remove the specified chroot, bootstrap chroot "
152152
"or cache dir or all of the chroot and cache")
153153
parser.add_option(
154154
"--scrub-all-chroots", action="store_const", dest="mode",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix `mock --help` output to include information about scrubbing bootstrap image expansion.

0 commit comments

Comments
 (0)