[Pkg-xfce-commits] r2885 - scripts/pbuilder/hooks

corsac at alioth.debian.org corsac at alioth.debian.org
Sun Mar 1 10:52:24 UTC 2009


Author: corsac
Date: 2009-03-01 10:52:24 +0000 (Sun, 01 Mar 2009)
New Revision: 2885

Modified:
   scripts/pbuilder/hooks/D10aptupdate.sh
Log:
update the apt-get update hook to match the pdebuild stuff


Modified: scripts/pbuilder/hooks/D10aptupdate.sh
===================================================================
--- scripts/pbuilder/hooks/D10aptupdate.sh	2009-03-01 10:51:37 UTC (rev 2884)
+++ scripts/pbuilder/hooks/D10aptupdate.sh	2009-03-01 10:52:24 UTC (rev 2885)
@@ -1,2 +1,6 @@
-dpkg-scanpackages /var/cache/apt/archives /dev/null |gzip -9c >/var/cache/apt/archives/Packages.gz
+#we use the first apt line to detect the bind-mounted archive folder
+ARCHIVE=$(awk 'NR==1 { print $2 }' /etc/apt/sources.list|sed 's/file\:\/\///')
+pushd $ARCHIVE
+dpkg-scanpackages -m . /dev/null > Packages
+popd
 apt-get update




More information about the Pkg-xfce-commits mailing list