Bug 377076 - Package descriptions missing first character.
Summary: Package descriptions missing first character.
Status: RESOLVED DUPLICATE of bug 316650
Alias: None
Product: muon
Classification: Applications
Component: muon (show other bugs)
Version: 5.6
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Jonathan Thomas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-01 20:30 UTC by swagfortress
Modified: 2017-04-11 17:32 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot of muon, showing only short description, missing 1st character (109.55 KB, image/png)
2017-04-10 17:51 UTC, Alex Ball
Details
Screenshot of muon, showing long description as expected (128.62 KB, image/png)
2017-04-10 17:53 UTC, Alex Ball
Details

Note You need to log in before you can comment on or make changes to this bug.
Description swagfortress 2017-03-01 20:30:34 UTC
The details tab for any given package shows the package description without the first character. For example, 0ad's description is:

  "real-time strategy game of ancient warfare..."

, but it's printed as

  "eal-time strategy game of ancient warfare..."

OS: neon User Editon 5.9
Comment 1 Alex Ball 2017-04-10 17:51:56 UTC
Created attachment 104953 [details]
Screenshot of muon, showing only short description, missing 1st character
Comment 2 Alex Ball 2017-04-10 17:53:14 UTC
Created attachment 104954 [details]
Screenshot of muon, showing long description as expected
Comment 3 Alex Ball 2017-04-10 18:17:07 UTC
I get the same behaviour. Specifically, what happens for the vast majority of packages is that, in the area that should display the long description from the deb file, Muon displays the short description again, minus the leading character. (The boilerplate statement regarded Canonical support is appended as normal.)

There are some exceptions; on my system KDevelop-Python and Minuet display the long description as expected, for example.

I am not familiar with the code, but it looks to me as though whatever function is populating the long description box is taking the deb description field and splitting it into the short and long portions like this:

  * char 1, line 1
  * chars 2+, line 1

instead of:

  * line 1
  * lines 2+

I am running Muon 5.6.0 on KDE neon User Edition 5.9 (Plasma 5.9.4, Frameworks 5.32.0). I do not get this issue on my other machine running Kubuntu 16.04.
Comment 4 Alex Ball 2017-04-10 19:53:14 UTC
On further investigation, I found the trigger for this problem lies outside Muon. If I would run, say:

    apt-cache show kdevelop

it would display only the first line of the description:

    Description: integrated development environment for KDE

The same command on my Kubuntu machine shows the full description:

    Description-en_GB: integrated development environment for KDE
     KDevelop is an easy to use integrated development environment...(etc.)

This tipped me off that the problem lay with apt not downloading translations. Sure enough, I found that with the default KDE neon install, the file /etc/apt/apt.conf contains the line

    Acquire::Languages "none";

Removing that line and doing a 'sudo apt update' brought down the full descriptions, and now Muon is displaying them just fine.

If this is a valid bug against muon, it is in reference to its handling of missing/incomplete package descriptions.
Comment 5 Carlo Vanini 2017-04-11 17:32:54 UTC
Hi Alex,
thank you for your detailed report and analysis.
The missing character bug has been fixed in libqapt 3.0.3, that's where Muon gets the descriptions from. As you found out it depends on translations being available or not. The cause is the same for incomplete descriptions, but I don't see any easy or useful way for Muon to work around that.

*** This bug has been marked as a duplicate of bug 316650 ***