diff options
Diffstat (limited to 'helpers/lh_chroot_sources')
-rwxr-xr-x | helpers/lh_chroot_sources | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/helpers/lh_chroot_sources b/helpers/lh_chroot_sources index 154a224a5..677b50f64 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 |