1
1
import typing as t
2
2
3
3
import click
4
- from pulp_glue .common .context import PulpEntityContext
4
+ from pulp_glue .common .context import (
5
+ PluginRequirement ,
6
+ PulpEntityContext ,
7
+ )
5
8
from pulp_glue .common .i18n import get_translation
6
9
from pulp_glue .core .context import PulpArtifactContext
7
10
from pulp_glue .rpm .context import (
@@ -108,10 +111,18 @@ def content() -> None:
108
111
exclude_field_option ,
109
112
pulp_option ("--repository-version" ),
110
113
pulp_option ("--arch" , allowed_with_contexts = (PulpRpmPackageContext ,)),
114
+ pulp_option (
115
+ "--arch-contains" , "arch__contains" , allowed_with_contexts = (PulpRpmPackageContext ,),
116
+ needs_plugins = [PluginRequirement ("rpm" , specifier = ">=3.20.0" )],
117
+ ),
111
118
pulp_option (
112
119
"--arch-in" , "arch__in" , multiple = True , allowed_with_contexts = (PulpRpmPackageContext ,)
113
120
),
114
121
pulp_option ("--arch-ne" , "arch__ne" , allowed_with_contexts = (PulpRpmPackageContext ,)),
122
+ pulp_option (
123
+ "--arch-startswith" , "arch__startswith" , allowed_with_contexts = (PulpRpmPackageContext ,),
124
+ needs_plugins = [PluginRequirement ("rpm" , specifier = ">=3.20.0" )],
125
+ ),
115
126
pulp_option ("--epoch" , allowed_with_contexts = (PulpRpmPackageContext ,)),
116
127
pulp_option (
117
128
"--epoch-in" , "epoch__in" , multiple = True , allowed_with_contexts = (PulpRpmPackageContext ,)
@@ -129,6 +140,12 @@ def content() -> None:
129
140
allowed_with_contexts = (PulpRpmModulemdDefaultsContext ,),
130
141
),
131
142
pulp_option ("--name" , allowed_with_contexts = (PulpRpmPackageContext , PulpRpmModulemdContext )),
143
+ pulp_option (
144
+ "--name-contains" ,
145
+ "name__contains" ,
146
+ allowed_with_contexts = (PulpRpmPackageContext , PulpRpmModulemdContext ),
147
+ needs_plugins = [PluginRequirement ("rpm" , specifier = ">=3.20.0" )],
148
+ ),
132
149
pulp_option (
133
150
"--name-in" ,
134
151
"name__in" ,
@@ -140,6 +157,12 @@ def content() -> None:
140
157
"name__ne" ,
141
158
allowed_with_contexts = (PulpRpmPackageContext , PulpRpmModulemdContext ),
142
159
),
160
+ pulp_option (
161
+ "--name-startswith" ,
162
+ "name__startswith" ,
163
+ allowed_with_contexts = (PulpRpmPackageContext , PulpRpmModulemdContext ),
164
+ needs_plugins = [PluginRequirement ("rpm" , specifier = ">=3.20.0" )],
165
+ ),
143
166
pulp_option ("--package-href" , allowed_with_contexts = (PulpRpmPackageContext ,)),
144
167
pulp_option ("--pkgId" , allowed_with_contexts = (PulpRpmPackageContext ,)),
145
168
pulp_option (
@@ -149,10 +172,20 @@ def content() -> None:
149
172
allowed_with_contexts = (PulpRpmPackageContext ,),
150
173
),
151
174
pulp_option ("--release" , allowed_with_contexts = (PulpRpmPackageContext ,)),
175
+ pulp_option (
176
+ "--release-contains" , "release__contains" , allowed_with_contexts = (PulpRpmPackageContext ,),
177
+ needs_plugins = [PluginRequirement ("rpm" , specifier = ">=3.20.0" )],
178
+ ),
152
179
pulp_option (
153
180
"--release-in" , "release__in" , multiple = True , allowed_with_contexts = (PulpRpmPackageContext ,)
154
181
),
155
182
pulp_option ("--release-ne" , "release__ne" , allowed_with_contexts = (PulpRpmPackageContext ,)),
183
+ pulp_option (
184
+ "--release-startswith" ,
185
+ "release__startswith" ,
186
+ allowed_with_contexts = (PulpRpmPackageContext ,),
187
+ needs_plugins = [PluginRequirement ("rpm" , specifier = ">=3.20.0" )],
188
+ ),
156
189
pulp_option ("--severity" , allowed_with_contexts = (PulpRpmAdvisoryContext ,)),
157
190
pulp_option (
158
191
"--severity-in" ,
0 commit comments