Updating cache directory names to consistent naming scheme.
This commit is contained in:
parent
ead507b47c
commit
434307c22d
|
@ -73,7 +73,7 @@ then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
if [ "${LB_CACHE}" = "true" ] && Find_files cache/stages_rootfs/filesystem*
|
||||
if [ "${LB_CACHE}" = "true" ] && Find_files cache/binary_rootfs/filesystem*
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
|
@ -85,10 +85,10 @@ ${LB_ROOT_COMMAND} rm -rf chroot/chroot
|
|||
${LB_ROOT_COMMAND} rm -rf chroot.tmp
|
||||
|
||||
# Copying new chroot
|
||||
if [ -d cache/stages_bootstrap ] && [ "${LB_CHROOT_FILESYSTEM}" != "none" ]
|
||||
if [ -d cache/bootstrap ] && [ "${LB_CHROOT_FILESYSTEM}" != "none" ]
|
||||
then
|
||||
${LB_ROOT_COMMAND} mv chroot chroot.tmp
|
||||
${LB_ROOT_COMMAND} cp -a cache/stages_bootstrap chroot
|
||||
${LB_ROOT_COMMAND} cp -a cache/bootstrap chroot
|
||||
${LB_ROOT_COMMAND} touch chroot/chroot.cache
|
||||
else
|
||||
${LB_ROOT_COMMAND} cp -a chroot chroot.tmp
|
||||
|
|
|
@ -73,7 +73,7 @@ Check_package chroot/usr/bin/wget wget
|
|||
Check_package chroot/usr/bin/apt-ftparchive apt-utils
|
||||
|
||||
# Restoring cache
|
||||
Restore_cache cache/packages_binary
|
||||
Restore_cache cache/packages.binary
|
||||
|
||||
# Installing depends
|
||||
Install_package
|
||||
|
@ -521,14 +521,14 @@ then
|
|||
if [ "${LB_DEBIAN_INSTALLER}" != "live" ]
|
||||
then
|
||||
# Including base debian packages
|
||||
if ls cache/packages_bootstrap/*.deb > /dev/null 2>&1
|
||||
if ls cache/packages.bootstrap/*.deb > /dev/null 2>&1
|
||||
then
|
||||
for FILE in cache/packages_bootstrap/*.deb
|
||||
for FILE in cache/packages.bootstrap/*.deb
|
||||
do
|
||||
Install_file "${FILE}" "binary/pool"
|
||||
done
|
||||
else
|
||||
Echo_error "Could not find packages in cache/packages_bootstrap."
|
||||
Echo_error "Could not find packages in cache/packages.bootstrap."
|
||||
Echo_error "You selected values of LB_CACHE, LB_CACHE_PACKAGES, LB_CACHE_STAGES and LB_DEBIAN_INSTALLER which will result in 'bootstrap' packages not being cached - these are required when integrating the Debian Installer."
|
||||
exit 1
|
||||
fi
|
||||
|
@ -623,10 +623,10 @@ then
|
|||
|
||||
for UDEB in ${UDEBS}
|
||||
do
|
||||
if [ -f ../cache/packages_debian-installer.udeb/"$(basename ${UDEB})" ]
|
||||
if [ -f ../cache/packages.binary_debian-installer.udeb/"$(basename ${UDEB})" ]
|
||||
then
|
||||
# Copying cached udebs
|
||||
cp ../cache/packages_debian-installer.udeb/"$(basename ${UDEB})" ./
|
||||
cp ../cache/packages.binary_debian-installer.udeb/"$(basename ${UDEB})" ./
|
||||
else
|
||||
# Downloading udebs
|
||||
if ! ls "$(basename ${UDEB} | awk -F_ '{ print $1 }')"_* > /dev/null 2>&1
|
||||
|
@ -637,9 +637,9 @@ then
|
|||
done
|
||||
|
||||
# Caching udebs
|
||||
rm -rf ../cache/packages_debian-installer.udeb
|
||||
mkdir -p ../cache/packages_debian-installer.udeb
|
||||
cp *.udeb ../cache/packages_debian-installer.udeb
|
||||
rm -rf ../cache/packages.binary_debian-installer.udeb
|
||||
mkdir -p ../cache/packages.binary_debian-installer.udeb
|
||||
cp *.udeb ../cache/packages.binary_debian-installer.udeb
|
||||
|
||||
# Including local udebs
|
||||
if Find_files ../config/packages.binary/*_"${LB_ARCHITECTURES}".udeb || Find_files ../config/packages/*_"${LB_ARCHITECTURES}".udeb
|
||||
|
@ -853,7 +853,7 @@ then
|
|||
fi
|
||||
|
||||
# Saving cache
|
||||
Save_cache cache/packages_binary
|
||||
Save_cache cache/packages.binary
|
||||
|
||||
# Removing depends
|
||||
Remove_package
|
||||
|
|
|
@ -54,7 +54,7 @@ Check_crossarchitectures
|
|||
Check_package chroot/usr/sbin/grub grub-legacy
|
||||
|
||||
# Restoring cache
|
||||
Restore_cache cache/packages_binary
|
||||
Restore_cache cache/packages.binary
|
||||
|
||||
# Installing depends
|
||||
Install_package
|
||||
|
@ -300,7 +300,7 @@ sed -i -e "s|LB_BOOTAPPEND_INSTALL|${LB_BOOTAPPEND_INSTALL}|" -e "s|LB_BOOTAPPEN
|
|||
sed -i -e 's|\ $||g' binary/boot/grub/menu.lst
|
||||
|
||||
# Saving cache
|
||||
Save_cache cache/packages_binary
|
||||
Save_cache cache/packages.binary
|
||||
|
||||
# Removing depends
|
||||
Remove_package
|
||||
|
|
|
@ -54,7 +54,7 @@ Check_crossarchitectures
|
|||
Check_package chroot/usr/bin/grub-mkimage grub-pc
|
||||
|
||||
# Restoring cache
|
||||
Restore_cache cache/packages_binary
|
||||
Restore_cache cache/packages.binary
|
||||
|
||||
# Installing depends
|
||||
Install_package
|
||||
|
@ -270,7 +270,7 @@ sed -i -e "s|LB_BOOTAPPEND_INSTALL|${LB_BOOTAPPEND_INSTALL}|" -e "s|LB_BOOTAPPEN
|
|||
sed -i -e 's|\ $||g' binary/boot/grub/grub.cfg
|
||||
|
||||
# Saving cache
|
||||
Save_cache cache/packages_binary
|
||||
Save_cache cache/packages.binary
|
||||
|
||||
# Removing depends
|
||||
Remove_package
|
||||
|
|
|
@ -73,7 +73,7 @@ case "${LB_BOOTLOADER}" in
|
|||
esac
|
||||
|
||||
# Restoring cache
|
||||
Restore_cache cache/packages_binary
|
||||
Restore_cache cache/packages.binary
|
||||
|
||||
# Installing depends
|
||||
Install_package
|
||||
|
@ -283,7 +283,7 @@ fi
|
|||
mv chroot/binary.img ./
|
||||
|
||||
# Saving cache
|
||||
Save_cache cache/packages_binary
|
||||
Save_cache cache/packages.binary
|
||||
|
||||
# Removing depends
|
||||
Remove_package
|
||||
|
|
|
@ -61,7 +61,7 @@ then
|
|||
fi
|
||||
|
||||
# Restoring cache
|
||||
Restore_cache cache/packages_binary
|
||||
Restore_cache cache/packages.binary
|
||||
|
||||
# Installing depends
|
||||
Install_package
|
||||
|
@ -229,7 +229,7 @@ case "${LB_BUILD_WITH_CHROOT}" in
|
|||
esac
|
||||
|
||||
# Saving cache
|
||||
Save_cache cache/packages_binary
|
||||
Save_cache cache/packages.binary
|
||||
|
||||
# Removing depends
|
||||
Remove_package
|
||||
|
|
|
@ -73,7 +73,7 @@ case "${LB_MEMTEST}" in
|
|||
esac
|
||||
|
||||
# Restoring cache
|
||||
Restore_cache cache/packages_binary
|
||||
Restore_cache cache/packages.binary
|
||||
|
||||
# Installing depends
|
||||
Install_package
|
||||
|
@ -110,7 +110,7 @@ case "${LB_BUILD_WITH_CHROOT}" in
|
|||
esac
|
||||
|
||||
# Saving cache
|
||||
Save_cache cache/packages_binary
|
||||
Save_cache cache/packages.binary
|
||||
|
||||
# Removing depends
|
||||
Remove_package
|
||||
|
|
|
@ -54,7 +54,7 @@ then
|
|||
Check_package chroot/usr/bin/elftoaout sparc-utils
|
||||
|
||||
# Restoring cache
|
||||
Restore_cache cache/packages_binary
|
||||
Restore_cache cache/packages.binary
|
||||
|
||||
# Installing depends
|
||||
Install_package
|
||||
|
@ -112,7 +112,7 @@ then
|
|||
rm -f kernel.tmp
|
||||
|
||||
# Saving cache
|
||||
Save_cache cache/packages_binary
|
||||
Save_cache cache/packages.binary
|
||||
|
||||
# Removing depends
|
||||
Remove_package
|
||||
|
|
|
@ -42,7 +42,7 @@ if ls config/package-lists/*.list > /dev/null 2>&1 || \
|
|||
ls config/package-lists/*.list.binary > /dev/null 2>&1
|
||||
then
|
||||
# Restoring cache
|
||||
Restore_cache cache/packages_chroot
|
||||
Restore_cache cache/packages.chroot
|
||||
|
||||
# Check depends
|
||||
Check_package chroot/usr/bin/apt-ftparchive apt-utils
|
||||
|
@ -127,7 +127,7 @@ then
|
|||
Remove_package
|
||||
|
||||
# Saving cache
|
||||
Save_cache cache/packages_chroot
|
||||
Save_cache cache/packages.chroot
|
||||
|
||||
# Creating stage file
|
||||
Create_stagefile .build/binary_package-lists
|
||||
|
|
|
@ -67,14 +67,14 @@ mkdir -p binary/${INITFS}
|
|||
|
||||
for STAGE in ${LB_CACHE_STAGES}
|
||||
do
|
||||
if [ "${STAGE}" = "rootfs" ] && [ -d cache/stages_rootfs ]
|
||||
if [ "${STAGE}" = "rootfs" ] && [ -d cache/binary_rootfs ]
|
||||
then
|
||||
# Removing old chroot
|
||||
rm -rf binary/"${INITFS}"/filesystem.*
|
||||
|
||||
# Restoring old cache
|
||||
mkdir -p binary/"${INITFS}"
|
||||
${LB_ROOT_COMMAND} cp -a cache/stages_rootfs/filesystem.* binary/"${INITFS}"
|
||||
${LB_ROOT_COMMAND} cp -a cache/binary_rootfs/filesystem.* binary/"${INITFS}"
|
||||
|
||||
if [ -n "${LB_ROOT_COMMAND}" ]
|
||||
then
|
||||
|
@ -93,7 +93,7 @@ case "${LB_CHROOT_FILESYSTEM}" in
|
|||
Check_package chroot/sbin/mkfs.${LB_BINARY_FILESYSTEM} e2fsprogs
|
||||
|
||||
# Restoring cache
|
||||
Restore_cache cache/packages_binary
|
||||
Restore_cache cache/packages.binary
|
||||
|
||||
# Installing depends
|
||||
Install_package
|
||||
|
@ -211,7 +211,7 @@ case "${LB_CHROOT_FILESYSTEM}" in
|
|||
esac
|
||||
|
||||
# Saving cache
|
||||
Save_cache cache/packages_binary
|
||||
Save_cache cache/packages.binary
|
||||
;;
|
||||
|
||||
jffs2)
|
||||
|
@ -219,7 +219,7 @@ case "${LB_CHROOT_FILESYSTEM}" in
|
|||
Check_package chroot/usr/sbin/mkfs.jffs2 mtd-tools
|
||||
|
||||
# Restoring cache
|
||||
Restore_cache cache/packages_binary
|
||||
Restore_cache cache/packages.binary
|
||||
|
||||
# Installing depends
|
||||
Install_package
|
||||
|
@ -293,7 +293,7 @@ case "${LB_CHROOT_FILESYSTEM}" in
|
|||
esac
|
||||
|
||||
# Saving cache
|
||||
Save_cache cache/packages_binary
|
||||
Save_cache cache/packages.binary
|
||||
;;
|
||||
|
||||
plain)
|
||||
|
@ -318,7 +318,7 @@ case "${LB_CHROOT_FILESYSTEM}" in
|
|||
Check_package chroot/usr/share/doc/squashfs-tools squashfs-tools
|
||||
|
||||
# Restoring cache
|
||||
Restore_cache cache/packages_binary
|
||||
Restore_cache cache/packages.binary
|
||||
|
||||
# Installing depends
|
||||
Install_package
|
||||
|
@ -457,7 +457,7 @@ case "${LB_CHROOT_FILESYSTEM}" in
|
|||
fi
|
||||
|
||||
# Saving cache
|
||||
Save_cache cache/packages_binary
|
||||
Save_cache cache/packages.binary
|
||||
;;
|
||||
|
||||
none)
|
||||
|
@ -484,18 +484,18 @@ for STAGE in ${LB_CACHE_STAGES}
|
|||
do
|
||||
if [ "${STAGE}" = "rootfs" ]
|
||||
then
|
||||
rm -rf cache/stages_rootfs
|
||||
rm -rf cache/binary_rootfs
|
||||
|
||||
mkdir -p cache/stages_rootfs
|
||||
mkdir -p cache/binary_rootfs
|
||||
|
||||
if [ "${LB_CHROOT_FILESYSTEM}" != "none" ]
|
||||
then
|
||||
${LB_ROOT_COMMAND} cp -a binary/"${INITFS}"/filesystem.* cache/stages_rootfs
|
||||
${LB_ROOT_COMMAND} cp -a binary/"${INITFS}"/filesystem.* cache/binary_rootfs
|
||||
fi
|
||||
|
||||
if [ -n "${LB_ROOT_COMMAND}" ]
|
||||
then
|
||||
${LB_ROOT_COMMAND} chown -R $(whoami):$(whoami) cache/stages_rootfs
|
||||
${LB_ROOT_COMMAND} chown -R $(whoami):$(whoami) cache/binary_rootfs
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
|
|
@ -64,7 +64,7 @@ Check_architectures sparc
|
|||
Check_package chroot/usr/sbin/silo silo
|
||||
|
||||
# Restoring cache
|
||||
Restore_cache cache/packages_binary
|
||||
Restore_cache cache/packages.binary
|
||||
|
||||
# Installing depends
|
||||
Install_package
|
||||
|
@ -230,7 +230,7 @@ case "${LB_BINARY_IMAGES}" in
|
|||
esac
|
||||
|
||||
# Saving cache
|
||||
Save_cache cache/packages_binary
|
||||
Save_cache cache/packages.binary
|
||||
|
||||
# Removing depends
|
||||
Remove_package
|
||||
|
|
|
@ -129,7 +129,7 @@ case "${LB_BUILD_WITH_CHROOT}" in
|
|||
esac
|
||||
|
||||
# Restoring cache
|
||||
Restore_cache cache/packages_binary
|
||||
Restore_cache cache/packages.binary
|
||||
|
||||
# Installing depends
|
||||
Install_package
|
||||
|
@ -255,7 +255,7 @@ esac
|
|||
case "${LB_BUILD_WITH_CHROOT}" in
|
||||
true)
|
||||
# Saving cache
|
||||
Save_cache cache/packages_binary
|
||||
Save_cache cache/packages.binary
|
||||
|
||||
# Removing depends
|
||||
Remove_package
|
||||
|
|
|
@ -53,7 +53,7 @@ then
|
|||
fi
|
||||
|
||||
# Restoring cache
|
||||
Restore_cache cache/packages_binary
|
||||
Restore_cache cache/packages.binary
|
||||
|
||||
# Installing depends
|
||||
Install_package
|
||||
|
@ -102,7 +102,7 @@ ${LB_ROOT_COMMAND} umount binary.tmp
|
|||
rmdir binary.tmp
|
||||
|
||||
# Saving cache
|
||||
Save_cache cache/packages_binary
|
||||
Save_cache cache/packages.binary
|
||||
|
||||
# Removing depends
|
||||
Remove_package
|
||||
|
|
|
@ -51,7 +51,7 @@ case "${LB_ARCHITECTURES}" in
|
|||
Check_package chroot/usr/share/win32/win32-loader.exe win32-loader
|
||||
|
||||
# Restoring cache
|
||||
Restore_cache cache/packages_binary
|
||||
Restore_cache cache/packages.binary
|
||||
|
||||
# Installing depends
|
||||
Install_package
|
||||
|
@ -88,7 +88,7 @@ EOF
|
|||
fi
|
||||
|
||||
# Saving cache
|
||||
Save_cache cache/packages_binary
|
||||
Save_cache cache/packages.binary
|
||||
|
||||
# Removing depends
|
||||
Remove_package
|
||||
|
|
|
@ -54,7 +54,7 @@ Check_crossarchitectures
|
|||
Check_package chroot/usr/lib/yaboot/yaboot yaboot
|
||||
|
||||
# Restoring cache
|
||||
Restore_cache cache/packages_binary
|
||||
Restore_cache cache/packages.binary
|
||||
|
||||
# Installing depends
|
||||
Install_package
|
||||
|
@ -275,7 +275,7 @@ case "${LB_BINARY_IMAGES}" in
|
|||
esac
|
||||
|
||||
# Saving cache
|
||||
Save_cache cache/packages_binary
|
||||
Save_cache cache/packages.binary
|
||||
|
||||
# Removing depends
|
||||
Remove_package
|
||||
|
|
|
@ -38,7 +38,7 @@ do
|
|||
# Checking stage file
|
||||
Check_stagefile .build/bootstrap_cache.restore
|
||||
|
||||
if [ -d cache/stages_bootstrap ]
|
||||
if [ -d cache/bootstrap ]
|
||||
then
|
||||
# Checking lock file
|
||||
Check_lockfile .lock
|
||||
|
@ -50,7 +50,7 @@ do
|
|||
rm -rf chroot
|
||||
|
||||
# Restoring old cache
|
||||
${LB_ROOT_COMMAND} cp -a cache/stages_bootstrap chroot
|
||||
${LB_ROOT_COMMAND} cp -a cache/bootstrap chroot
|
||||
|
||||
if [ -n "${LB_ROOT_COMMAND}" ]
|
||||
then
|
||||
|
@ -77,15 +77,15 @@ do
|
|||
# Creating lock file
|
||||
Create_lockfile .lock
|
||||
|
||||
rm -rf cache/stages_bootstrap
|
||||
rm -rf cache/bootstrap
|
||||
|
||||
mkdir -p cache
|
||||
|
||||
${LB_ROOT_COMMAND} cp -a chroot cache/stages_bootstrap
|
||||
${LB_ROOT_COMMAND} cp -a chroot cache/bootstrap
|
||||
|
||||
if [ -n "${LB_ROOT_COMMAND}" ]
|
||||
then
|
||||
${LB_ROOT_COMMAND} chown -R $(whoami):$(whoami) cache/stages_bootstrap
|
||||
${LB_ROOT_COMMAND} chown -R $(whoami):$(whoami) cache/bootstrap
|
||||
fi
|
||||
|
||||
# Creating stage file
|
||||
|
|
|
@ -122,10 +122,10 @@ if [ -x "/usr/bin/cdebootstrap" ] || [ -x "/usr/bin/cdebootstrap-static" ]
|
|||
then
|
||||
if [ "${LB_CACHE_PACKAGES}" = "true" ]
|
||||
then
|
||||
if ls cache/packages_bootstrap/*.deb > /dev/null 2>&1
|
||||
if ls cache/packages.bootstrap/*.deb > /dev/null 2>&1
|
||||
then
|
||||
mkdir -p chroot/var/cache/bootstrap
|
||||
cp cache/packages_bootstrap/*.deb chroot/var/cache/bootstrap
|
||||
cp cache/packages.bootstrap/*.deb chroot/var/cache/bootstrap
|
||||
fi
|
||||
|
||||
Echo_breakage "Running ${LB_BOOTSTRAP} (download-only)... "
|
||||
|
@ -137,11 +137,11 @@ then
|
|||
fi
|
||||
|
||||
# Removing old cache
|
||||
rm -f cache/packages_bootstrap/*.deb
|
||||
rm -f cache/packages.bootstrap/*.deb
|
||||
|
||||
# Saving new cache
|
||||
mkdir -p cache/packages_bootstrap
|
||||
cp chroot/var/cache/bootstrap/*.deb cache/packages_bootstrap
|
||||
mkdir -p cache/packages.bootstrap
|
||||
cp chroot/var/cache/bootstrap/*.deb cache/packages.bootstrap
|
||||
fi
|
||||
|
||||
Echo_breakage "Running ${LB_BOOTSTRAP}... "
|
||||
|
|
|
@ -117,10 +117,10 @@ if [ -x "/usr/sbin/debootstrap" ]
|
|||
then
|
||||
if [ "${LB_CACHE_PACKAGES}" = "true" ]
|
||||
then
|
||||
if ls cache/packages_bootstrap/*.deb > /dev/null 2>&1
|
||||
if ls cache/packages.bootstrap/*.deb > /dev/null 2>&1
|
||||
then
|
||||
mkdir -p chroot/var/cache/apt/archives
|
||||
cp cache/packages_bootstrap/*.deb chroot/var/cache/apt/archives
|
||||
cp cache/packages.bootstrap/*.deb chroot/var/cache/apt/archives
|
||||
fi
|
||||
|
||||
Echo_breakage "Running debootstrap (download-only)... "
|
||||
|
@ -132,11 +132,11 @@ then
|
|||
fi
|
||||
|
||||
# Removing old cache
|
||||
rm -f cache/packages_bootstrap/*.deb
|
||||
rm -f cache/packages.bootstrap/*.deb
|
||||
|
||||
# Saving new cache
|
||||
mkdir -p cache/packages_bootstrap
|
||||
cp chroot/var/cache/apt/archives/*.deb cache/packages_bootstrap
|
||||
mkdir -p cache/packages.bootstrap
|
||||
cp chroot/var/cache/apt/archives/*.deb cache/packages.bootstrap
|
||||
fi
|
||||
|
||||
Echo_breakage "Running debootstrap... "
|
||||
|
|
|
@ -56,7 +56,7 @@ case "${1}" in
|
|||
Create_lockfile .lock
|
||||
|
||||
# Restoring cache
|
||||
Restore_cache cache/packages_chroot
|
||||
Restore_cache cache/packages.chroot
|
||||
|
||||
# Configure custom sources.list
|
||||
|
||||
|
@ -431,41 +431,41 @@ EOF
|
|||
fi
|
||||
|
||||
# Update indices from cache
|
||||
if [ "${LB_CACHE_INDICES}" = "true" ] && [ -d cache/indices_bootstrap ]
|
||||
if [ "${LB_CACHE_INDICES}" = "true" ] && [ -d cache/indices.bootstrap ]
|
||||
then
|
||||
if Find_files cache/indices_bootstrap/secring.gpg*
|
||||
if Find_files cache/indices.bootstrap/secring.gpg*
|
||||
then
|
||||
cp -f cache/indices_bootstrap/secring.gpg* chroot/etc/apt
|
||||
cp -f cache/indices.bootstrap/secring.gpg* chroot/etc/apt
|
||||
fi
|
||||
|
||||
if Find_files cache/indices_bootstrap/trusted.gpg*
|
||||
if Find_files cache/indices.bootstrap/trusted.gpg*
|
||||
then
|
||||
cp -rf cache/indices_bootstrap/trusted.gpg* chroot/etc/apt
|
||||
cp -rf cache/indices.bootstrap/trusted.gpg* chroot/etc/apt
|
||||
fi
|
||||
|
||||
if [ -f cache/indices_bootstrap/pkgcache.bin ]
|
||||
if [ -f cache/indices.bootstrap/pkgcache.bin ]
|
||||
then
|
||||
cp -f cache/indices_bootstrap/pkgcache.bin chroot/var/cache/apt
|
||||
cp -f cache/indices.bootstrap/pkgcache.bin chroot/var/cache/apt
|
||||
fi
|
||||
|
||||
if [ -f cache/indices_bootstrap/srcpkgcache.bin ]
|
||||
if [ -f cache/indices.bootstrap/srcpkgcache.bin ]
|
||||
then
|
||||
cp -f cache/indices_bootstrap/srcpkgcache.bin chroot/var/cache/apt
|
||||
cp -f cache/indices.bootstrap/srcpkgcache.bin chroot/var/cache/apt
|
||||
fi
|
||||
|
||||
if Find_files cache/indices_bootstrap/*_Packages
|
||||
if Find_files cache/indices.bootstrap/*_Packages
|
||||
then
|
||||
cp -f cache/indices_bootstrap/*_Packages chroot/var/lib/apt/lists
|
||||
cp -f cache/indices.bootstrap/*_Packages chroot/var/lib/apt/lists
|
||||
fi
|
||||
|
||||
if Find_files cache/indices_bootstrap/*_Sources
|
||||
if Find_files cache/indices.bootstrap/*_Sources
|
||||
then
|
||||
cp -f cache/indices_bootstrap/*_Sources chroot/var/lib/apt/lists
|
||||
cp -f cache/indices.bootstrap/*_Sources chroot/var/lib/apt/lists
|
||||
fi
|
||||
|
||||
if Find_files cache/indices_bootstrap/*Release*
|
||||
if Find_files cache/indices.bootstrap/*Release*
|
||||
then
|
||||
cp -f cache/indices_bootstrap/*Release* chroot/var/lib/apt/lists
|
||||
cp -f cache/indices.bootstrap/*Release* chroot/var/lib/apt/lists
|
||||
fi
|
||||
|
||||
if [ "${LB_APT}" = "aptitude" ] && [ ! -x /usr/bin/aptitude ]
|
||||
|
@ -536,31 +536,31 @@ EOF
|
|||
|
||||
if [ "${LB_CACHE_INDICES}" = "true" ]
|
||||
then
|
||||
mkdir -p cache/indices_bootstrap
|
||||
mkdir -p cache/indices.bootstrap
|
||||
|
||||
cp -f chroot/etc/apt/secring.gpg* cache/indices_bootstrap
|
||||
cp -rf chroot/etc/apt/trusted.gpg* cache/indices_bootstrap
|
||||
cp -f chroot/etc/apt/secring.gpg* cache/indices.bootstrap
|
||||
cp -rf 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/pkgcache.bin cache/indices.bootstrap
|
||||
|
||||
if Find_files chroot/var/cache/apt/srcpkgcache.bin
|
||||
then
|
||||
cp -f chroot/var/cache/apt/srcpkgcache.bin cache/indices_bootstrap
|
||||
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/*_Packages cache/indices.bootstrap
|
||||
|
||||
if Find_files chroot/var/lib/apt/lists/*_Sources
|
||||
then
|
||||
cp -f chroot/var/lib/apt/lists/*_Sources cache/indices_bootstrap
|
||||
cp -f chroot/var/lib/apt/lists/*_Sources cache/indices.bootstrap
|
||||
fi
|
||||
|
||||
cp -f chroot/var/lib/apt/lists/*Release* cache/indices_bootstrap
|
||||
cp -f chroot/var/lib/apt/lists/*Release* cache/indices.bootstrap
|
||||
fi
|
||||
fi
|
||||
|
||||
# Saving cache
|
||||
Save_cache cache/packages_chroot
|
||||
Save_cache cache/packages.chroot
|
||||
|
||||
# Creating stage file
|
||||
Create_stagefile .build/chroot_archives
|
||||
|
|
|
@ -35,7 +35,7 @@ do
|
|||
# Checking stage file
|
||||
Check_stagefile .build/chroot_cache.restore
|
||||
|
||||
if [ -d cache/stages_chroot ]
|
||||
if [ -d cache/chroot ]
|
||||
then
|
||||
# Checking lock file
|
||||
Check_lockfile .lock
|
||||
|
@ -47,7 +47,7 @@ do
|
|||
rm -rf chroot
|
||||
|
||||
# Restoring old cache
|
||||
${LB_ROOT_COMMAND} cp -a cache/stages_chroot chroot
|
||||
${LB_ROOT_COMMAND} cp -a cache/chroot chroot
|
||||
|
||||
if [ -n "${LB_ROOT_COMMAND}" ]
|
||||
then
|
||||
|
@ -73,15 +73,15 @@ do
|
|||
# Creating lock file
|
||||
Create_lockfile .lock
|
||||
|
||||
rm -rf cache/stages_chroot
|
||||
rm -rf cache/chroot
|
||||
|
||||
mkdir -p cache
|
||||
|
||||
${LB_ROOT_COMMAND} cp -a chroot cache/stages_chroot
|
||||
${LB_ROOT_COMMAND} cp -a chroot cache/chroot
|
||||
|
||||
if [ -n "${LB_ROOT_COMMAND}" ]
|
||||
then
|
||||
${LB_ROOT_COMMAND} chown -R $(whoami):$(whoami) cache/stages_chroot
|
||||
${LB_ROOT_COMMAND} chown -R $(whoami):$(whoami) cache/chroot
|
||||
fi
|
||||
|
||||
# Creating stage file
|
||||
|
|
|
@ -76,7 +76,7 @@ fi
|
|||
if Find_files config/hooks/*.chroot
|
||||
then
|
||||
# Restoring cache
|
||||
Restore_cache cache/packages_chroot
|
||||
Restore_cache cache/packages.chroot
|
||||
|
||||
for _HOOK in config/hooks/*.chroot
|
||||
do
|
||||
|
@ -97,7 +97,7 @@ then
|
|||
done
|
||||
|
||||
# Saving cache
|
||||
Save_cache cache/packages_chroot
|
||||
Save_cache cache/packages.chroot
|
||||
|
||||
# Creating stage file
|
||||
Create_stagefile .build/chroot_hooks
|
||||
|
|
|
@ -45,7 +45,7 @@ Create_lockfile .lock
|
|||
if [ -e chroot/root/packages.chroot ] && [ -s chroot/root/packages.chroot ]
|
||||
then
|
||||
# Restoring cache
|
||||
Restore_cache cache/packages_chroot
|
||||
Restore_cache cache/packages.chroot
|
||||
|
||||
# Installing packages
|
||||
case "${LB_APT}" in
|
||||
|
@ -62,7 +62,7 @@ then
|
|||
rm -f chroot/root/packages.chroot
|
||||
|
||||
# Saving cache
|
||||
Save_cache cache/packages_chroot
|
||||
Save_cache cache/packages.chroot
|
||||
|
||||
fi
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ Create_lockfile .lock
|
|||
if Find_files config/chroot_local-patches/
|
||||
then
|
||||
# Restoring cache
|
||||
Restore_cache cache/packages_chroot
|
||||
Restore_cache cache/packages.chroot
|
||||
|
||||
# Checking depends
|
||||
Check_package chroot/usr/bin/patch patch
|
||||
|
@ -59,7 +59,7 @@ then
|
|||
Remove_package
|
||||
|
||||
# Saving cache
|
||||
Save_cache cache/packages_chroot
|
||||
Save_cache cache/packages.chroot
|
||||
|
||||
# Creating stage file
|
||||
Create_stagefile .build/chroot_local-patches
|
||||
|
|
|
@ -58,7 +58,7 @@ then
|
|||
done
|
||||
|
||||
# Restoring cache
|
||||
Restore_cache cache/packages_chroot
|
||||
Restore_cache cache/packages.chroot
|
||||
|
||||
# Checking depends
|
||||
case "${LB_TASKSEL}" in
|
||||
|
@ -144,7 +144,7 @@ then
|
|||
rm -f chroot/root/chroot_tasks
|
||||
|
||||
# Saving cache
|
||||
Save_cache cache/packages_chroot
|
||||
Save_cache cache/packages.chroot
|
||||
|
||||
# Creating stage file
|
||||
Create_stagefile .build/chroot_task-lists.${_PASS}
|
||||
|
|
|
@ -109,7 +109,7 @@ do
|
|||
|
||||
--remove)
|
||||
LB=1 "${0}" --all
|
||||
rm -rf cache/packages_*
|
||||
rm -rf cache/packages.*
|
||||
;;
|
||||
|
||||
--purge)
|
||||
|
|
|
@ -97,7 +97,7 @@ ${LB_ROOT_COMMAND} umount source.tmp
|
|||
rmdir source.tmp
|
||||
|
||||
# Saving cache
|
||||
Save_cache cache/packages_binary
|
||||
Save_cache cache/packages.binary
|
||||
|
||||
# Removing depends
|
||||
Remove_package
|
||||
|
|
Loading…
Reference in New Issue