Permalink
Browse files

buildscript.sh: Using chroot pacman db rather than system's own

  • Loading branch information...
1 parent 25c317d commit d1e4eb05f16bcf7f255026db3dc5228e31c60add @svenstaro committed May 1, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 buildscript.sh
View
4 buildscript.sh
@@ -90,9 +90,9 @@ overlay ()
find . -type l|xargs rm &> /dev/null
[ ! ${QUIET} == "y" ] && echo "overlay: Making NVIDIA driver packages"
if [ ${VERBOSE} == "y" ]; then
- pacman -Sywd --config ${BASEDIR}/pacman.conf --cachedir `pwd` --noconfirm nvidia nvidia-utils nvidia-173xx nvidia-173xx-utils
+ pacman -Sywd --config ${BASEDIR}/pacman.conf --dbpath "${BASEDIR}"/"${WORKDIR}"/root-image/var/lib/pacman --cachedir `pwd` --noconfirm nvidia nvidia-utils nvidia-173xx nvidia-173xx-utils
else
- pacman -Sywd --config ${BASEDIR}/pacman.conf --cachedir `pwd` --noconfirm nvidia nvidia-utils nvidia-173xx nvidia-173xx-utils &> /dev/null
+ pacman -Sywd --config ${BASEDIR}/pacman.conf --dbpath "${BASEDIR}"/"${WORKDIR}"/root-image/var/lib/pacman --cachedir `pwd` --noconfirm nvidia nvidia-utils nvidia-173xx nvidia-173xx-utils &> /dev/null
fi
[ "$?" -ne 0 ] && echo -e "\e[01;31moverlay: Exiting due to error while getting NVIDIA driver packages\e[00m" && exit 1
mv -f `ls nvidia-173xx*pkg.tar.*|grep -v utils` nvidia-legacy.tar.xz || return 1

0 comments on commit d1e4eb0

Please sign in to comment.