Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aura doesn't recognize dependencies versions if run with a Russian locale #543

Closed
koterpillar opened this issue Aug 30, 2019 · 2 comments · Fixed by #546
Closed

Aura doesn't recognize dependencies versions if run with a Russian locale #543

koterpillar opened this issue Aug 30, 2019 · 2 comments · Fixed by #546

Comments

@koterpillar
Copy link
Contributor

koterpillar commented Aug 30, 2019

Here's an example:

$ locale
LANG=ru_RU.utf8
LC_CTYPE="ru_RU.utf8"
LC_NUMERIC="ru_RU.utf8"
LC_TIME="ru_RU.utf8"
LC_COLLATE="ru_RU.utf8"
LC_MONETARY="ru_RU.utf8"
LC_MESSAGES="ru_RU.utf8"
LC_PAPER="ru_RU.utf8"
LC_NAME="ru_RU.utf8"
LC_ADDRESS="ru_RU.utf8"
LC_TELEPHONE="ru_RU.utf8"
LC_MEASUREMENT="ru_RU.utf8"
LC_IDENTIFICATION="ru_RU.utf8"
LC_ALL=
$ sudo aura -A qtqr
aura >>= Определение зависимостей...
aura >>= Версия для `python2-pyqt5` не распознана.
$ export LC_ALL=C.utf-8
$ sudo aura -A qtqr
aura >>= Determining dependencies...
aura >>= Repository dependencies:
python2-pillow
python2-pyqt5
python2-zbar
aura >>= AUR dependencies:
python2-qrtools
aura >>= AUR Packages:
qtqr
aura >>= Continue? [Y/n] 

Translation of the error message: "Cannot parse/determine version for python2-pyqt5".

@koterpillar
Copy link
Contributor Author

$ aura --version
 __ _ _  _ _ _ __ _    Pacman v5.1.3 - libalpm v11.0.3
/ _` | || | '_/ _` |   Copyright (C) 2006-2018 Pacman Development Team
\__,_|\_,_|_| \__,_|   Copyright (C) 2002-2006 Judd Vinet
AURA Version 2.0.0     
(...)

@koterpillar
Copy link
Contributor Author

I've traced the problem to https://github.com/aurapm/aura/blob/77cdd18e116c44d36edf27503ec35cbf801889bb/aura/lib/Aura/Packages/Repository.hs#L108
pacman outputs localized messages, and those only happen to include Version in the English locale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant