With the caching, it's also efficient to generate the Contents files
now:
diff --git a/rebuild b/rebuild
index 9afa60c..f0af00b 100755
--- a/rebuild
+++ b/rebuild
@@ -29,6 +29,10 @@ else
(cd $REPO
apt-ftparchive packages --db cache.db ../../../$DEBS > $REPO/Packages
apt-ftparchive sources --db cache.db ../../../$DEBS > $REPO/Sources
+ for arch in $(dpkg --print-architecture) $(dpkg
--print-foreign-architectures)
+ do
+ apt-ftparchive contents --db cache.db ../../../$DEBS >
$REPO/Contents-$arch
+ done
) && break || true
# ^ this can fail during a partial write to the directory (which
# would be detected by the loop), so ignore errors here
--
Darsey Litzenberger <dl...@dlitz.net>