summaryrefslogtreecommitdiff
path: root/src/chroot-tools
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-06-10 21:03:40 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-06-10 21:03:40 -0600
commit5dc737f64940aa8eefca4a24af641f413655a824 (patch)
tree7527ef40047049cfb324d9822ac7a90115072c1d /src/chroot-tools
parent41106df0cd90c18e8fa1b77e885f2d1d390b8129 (diff)
libremakepkg: set PACKAGER in the chroot to reflect the value outside.
Diffstat (limited to 'src/chroot-tools')
-rwxr-xr-xsrc/chroot-tools/libremakepkg4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/chroot-tools/libremakepkg b/src/chroot-tools/libremakepkg
index f4fda83..cf2d880 100755
--- a/src/chroot-tools/libremakepkg
+++ b/src/chroot-tools/libremakepkg
@@ -180,6 +180,9 @@ chroot_init() {
MAKEPKG_CONF="$copydir/etc/makepkg.conf" set_conf_makepkg PKGDEST /pkgdest
MAKEPKG_CONF="$copydir/etc/makepkg.conf" set_conf_makepkg SRCDEST /srcdest
+ local PACKAGER="$(get_conf_makepkg PACKAGER .)"
+ MAKEPKG_CONF="$copydir/etc/makepkg.conf" set_conf_makepkg PACKAGER "$PACKAGER"
+ unset PACKAGER
if ! grep -q '^\[repo\]' "$copydir/etc/pacman.conf"; then
cat >> "$copydir/etc/pacman.conf" <<EOF
@@ -271,6 +274,7 @@ usage() {
echo 'configuration changes in the chroot:'
echo ' - whatever changes `librechroot` makes.'
echo ' - set `PKGDEST` and `SRCDEST` in `/etc/makepkg.conf`'
+ echo ' - set `PACKAGER` in `/etc/makepkg.conf`'
echo ' - (maybe) delete `/build/.makepkg.conf`'
echo ' - (maybe) delete `/build/.ssh/config`'
echo 'If run from inside of a chroot, this command will:'