Thanks,
I've took a little look at your plugin and to 
spacewalk/yum/cobbler/yumdownloader python files on my spacewalk server and to 
the yum api documentation, in order to find a way to get package dependencies, 
but i've never used python and it takes for me some time to understand how 
python and yum api works :)

----- Mail original -----
De: "Michael Gliwinski" <[email protected]>
À: [email protected]
Envoyé: Vendredi 25 Mars 2011 17:40:21
Objet: Re: [Spacewalk-list] Exclude some packages/Include only somes packages 
in a software channel

On Thursday 24 Mar 2011 17:37:39 Baptiste AGASSE wrote:
> Before using spacewalk, i used cobbler to manage and mirror locally
> repositories like CentOS 5.x, EPEL... and i was abble to define what
> package i want to mirror (for example, EPEL repo have a lot of packages
> but i use only a few of them) and their dependencies.
> 
> I saw that spacewalk use cobbler for distros, but not for channel repo
> management.
> 
> So, my question is: Is it possible to filter which package to download
> from remote repository (with an "download only" or "exclude" condition) ?
> And, if not:
> Anybody have the same problem ?
> It will be included in future spacewalk version ?

Yes, I had the same problem.  In the meantime I hacked a plugin to spacewalk-
repo-sync to read includes from a config file, but it would be way better if 
support for reading and setting yum config options for spacewalk-repo-sync 
existed in Spacewalk natively.

I'm attaching the file in case you're interested, but I didn't have time to 
really think the design through, so it's a "quick & dirty" version (it's based 
on yum_src.py from Spacewalk).  Basically you have to put the file in 
/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/repo_plugins/ and 
put a config file (like subset of yum config with just includepkgs options in 
each repo section) in /etc/rhn/spacewalk-repo-sync-yum.conf and then you can 
run e.g.:

  spacewalk-repo-sync --channel=epel-5-i386 --type=yumsubset

(assuming you have epel-5-i386 channel with repository URL and GPG keys 
defined).

You also have to hunt down all dependencies and include them in includepkgs 
manually.  I started working on something to make this easier but so far lack 
the time to get anywhere with it.

Let me know if that works for you (I'm away next week but will respond as soon 
as I'm back).


-- 
Michael Gliwinski
Henderson Group Information Services
9-11 Hightown Avenue, Newtownabby, BT36 4RT
Phone: 028 9034 3319

**********************************************************************************************
The information in this email is confidential and may be legally privileged.  
It is intended solely for the addressee and access to the email by anyone else 
is unauthorised.
If you are not the intended recipient, any disclosure, copying, distribution or 
any action taken or omitted to be taken in reliance on it, is prohibited and 
may be unlawful.
When addressed to our clients, any opinions or advice contained in this e-mail 
are subject to the terms and conditions expressed  in the governing client 
engagement leter or contract.
If you have received this email in error please notify 
[email protected]

John Henderson (Holdings) Ltd
Registered office: 9 Hightown Avenue, Mallusk, County Antrim, Northern Ireland, 
BT36 4RT.
Registered in Northern Ireland
Registration Number NI010588
Vat No.: 814 6399 12
*********************************************************************************


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

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

Reply via email to