[Debian-live-changes] r2317 - in dists/trunk/live-helper: docs helpers
daniel at alioth.debian.org
daniel at alioth.debian.org
Sun Jul 1 10:53:38 UTC 2007
Author: daniel
Date: 2007-07-01 10:53:38 +0000 (Sun, 01 Jul 2007)
New Revision: 2317
Modified:
dists/trunk/live-helper/docs/ChangeLog
dists/trunk/live-helper/helpers/lh_binary_debian-installer
Log:
Modified: dists/trunk/live-helper/docs/ChangeLog
===================================================================
--- dists/trunk/live-helper/docs/ChangeLog 2007-07-01 10:32:24 UTC (rev 2316)
+++ dists/trunk/live-helper/docs/ChangeLog 2007-07-01 10:53:38 UTC (rev 2317)
@@ -1,3 +1,8 @@
+2007-07-01 Daniel Baumann <daniel at debian.org>
+
+ * helpers/lh_binary_debian-installer:
+ - Added caching of udebs.
+
2007-06-30 Daniel Baumann <daniel at debian.org>
* functions/releases.sh, helpers/lh_binary_disk, lh_source_disk,
Modified: dists/trunk/live-helper/helpers/lh_binary_debian-installer
===================================================================
--- dists/trunk/live-helper/helpers/lh_binary_debian-installer 2007-07-01 10:32:24 UTC (rev 2316)
+++ dists/trunk/live-helper/helpers/lh_binary_debian-installer 2007-07-01 10:53:38 UTC (rev 2317)
@@ -286,9 +286,21 @@
# Downloading udebs
for UDEB in ${UDEBS}
do
- wget "${LIVE_MIRROR_BOOTSTRAP}"/${UDEB}
+ if [ -f ../cache/packages_debian-installer.udeb/"`basename ${UDEB}`" ]
+ then
+ # Copying cached udebs
+ cp -l ../cache/packages_debian-installer.udeb/"`basename ${UDEB}`" ./
+ else
+ # Downloading udebs
+ wget "${LIVE_MIRROR_BOOTSTRAP}"/${UDEB}
+ fi
done
+# Caching udebs
+rm -rf ../cache/packages_debian-installer.udeb
+mkdir -p ../cache/packages_debian-installer.udeb
+cp -l *.udeb ../cache/packages_debian-installer.udeb
+
# Including local udebs
if ls ../config/binary_local-udebs/* &> /dev/null
then
More information about the Debian-live-changes
mailing list