diff options
| author | Daniel Baumann <daniel@debian.org> | 2010-06-23 18:30:13 +0200 | 
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:17:12 +0100 | 
| commit | 97d6712656de371c36510f9528dadc941da879e3 (patch) | |
| tree | aa90ccdd09a1ae00b12cd411c9b05ef7412072b5 | |
| parent | 264c2688765c726df320124c73c8efd6db902615 (diff) | |
| download | vyos-live-build-97d6712656de371c36510f9528dadc941da879e3.tar.gz vyos-live-build-97d6712656de371c36510f9528dadc941da879e3.zip | |
Globally using packages cache during runtime of chroot_source (Closes: #586927).
| -rwxr-xr-x | helpers/chroot_sources | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/helpers/chroot_sources b/helpers/chroot_sources index 3e823506b..413d2f520 100755 --- a/helpers/chroot_sources +++ b/helpers/chroot_sources @@ -41,6 +41,9 @@ case "${1}" in  		# Creating lock file  		Create_lockfile .lock +		# Restoring cache +		Restore_cache cache/packages_chroot +  		# Configure custom sources.list  		echo "deb ${LH_MIRROR_CHROOT} ${LH_DISTRIBUTION} ${LH_ARCHIVE_AREAS}" > chroot/etc/apt/sources.list @@ -197,9 +200,6 @@ case "${1}" in  						;;  				esac -				# Restoring cache -				Restore_cache cache/packages_chroot -  				# Check depends  				Check_package chroot/usr/bin/apt-ftparchive apt-utils @@ -293,9 +293,6 @@ case "${1}" in  				# Removing depends  				Remove_package - -				# Saving cache -				Save_cache cache/packages_chroot  			else  				Echo_warning "Local packages must be named with suffix '_all.deb' or '_\$architecture.deb'."  			fi @@ -409,6 +406,9 @@ case "${1}" in  			fi  		fi +		# Saving cache +		Save_cache cache/packages_chroot +  		# Creating stage file  		Create_stagefile .stage/chroot_sources  		;; | 
