From cba91ef13c03528c1afedad519c5422be031fe43 Mon Sep 17 00:00:00 2001 From: Timothy Mullican <18095326+tjmullicani@users.noreply.github.com> Date: Thu, 1 Dec 2022 10:00:09 -0600 Subject: [PATCH] Fix pulp-cli-deb missing pulpexport capability --- CHANGES/40.bugfix | 1 + pulpcore/cli/deb/context.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 CHANGES/40.bugfix diff --git a/CHANGES/40.bugfix b/CHANGES/40.bugfix new file mode 100644 index 0000000..3ec7511 --- /dev/null +++ b/CHANGES/40.bugfix @@ -0,0 +1 @@ +Fix error "The type 'deb:apt' does not support the 'pulpexport' capability." diff --git a/pulpcore/cli/deb/context.py b/pulpcore/cli/deb/context.py index b64cf22..67bf9ef 100644 --- a/pulpcore/cli/deb/context.py +++ b/pulpcore/cli/deb/context.py @@ -6,6 +6,7 @@ PulpEntityContext, PulpRepositoryContext, PulpRepositoryVersionContext, + PluginRequirement, registered_repository_contexts, ) from pulpcore.cli.common.i18n import get_translation @@ -119,6 +120,6 @@ class PulpAptRepositoryContext(PulpRepositoryContext): DELETE_ID = "repositories_deb_apt_delete" SYNC_ID = "repositories_deb_apt_sync" VERSION_CONTEXT = PulpAptRepositoryVersionContext - + CAPABILITIES = {"pulpexport": [PluginRequirement("deb", "2.20.0")]} registered_repository_contexts["deb:apt"] = PulpAptRepositoryContext