dev/chroot-test/run-test
changeset 274 ec60311ce2a6
parent 272 f7c64f03cd60
child 282 1239880543cf
--- a/dev/chroot-test/run-test	Fri Dec 17 18:19:31 2010 +0000
+++ b/dev/chroot-test/run-test	Fri Dec 17 18:54:38 2010 +0000
@@ -9,8 +9,10 @@
 PRISTINE=/var/local/cache/pristine/$DEBVERSION
 
 if [ ! -e $PRISTINE ] ; then
-    echo "Debian pristine image not found, try running create-source-image"
-    echo $PRISTINE
+    echo "Missing:" $PRISTINE
+    echo "Debian pristine image not found, try running these commands as root:"
+    echo mkdir -p /var/local/cache/pristine
+    echo debootstrap $DEBVERSION $PRISTINE http://ftp.uk.debian.org/debian/
     exit -1
 fi
 
@@ -45,7 +47,7 @@
 
 cp -av action $BACKING
 #hg -R ../mercurial-server archive -r default $BACKING/action/mercurial-server
-( cd ../mercurial-server && \
+( cd $(hg root) && \
     hg st -mac0n | cpio -p -0 -d $BACKING/action/mercurial-server )
 
 #cp ../mercurial-server/build/debian/mercurial-server_1.0-1_all.deb $BACKING/action