diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-09-18 11:56:28 -0700 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-09-18 11:56:48 -0700 |
commit | 92a83232e36a96b6a2565e33cd4f8af2ccc7452a (patch) | |
tree | 725ba920365b47a0357d61a78bf5f906bef7d665 | |
parent | 40251235a8fa02c6ad08c43c3fed45ad38f91444 (diff) | |
download | devtools32-92a83232e36a96b6a2565e33cd4f8af2ccc7452a.tar.xz |
Revert "Don't copy makepkg.conf into the chroot"
This reverts commit 4bc819a20e4029a53d97cfa3cff164b3a497f7fe.
Temporary revert until we get this sorted out
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-x | makechrootpkg | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/makechrootpkg b/makechrootpkg index 9e227d0..b0bbdac 100755 --- a/makechrootpkg +++ b/makechrootpkg @@ -104,7 +104,7 @@ if [ ! -d "$chrootdir/root" ]; then usage fi -[ -d "$chrootdir/$LAYER" -a "$clean_first" -eq "1" ] && rm -rf "$chrootdir/$LAYER/" +[ -d "$chrootdir/$LAYER" -a "$clean_first" -eq "1" ] && rm -rf "$chrootdir/$LAYER/" [ -d "$chrootdir/$LAYER" ] || mkdir "$chrootdir/$LAYER" [ -d "$chrootdir/union" ] || mkdir "$chrootdir/union" @@ -152,6 +152,16 @@ if [ "$REPACK" != "1" ]; then rm -rf "$uniondir/build/"* fi +# Copy makepkg.conf and ~/.makepkg.conf into the chroot so packager has +# all their custom variables set. +if [ -r "/etc/makepkg.conf" ]; then + rm $uniondir/etc/makepkg.conf + cp /etc/makepkg.conf $uniondir/etc/makepkg.conf +fi +if [ -r ~/.makepkg.conf ]; then + cat ~/.makepkg.conf >> $uniondir/etc/makepkg.conf +fi + source $uniondir/etc/makepkg.conf [ -d "$uniondir/pkgdest" ] || mkdir "$uniondir/pkgdest" @@ -269,6 +279,7 @@ if [ -e ${chrootdir}/union/build/BUILD_FAILED ]; then else rm -rf ${chrootdir}/union/build/* echo "Build complete" -fi +fi + # vim:ft=sh:ts=4:sw=4:et: |