[SCM] debian-live branch, master, updated. 1.0_a47-1-4-gd59d511
Daniel Baumann
daniel at debian.org
Mon Jun 9 08:08:01 UTC 2008
The following commit has been merged in the master branch:
commit d59d5118134fc092fbd58c582c6cd6a651f9b5ba
Author: Daniel Baumann <daniel at debian.org>
Date: Mon Jun 9 10:04:44 2008 +0200
Only saving source indices to indices cache if source indices are actually existing, thanks to Thanatermesis <thanatermesis.ecvs at elivecd.net>.
diff --git a/helpers/lh_chroot_sources b/helpers/lh_chroot_sources
index 154a224..677b50f 100755
--- a/helpers/lh_chroot_sources
+++ b/helpers/lh_chroot_sources
@@ -200,10 +200,19 @@ case "${1}" in
cp -f chroot/etc/apt/trusted.gpg* cache/indices_bootstrap
cp -f chroot/var/cache/apt/pkgcache.bin cache/indices_bootstrap
- cp -f chroot/var/cache/apt/srcpkgcache.bin cache/indices_bootstrap
+
+ if ls chroot/var/cache/apt/srcpkgcache.bin > /dev/null 2>&1
+ then
+ cp -f chroot/var/cache/apt/srcpkgcache.bin cache/indices_bootstrap
+ fi
cp -f chroot/var/lib/apt/lists/*_Packages cache/indices_bootstrap
- cp -f chroot/var/lib/apt/lists/*_Sources cache/indices_bootstrap
+
+ if ls chroot/var/lib/apt/lists/*_Sources > /dev/null 2>&1
+ then
+ cp -f chroot/var/lib/apt/lists/*_Sources cache/indices_bootstrap
+ fi
+
cp -f chroot/var/lib/apt/*_Release* cache/indices_bootstrap
fi
fi
--
debian-live
More information about the debian-live-changes
mailing list