Yes. Just search for content in the repo, then use the same syntax for the copy 
operation. This is one of the advantages of v2's unified search API. Example 
with the CLI:

1) Do a search for content within a repo:
  $ pulp-admin rpm repo content rpm --repo-id=repo1 --str-eq='name=foo'

2) Use the same search arguments on the copy command
  $ pulp-admin rpm repo copy rpm --from-repo-id=repo1 --to-repo-id=repo2 
--str-eq='name=foo'

Using the REST API, the concept is the same.

Michael

----- Original Message -----
From: "Partha Aji" <[email protected]>
To: [email protected]
Sent: Wednesday, December 12, 2012 11:35:52 AM
Subject: [Pulp-list] Question on filters - Pulp v2


I was trying to copy contents of a repo to another repo via filters based of 
https://pulp-dev-guide.readthedocs.org/en/latest/rest-api/content/associate.html.
Its seems to work okay, albeit a bit confusing when dealing with dependencies 
and regex cases. I was wondering if pulp had something similar to a "simulate 
copy" call to tell me what packages exactly will get copied over (including 
dependencies).
 
Partha

_______________________________________________
Pulp-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/pulp-list

_______________________________________________
Pulp-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/pulp-list

Reply via email to