Cache.dpkg_list fails if system locale is not english
Bug #2019161 reported by
Samuel Walladge
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charm Helpers |
Fix Committed
|
Undecided
|
Samuel Walladge |
Bug Description
For example:
```
# if locale is fr_FR.UTF-8, and git is installed
cache.dpkg_
```
This is because:
```
# charmhelpers/
# pkg = {'nom': 'git', ...
if 'name' in pkg:
```
Probably need to use a different method to get info from dpkg-query, or force the locale to en_US for consistency.
description: | updated |
Changed in charm-helpers: | |
status: | New → In Progress |
assignee: | nobody → Samuel Walladge (swalladge) |
Changed in charm-helpers: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
Opened https:/ /github. com/juju/ charm-helpers/ pull/776 to address this.