Language-specific descriptions not imported
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Apps Directory |
Fix Released
|
High
|
Michael Nelson |
Bug Description
Currently we import all of the package data from the package cache for each series, using python apt (which rocks!).
It seems that some packages in Oneiric now have language-specific fields such as Description-en (and don't have a Description field) [1]
For these packages we currently end up with a blank description [2]. This seems to be because our server runs on lucid, and the lucid version of the python apt doesn't handle the language-specific fields whereas the oneiric python apt does [3].
I'm not sure if there is a way with the lucid version of python apt that we can work around this, or whether we need to backport/install a custom version on the server. I assume there will be a way to work around it (and mvo will know it :) ).
[1] http://
[2] https:/
[3] http://
Related branches
- Łukasz Czyżykowski (community): Approve
-
Diff: 71 lines (+28/-2)2 files modifiedsrc/webcatalog/management/commands/import_app_install_data.py (+5/-0)
src/webcatalog/tests/test_commands.py (+23/-2)
description: | updated |
Changed in ubuntu-webcatalog: | |
importance: | Undecided → Medium |
Changed in ubuntu-webcatalog: | |
importance: | Medium → High |
Changed in ubuntu-webcatalog: | |
milestone: | none → 12.03 |
assignee: | nobody → Michael Nelson (michael.nelson) |
status: | Confirmed → Fix Committed |
Changed in ubuntu-webcatalog: | |
status: | Fix Committed → Fix Released |
Just some initial investigation: python-apt on lucid is actually pulling different translated_ description files for precice than python-apt on precise.
Python-apt on precise has package. candidate. _cand.translate d_description. file_list returning a list with one file, like:
archive. ubuntu. com_ubuntu_ dists_precise_ main_i18n_ Translation- en
but python-apt on lucid, has the same api available (seems it supports translations?) package. candidate. _cand.translate d_description. file_list, but it's just the normal binary packages:
archive. ubuntu. com_ubuntu_ dists_precise_ main_binary- amd64_Packages
So the next question is can we get the lucid version of python-apt.cache to pull the i18n file when it's available (ie. when it's checking > oneiric)? It doesn't seem like something worth modifying in python-apt for lucid (as normally lucid won't need to deal with precise packages etc.), but is perhaps something we can work around.