Make directory for cacheing .deb files if it doesn't exist
authorPaul Crowley <paul@lshift.net>
Tue, 06 Sep 2011 10:45:19 +0100
changeset 308 e1f71a2eafb6
parent 307 9009a37ad45b
child 309 091630a3938e
Make directory for cacheing .deb files if it doesn't exist
dev/chroot-test/run-test
--- a/dev/chroot-test/run-test	Tue Sep 06 10:44:20 2011 +0100
+++ b/dev/chroot-test/run-test	Tue Sep 06 10:45:19 2011 +0100
@@ -31,6 +31,7 @@
 fi
 if [ -e $BACKING ] ; then
     echo "Copying deb files into cache"
+    mkdir -p $BUILDDIR/aptcache/$DEBVERSION
     cp $BACKING/var/cache/apt/archives/* $BUILDDIR/aptcache/$DEBVERSION || true
     echo "Deleting old filesystem backing store"
     rm -rf $BACKING