Glad we are on the same page now.
I think some feeds do have libraries in different directories ... a simple script can generate the file, but you will need to fill in the dependencies as well! ... it might be easier to pull down the original Packages file and have a script process it to scrap out the package definitions and generate a final output.
As to different directories ... yes! I remember now ... in oz, there is like many feeds, each pointing to a different sub directory, one for apps, one for lib etc. That way, if a dependency is needed, ipkg will look through its own ipk lists (that comprises ipk infos from the Packages of each feed that is defined and active in /etc/ipkg.conf) ...
eg
src apps file:///mnt/cf/...my feed.../apps
src libs file:///mnt/cf/...my feed.../libs
and in each directory, the relevant ipks are inside and a single Packages file corresponding to each list of ipks for each directory.