-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add some handy pulp rpm commands #205
Conversation
Upload of rpm content from command-line is handy sometimes. Example of usage: pulp rpm content-package upload --file /path/barani-1.0.0-1.el8.x86_64.rpm --relative-path barani-1.0.0-1.el8.x86_64.rpm [noissue]
Examples: pulp rpm repository modify --name <reponame> --remove-href rpm_href1,rpm_href2 pulp rpm repository modify --name <reponame> --add-href rpm_href1,rpm_href2 [noissue]
Please note I'm quite poor python developer, so you might consider this only as an example and baseline for your PR |
5459483
to
ec98290
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -10,6 +10,15 @@ | |||
_ = gettext.gettext | |||
|
|||
|
|||
class PulpRpmPackageContentContext(PulpEntityContext): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, It's safe to call this PulpRpmPackageContext
.
@name_option | ||
@href_option | ||
@click.option("--add-href", type=str, help="Comma-separated list of rpm content HREFs") | ||
@click.option("--remove-href", type=str, help="Comma-separated list of rpm content HREFs") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use json input to specify the content in the file case. And i'd really like to keep the interface consistent, so the user does not need to learn a new way with every plugin.
[noissue]
Thank you for pointing to this, I checked #194 and it seems that half of my PR is not necessary at all. Since #194 seems to be more proper approach than mine (and it includes tests etc), I will wait till it gets merged and then I will rebase and improve my PR. |
@vonsch The new content factory subgroup feature has been merged. Check out file plugin's implementation of their content commands using this new factory. |
@vonsch may i kindly ask if you are still working on this? |
pulp rpm content-package list
for listing rpm content (packages)pulp rpm content-package upload
for uploading rpm content (packages)pulp rpm repository modify
for adding/removing rpm content from repositories