[fpc-devel] Fppkg questions
Joost van der Sluis
joost at cnoc.nl
Tue May 24 22:00:36 CEST 2011
On Sun, 2011-05-22 at 18:22 +0200, Darius Blaszyk wrote:
> On May 22, 2011, at 6:04 PM, Michael Van Canneyt wrote:
> >> While working on the lazarus GUI I could not find evidence that fppkg is capable of supporting multiple repositories. As far as I can tell the mirrors.xml is always downloaded from the freepascal server and only holds some alternatives to get the packages from.
> >> I think it would be a nice feature if users could setup their own repositories and only have to distribute a repository manifest file (or URL) that will be merged with the local mirrors.xml, subsequently the packages are automatically updated into packages.xml.
> >> Is this idea eligible for support before I start working on this?
> > Having this was the idea from day one. Strange that you could not find this ?
> Can you point out to me how this is supposed to work then?
This part is just missing. But can be added very easily, it is designed
is such a way that it can be implemented easily.
> I modified the mirrors.xml file manually but it got overwritten by the version from the freepascal repository. How are you supposed to add additional mirrors? Also the packages, how do you distinguish which package comes from which mirror? I believe you when you say this was planned, but was it implemented?
Actually, this part was modeled after yum, which is somewhat more
flexible and easier to setup.
What should be done is that you can specify which repository you do
support. There has to be a file which defines the repositories, it could
be something like this:
name=Free Pascal default Repository $fpcversion
name=Free Pascal Lazarus Repository $fpcversion
Now fppkg has to download the mirrors.xml, with the mirrors for each
repository. And from there nothing changes.
It would be nice if more then one repository can be searched, using the
enabled switch, but that is for later.
My Lazarus blog: http://www.lazarussupport.com/lazarus/weblog
More information about the fpc-devel