YaST2 repository development

Gustavo Niemeyer gustavo at niemeyer.net
Tue Dec 13 04:16:49 PST 2005


Hi Mauricio, Pascal, Christoph,

> I talked to Pascal about the YaST2 repositories, and he can't help
> much with coding, but he's willing to help with test, brainstorming
> and such.

Cool!

> So, we (I mostly) will be very glad if you start pointing directions on
> what you have so far, and the important things we need to know about
> code structure on Smart.

If you want to implement a new kind of repository you have to
touch two areas.

First, you have to create a new channel type. That's very trivial, and
involves creating two files under smart/channels/ named mytype.py and
mytype_info.py. These will be responsible for understanding the way the
repository is stored remotely and fetch information to the local
channels directory. You have plenty of examples to follow under that
directory.

Second, you have to create a new Loader that understands how to take
the information downloaded from the repository into the internal
structures used by Smart. This will be located under
smart/backends/rpm/. If yast2 is using rpm headers, you can reuse
some of the loaders there. If not, you have many examples to guide
you as well.

-- 
Gustavo Niemeyer
http://niemeyer.net



More information about the Smart mailing list