Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-01

cleaning out the "packagefiles.xml" file

7 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt
to Graeme Geldenhuys
Graeme Geldenhuys wrote 6 lines
Hi, If I clean out the "packagefile.xml" file (aka the package registry) and manually remove all obsolete package entries..... if the remaining <itemXYZ> tags are not sequential, would that be an issue for Lazarus or lazbuild?

I think that would be an issue; I have always kept them sequential.

Michael.

Reply by email

Graeme Geldenhuys
to Michael Van Canneyt
Michael Van Canneyt wrote
I think that would be an issue; I have always kept them sequential.

I've always done the same (keep them sequential), but there was an aweful lot of packages in that registry, so I took a chance... I didn't even update the <UserPkgLinsk> Count attribute.... It seems lazbuild didn't give a hoot, and everything functioned as normal. Yeah!

I was curious though and asked the question here, before I completed cannibalising the package registry file. :)

So now we know, don't bother with sequential numbers... at least for now. But we don't know what the future holds. ;-)

Regards,
Graeme

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email

Michael Van Canneyt
to Mattias Gaertner: On Thu, 12 Jan 2017 14:44:05 +0000 No problem. Mattias
Mattias Gaertner wrote 11 lines
On Thu, 12 Jan 2017 14:44:05 +0000 Graeme Geldenhuys via Lazarus wrote: > Hi, > > If I clean out the "packagefile.xml" file (aka the package registry) and > manually remove all obsolete package entries..... if the remaining > <itemXYZ> tags are not sequential, would that be an issue for Lazarus or > lazbuild? No problem.

That is, assuming you have not touched the 'count' ?

Michael.

Reply by email

Graeme Geldenhuys
to Michael Van Canneyt
Michael Van Canneyt wrote
That is, assuming you have not touched the 'count' ?

I didn't look at the lazbuild code, but that should be easy to work around (if not already done so). eg: Read the package registry xml file. Read the Count attribute value and compare that to the child count of UserPkgLinks. If they don't match, ignore the Count attribute and simply walk through all the children of UserPkgLinks.

Regards,
Graeme

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email