long_desc returns same value as short_desc

Bug #904864 reported by Michael Rawson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-apt (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

We are using apt_pkg as part of Lubuntu Software Centre, however we have a minor problem.

Using an instance of PackageRecords(), the value for a package's long_desc and short_desc fields are the same. The piece of code we are using is attached. (Look at the function from line 500 onwards)

python-apt:
  Installed: 0.8.0ubuntu9
  Candidate: 0.8.0ubuntu9
  Version table:
 *** 0.8.0ubuntu9 0
        500 http://archive.ubuntu.com/ubuntu/ oneiric/main amd64 Packages
        100 /var/lib/dpkg/status

I'm actually using Mint 12 to submit this bug report, but this is a problem on Lubuntu 11.10 too.
If we're just getting it wrong, call us idiots, then tell us how to use it. :)

Example output for blender of printing both the the long and short description:

<snip>
Very fast and versatile 3D modeller/renderer
Very fast and versatile 3D modeller/renderer
</snip>

Revision history for this message
Michael Rawson (michael.rawson) wrote :
Revision history for this message
Julian Andres Klode (juliank) wrote :

That's kind of expected, the long description is not available there anymore. You need to look at the translations to find the correct one, as those have been moved out of the core Packages file.

I don't think that we want to work around this in any way in apt_pkg.

Revision history for this message
Michael Rawson (michael.rawson) wrote : Re: [Bug 904864] Re: long_desc returns same value as short_desc

Thank you for the attention-can you expand a little about the translations?

I shall forward this to the main developer.

On Fri, 16 Dec 2011 16:36:06 -0000
Julian Andres Klode <email address hidden> wrote:

> That's kind of expected, the long description is not available there
> anymore. You need to look at the translations to find the correct one,
> as those have been moved out of the core Packages file.
>
> I don't think that we want to work around this in any way in apt_pkg.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/904864
>
> Title:
> long_desc returns same value as short_desc
>
> Status in “python-apt” package in Ubuntu:
> New
>
> Bug description:
> We are using apt_pkg as part of Lubuntu Software Centre, however we
> have a minor problem.
>
> Using an instance of PackageRecords(), the value for a package's
> long_desc and short_desc fields are the same. The piece of code we are
> using is attached. (Look at the function from line 500 onwards)
>
>
> python-apt:
> Installed: 0.8.0ubuntu9
> Candidate: 0.8.0ubuntu9
> Version table:
> *** 0.8.0ubuntu9 0
> 500 http://archive.ubuntu.com/ubuntu/ oneiric/main amd64 Packages
> 100 /var/lib/dpkg/status
>
> I'm actually using Mint 12 to submit this bug report, but this is a problem on Lubuntu 11.10 too.
> If we're just getting it wrong, call us idiots, then tell us how to use it. :)
>
> Example output for blender of printing both the the long and short
> description:
>
> <snip>
> Very fast and versatile 3D modeller/renderer
> Very fast and versatile 3D modeller/renderer
> </snip>
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/904864/+subscriptions

--
Michael Rawson <email address hidden>

Revision history for this message
Julian Andres Klode (juliank) wrote :

Basically use Version.translated_description.file_list instead of Version.file_list when looking for descriptions.

Revision history for this message
Stephen Smally (stephen-smally) wrote :

Can you tell me how to set the locale in apt_pkg? the long description is long, but always in english even if the system locale is another language (see https://bugs.launchpad.net/lubuntu-software-center/+bug/921828 )

Revision history for this message
Julian Andres Klode (juliank) wrote :

Just like with other Python extensions.

Revision history for this message
Julian Andres Klode (juliank) wrote :

Closing, as this is not a bug, but rather the result of a archive format change (english long descriptions are now handled via the translation mechanism)

Changed in python-apt (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.