diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-10 21:03:40 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-10 21:03:40 -0600 |
commit | 5dc737f64940aa8eefca4a24af641f413655a824 (patch) | |
tree | 7527ef40047049cfb324d9822ac7a90115072c1d /src | |
parent | 41106df0cd90c18e8fa1b77e885f2d1d390b8129 (diff) |
libremakepkg: set PACKAGER in the chroot to reflect the value outside.
Diffstat (limited to 'src')
-rwxr-xr-x | src/chroot-tools/libremakepkg | 4 |
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:' |