|
@@ -153,7 +153,7 @@ Clean(){
|
|
|
umount ${BUILD_ROOT}/proc
|
|
|
|
|
|
if [ -d ${BUILD_ROOT}/var/cache/apt/archives ]; then
|
|
|
- echo -n "Chaching RPMs in ${CACHE_DIR}/apt/archives ... "
|
|
|
+ echo -n "Caching RPMs in ${CACHE_DIR}/apt/archives ... "
|
|
|
[ -d ${CACHE_DIR}/apt/archives ] || mkdir -p ${CACHE_DIR}/apt/archives
|
|
|
mv -f ${BUILD_ROOT}/var/cache/apt/archives/*.rpm ${CACHE_DIR}/apt/archives/
|
|
|
echo "done."
|
|
@@ -174,8 +174,11 @@ Build(){
|
|
|
[ -d ${BUILD_ROOT}/proc ] || mkdir -p ${BUILD_ROOT}/proc
|
|
|
mount -t proc proc ${BUILD_ROOT}/proc
|
|
|
|
|
|
+ # ## mount /tmp with --bind option
|
|
|
+ # mount --bind /tmp ${BUILD_ROOT}/tmp
|
|
|
+
|
|
|
if [ -d ${CACHE_DIR} ]; then
|
|
|
- echo -n "Copying chached RPMs to ${BUILD_ROOT}/var/cache/apt/archives ... "
|
|
|
+ echo -n "Copying cached RPMs to ${BUILD_ROOT}/var/cache/apt/archives ... "
|
|
|
cp -f ${CACHE_DIR}/apt/archives/*.rpm ${BUILD_ROOT}/var/cache/apt/archives/
|
|
|
echo "done."
|
|
|
fi
|