diff options
-rwxr-xr-x | src/aif.sh | 1 | ||||
-rw-r--r-- | src/core/libs/lib-pacman.sh | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -128,6 +128,7 @@ done # Set pacman vars. allow procedures to have set $var_TARGET_DIR (TODO: look up how delayed variable substitution works. then we can put this at the top again) # flags like --noconfirm should not be specified here. it's up to the procedure to decide the interactivity +# NOTE: Pacman will run with currently active locale, if you want to parse output, you should prefix with LANG=C PACMAN=pacman PACMAN_TARGET="pacman --root $var_TARGET_DIR --config /tmp/pacman.conf" diff --git a/src/core/libs/lib-pacman.sh b/src/core/libs/lib-pacman.sh index a104cee..19e2eca 100644 --- a/src/core/libs/lib-pacman.sh +++ b/src/core/libs/lib-pacman.sh @@ -157,5 +157,5 @@ list_packages () # TODO: check $1 which_group () { - PACKAGE_GROUPS=`$PACMAN_TARGET -Si $1| awk '/^Name/{ printf("%s ",$3) } /^Group/{ print $3 }'` + PACKAGE_GROUPS=`LANG=C $PACMAN_TARGET -Si $1| awk '/^Name/{ printf("%s ",$3) } /^Group/{ print $3 }'` } |