Commit a80fe69f authored by Aaron Griffin's avatar Aaron Griffin
Browse files

Only run locale-gen if the target root has /etc/locale.gen

parent 80d0aa89
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -171,9 +171,11 @@ else
        cp ${makepkg_conf} ${working_dir}/etc/makepkg.conf
    fi

    echo "generating default locales"
    if [ -e "${working_dir}/etc/locale.gen" ]; then
        echo "generating default locales from host system"
        cp /etc/locale.gen "${working_dir}/etc/locale.gen"
        chroot "${working_dir}" locale-gen
    fi

    if [ ! -e "${working_dir}/.arch-chroot" ]; then
        date +%s > "${working_dir}/.arch-chroot"