Skip to content

Commit

Permalink
Add the ReleaseComponent content create command
Browse files Browse the repository at this point in the history
  • Loading branch information
quba42 committed Apr 26, 2024
1 parent 6c4ef83 commit e70229e
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions pulpcore/cli/deb/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def _sha256_artifact_callback(
"Repository to add the content to in the form '[[<plugin>:]<resource_type>:]<name>' or by "
"href."
),
allowed_with_contexts=(PulpDebPackageContext,),
allowed_with_contexts=(PulpDebPackageContext, PulpDebReleaseComponentContext),
)


Expand Down Expand Up @@ -272,12 +272,24 @@ def content() -> None:
callback=_sha256_artifact_callback,
allowed_with_contexts=(PulpDebPackageContext,),
),
pulp_option(
"--distribution",
required=True,
help=_("The APT repo distribution to use"),
allowed_with_contexts=(PulpDebReleaseComponentContext,),
),
pulp_option(
"--component",
required=True,
help=_("The APT repo component to use"),
allowed_with_contexts=(PulpDebReleaseComponentContext,),
),
repository_option,
]
content.add_command(
create_command(
decorators=create_options,
allowed_with_contexts=(PulpDebPackageContext,),
allowed_with_contexts=(PulpDebPackageContext, PulpDebReleaseComponentContext),
)
)

Expand Down

0 comments on commit e70229e

Please sign in to comment.