[Fai-commit] r3438 - trunk/bin

fai-repository at svn.debian.org fai-repository at svn.debian.org
Wed Apr 19 15:24:51 UTC 2006


Author: lange
Date: 2006-04-19 15:24:51 +0000 (Wed, 19 Apr 2006)
New Revision: 3438

Modified:
   trunk/bin/fai-mirror
Log:
recreates Package.gz and Release file using apt-ftparchive, since
apt-move does not include packages from other repositories into
Packages index file


Modified: trunk/bin/fai-mirror
===================================================================
--- trunk/bin/fai-mirror	2006-04-19 14:25:29 UTC (rev 3437)
+++ trunk/bin/fai-mirror	2006-04-19 15:24:51 UTC (rev 3438)
@@ -25,7 +25,7 @@
 # MA 02111-1307, USA.
 #*********************************************************************
 
-version="Version 1.6, 11-april-2006"
+version="Version 1.7, 11-april-2006"
 
 # variables: NFSROOT, FAI_CONFIGDIR
 # NFSROOT_PACKAGES, packages from make-fai-nfsroot.conf
@@ -304,6 +304,16 @@
 PKGCOMP='none gzip'
 EOF
 apt-move $quiet -c $aptmovefile update
+# since Packages.gz from  apt-move do not include packages from my
+# repository, let's use apt-ftparchive for generiating correct index
+# files
+find $mirrordir/dists -name Packages|xargs rm
+pfile=$(find $mirrordir/dists -name Packages.gz)
+pdist=$(cd $mirrordir/dists ; ls)
+cd $mirrordir
+apt-ftparchive packages pool | gzip > $pfile
+apt-ftparchive release dists/$pdist > dists/$pdist/Release
+
 echo "$0 finished."
 echo -n "Mirror size and location: ";du -sh $mirrordir
 cleandirs




More information about the Fai-commit mailing list