diff options
Diffstat (limited to 'lib/portage/emaint/modules/revisions/__init__.py')
-rw-r--r-- | lib/portage/emaint/modules/revisions/__init__.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/portage/emaint/modules/revisions/__init__.py b/lib/portage/emaint/modules/revisions/__init__.py new file mode 100644 index 000000000..c51cbb4bf --- /dev/null +++ b/lib/portage/emaint/modules/revisions/__init__.py @@ -0,0 +1,36 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +doc = """Purge repo_revisions history file.""" +__doc__ = doc + + +module_spec = { + "name": "revisions", + "description": doc, + "provides": { + "purgerevisions": { + "name": "revisions", + "sourcefile": "revisions", + "class": "PurgeRevisions", + "description": "Purge repo_revisions history", + "functions": ["purgeallrepos", "purgerepos"], + "func_desc": { + "repo": { + "long": "--purgerepos", + "help": "(revisions module only): --purgerepos Purge revisions for the specified repo(s)", + "status": "Purging %s", + "action": "store", + "func": "purgerepos", + }, + "allrepos": { + "long": "--purgeallrepos", + "help": "(revisions module only): --purgeallrepos Purge revisions for all repos", + "status": "Purging %s", + "action": "store_true", + "func": "purgeallrepos", + }, + }, + }, + }, +} |