[...]
I'm using brute-force - which even works, if you're providing different revisions of the same package, as I do for my kernel-image - packages:
The idea: create a temporary directory, move each package into that directory, dpkg-scanpackages >> Packages , sed , gzip - done.
The script is attached, it should be placed one level higher than your Package-repository.
It might not be the most efficient solution, but it works ( and even quite fast! ).
Regards, Michael
#! /bin/bash
cd /usr/local/share/fai/files rm packages/Packages* mkdir -p packages/PACKAGE for p in `find packages/ -name "*.deb"` ; do rm -f packages/PACKAGE/* ln $p packages/PACKAGE/ dpkg-scanpackages packages/PACKAGE/ /dev/null >> packages/Packages chmod a+r $p done rm -rf packages/PACKAGE sed -i 's/\/PACKAGE\//\//' packages/Packages gzip packages/Packages