Commit 4212bf1
committed
Fixed copy_repo copied all content types when copying only rpms [RHELDST-28235]
copy_repo creates a criteria matching the content_type_id for
non-rpm content types. However, in Pulp the type_ids filter with
empty type_ids list included all the content types in the result.
Hence, the copy-repo copied all the content types when requested
only for rpms, as it generated an empty type_ids list for non-rpms.
Hence, this adds a check to skip empty type_ids/content_type_id list.1 parent 35eea0c commit 4212bf1
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | | - | |
153 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
154 | 158 | | |
155 | | - | |
156 | 159 | | |
157 | 160 | | |
158 | 161 | | |
| |||
0 commit comments