oshazard / apacman

ArchLinux User Repository (AUR) helper and pacman wrapper
https://aur.archlinux.org/packages/apacman/
GNU General Public License v3.0
70 stars 11 forks source link

Flag -L doesn’t work when not in en_US locale #81

Open Ratatosk42 opened 7 years ago

Ratatosk42 commented 7 years ago

Apacman grep some localized text in getlistpackages method, and it doesn't work when the system isn't in english.

https://github.com/oshazard/apacman/blob/master/apacman#L349

For example, in french, must be something like that :

pacman -Qi | grep -e "^Nom " -e "^Taille installée " | \ awk '{if ($(NF-1) ~ /^[0-9]/) printf $(NF-1); print $NF}' | paste -s -d' \n' | \ sed -e 's/iB$//' -e 's/\.00K/K/' -e 's/\.00B/B/' | awk '{printf "%-10s %-40s\n",$2,$1}' | sort -h

I don't know how to fix that …