[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Pulp-list] Question on filters - Pulp v2

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.


----- Original Message -----
From: "Partha Aji" <paji redhat com>
To: pulp-list redhat com
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).

Pulp-list mailing list
Pulp-list redhat com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]