To make life easier for those using createrepo as a library, I've factored out a MetaDataGenerator class. The following three patches contain are against current HEAD (ie ontop of the basedir patches). Please review for inclusion. Further patches will follow for split media based on these patches. Paul