[Debian-live-changes] r1397 - dists/trunk/live-helper/examples
Daniel Baumann
daniel at alioth.debian.org
Tue May 8 19:59:03 UTC 2007
Author: daniel
Date: 2007-05-08 19:58:55 +0000 (Tue, 08 May 2007)
New Revision: 1397
Modified:
dists/trunk/live-helper/examples/snapshot-build.sh
Log:
Modified: dists/trunk/live-helper/examples/snapshot-build.sh
===================================================================
--- dists/trunk/live-helper/examples/snapshot-build.sh 2007-05-08 19:56:19 UTC (rev 1396)
+++ dists/trunk/live-helper/examples/snapshot-build.sh 2007-05-08 19:58:55 UTC (rev 1397)
@@ -60,6 +60,8 @@
# Check for existing package
if [ ! -f "${SERVER}"/${PACKAGE}_${VERSION}~${REVISION}.dsc ]
then
+ UPDATE_INDICES="true"
+
# Renaming directory
mv "${BUILD}"/${PACKAGE} "${BUILD}"/${PACKAGE}-${VERSION}~${REVISION}
@@ -92,17 +94,20 @@
fi
done
-# Updating binary indices
-cd "${SERVER}"
-apt-ftparchive packages ./ > Packages
-gzip -9 -c Packages > Packages.gz
-cd "${OLDPWD}"
+if [ "${UPDATE_INDICES}" = "true" ]
+then
+ # Updating binary indices
+ cd "${SERVER}"
+ apt-ftparchive packages ./ > Packages
+ gzip -9 -c Packages > Packages.gz
+ cd "${OLDPWD}"
-# Updating source indices
-cd "${SERVER}"
-apt-ftparchive sources ./ > Sources
-gzip -9 -c Sources > Sources.gz
-cd "${OLDPWD}"
+ # Updating source indices
+ cd "${SERVER}"
+ apt-ftparchive sources ./ > Sources
+ gzip -9 -c Sources > Sources.gz
+ cd "${OLDPWD}"
+fi
# Writing timestamp
echo -e "Begin: ${DATE_START}\nEnd: `date -R`" > "${SERVER}"/LAST_BUILD
More information about the Debian-live-changes
mailing list