[Pulp-list] Exclude packages or package groups from repo sync
Christina Plummer
cplummer at gmail.com
Tue Dec 3 21:34:00 UTC 2013
Attempting to answer my own question...
Is it also not possible to copy RPM/SRPMs into a repo that has a feed? Can
> I modify the repo and remove the feed URL after the initial sync in order
> to allow me to manage it manually from that point forward?
>
I tried removing the feed from the repo config (which appeared to work),
but still was unable to copy an SRPM from one repo to another. I was able
to copy an RPM from and to the same repos (and later delete the RPM) - but
not an SRPM.
$ pulp-admin rpm repo list --details
<snip>
Id: ol5-x86_64-q3
Display Name: OL5 Q3 patches
Description: None
Content Unit Counts:
Package Category: 6
Package Group: 99
Rpm: 3970
Notes:
Importers:
Config:
Feed URL: http://my-internal-host/repo/OL5-20130830/
Id: yum_importer
Importer Type Id: yum_importer
Last Sync: 2013-12-02T22:03:00Z
Repo Id: ol5-x86_64-q3
Scheduled Syncs:
</snip>
$ pulp-admin rpm repo update --repo-id=ol5-x86_64-q3 --feed=
Repository [ol5-x86_64-q3] successfully updated
$ pulp-admin rpm repo content srpm --repo-id=live-ol5-x86_64-os --match
filename=httpd-2.2.3-83.0.1.el5_10.src.rpm --fields name,filename
Filename: httpd-2.2.3-83.0.1.el5_10.src.rpm
Name: httpd
$ pulp-admin rpm repo copy srpm --from-repo-id=live-ol5-x86_64-os
--to-repo-id=ol5-x86_64-q3 --match
filename=httpd-2.2.3-83.0.1.el5_10.src.rpm
Progress on this task can be viewed using the commands under "repo tasks".
$ pulp-admin repo tasks list --repo-id=ol5-x86_64-q3
+----------------------------------------------------------------------+
Tasks
+----------------------------------------------------------------------+
Operations: associate
Resources: ol5-x86_64-q3 (repository), live-ol5-x86_64-os (repository)
State: Successful
Start Time: 2013-12-03T20:40:37Z
Finish Time: 2013-12-03T20:40:39Z
Result: N/A
Task Id: 61f3448c-5db0-44bb-8db2-f52b29d0b262
$ pulp-admin rpm repo content srpm --repo-id=ol5-x86_64-q3 --fields
name,filename
$ pulp-admin rpm repo list --details
<snip>
Id: ol5-x86_64-q3
Display Name: OL5 Q3 patches
Description: None
Content Unit Counts:
Package Category: 6
Package Group: 99
Rpm: 3970
Notes:
Importers:
Config:
Id: yum_importer
Importer Type Id: yum_importer
Last Sync: 2013-12-02T22:03:00Z
Repo Id: ol5-x86_64-q3
Scheduled Syncs:
</snip>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20131203/932b8f3f/attachment.htm>
More information about the Pulp-list
mailing list