[Angstrom-devel] Koen Kooi : narcissus: clean stale cache files after build, not before

Angstrom Git Repos ang-git at xora.vm.bytemark.co.uk
Tue Jun 7 10:42:00 CEST 2011


Module: narcissus
Branch: master
Commit: a2e97ebe796c66a879cd4daa431d70b936a3fa55

Author: Koen Kooi <koen at dominion.thruhere.net>
Date:   Tue Jun  7 10:41:15 2011 +0200

narcissus: clean stale cache files after build, not before

Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>

---

 scripts/assemble-image.sh  |    6 ++++++
 scripts/configure-image.sh |    1 -
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/scripts/assemble-image.sh b/scripts/assemble-image.sh
index 3037179..469aeea 100755
--- a/scripts/assemble-image.sh
+++ b/scripts/assemble-image.sh
@@ -31,6 +31,9 @@ if [ -e ${PWD}/conf/${MACHINE}/machine-config ] ; then
 	. ${PWD}/conf/${MACHINE}/machine-config
 fi
 
+echo "cleaning up stale files"
+find cache/ipk/ -atime +7 -delete
+
 echo "Fakeroot config: ${FAKEROOT}"
 
 function do_sdimg() 
@@ -95,6 +98,9 @@ if [ -e ${WORKDIR}/conf/${MACHINE}/sd ] ; then
 		# report mount status to log
 		mount | grep loop
 
+
+		ls  ${TARGET_DIR}/boot
+
 		echo "copying files to vfat"
 		if [ -e ${WORKDIR}/conf/${MACHINE}/sd/MLO ] ; then
 			cp -v ${WORKDIR}/conf/${MACHINE}/sd/MLO /mnt/narcissus/sd_image1/MLO
diff --git a/scripts/configure-image.sh b/scripts/configure-image.sh
index 13ff69c..ea7f1b6 100755
--- a/scripts/configure-image.sh
+++ b/scripts/configure-image.sh
@@ -21,7 +21,6 @@ echo "cleaning up stale files"
 find /tmp -name 'opkg*' -mtime +2 -exec rm -rv {} \;
 find deploy -depth -mindepth 2 -maxdepth 2 -mtime +2 -exec rm -rv {} \;
 find work -depth -mindepth 1 -maxdepth 2 -mtime +1 -exec rm -rfv {} \;
-find cache/ipk/ -atime +7 -delete
 
 MACHINE=$1
 IMAGENAME=$2




More information about the Angstrom-distro-devel mailing list