build_chroot used to work only if launched from ./devel/, whereas now
it can be launched from anywhere, and it will store the resulting files
in the current directory.

Fixes Issue 459.

Signed-off-by: Michele Tartara <[email protected]>
---
 devel/build_chroot | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/devel/build_chroot b/devel/build_chroot
index 926c74a..d134a4b 100755
--- a/devel/build_chroot
+++ b/devel/build_chroot
@@ -1,6 +1,6 @@
 #!/bin/bash
 #Configuration
-: ${DATA_DIR=data}
+: ${DATA_DIR=`dirname $0`/data}
 : ${ARCH=amd64}
 : ${DIST_RELEASE=squeeze}
 : ${CONF_DIR:=/etc/schroot/chroot.d}
-- 
1.8.2.1

Reply via email to