Bug 46251 - packagekit fails to show the description of a package if it is translated
Summary: packagekit fails to show the description of a package if it is translated
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: packagekit (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Ivan Zakharyaschev
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-24 19:41 MSK by Ivan Zakharyaschev
Modified: 2023-06-08 01:45 MSK (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2023-05-24 19:41:40 MSK
packagekit fails to show the description of a package if it is translated/has a translation. "description: (null)"

# pkcon get-details apt
Описание пакета
  package:     apt-0.5.15lorg2-alt82:p10+306076.60.5.1@1668092323.x86_64
  summary:     Debian APT - Усовершенствованное средство управления пакетами с поддержкой RPM
  license:     unknown
  group:       admin-tools
  description: (null)
  size:        368814 bytes
  url:         
#

However the following are ok (cutting symbols from it is another problem discussed in https://bugzilla.altlinux.org/show_bug.cgi?id=40826#c5 ):

# LC_ALL=C pkcon get-details apt
Package description
  package:     apt-0.5.15lorg2-alt82:p10+306076.60.5.1@1668092323.x86_64
  summary:     Debian's Advanced Packaging Tool with RPM support
  license:     unknown
  group:       admin-tools
  description: r at least for Conectiva. It provides the apt-get utility that rovides a simpler, safer way to install and upgrade packages. PT features complete installation ordering, multiple source apability and several other unique features. This package is still under development.
  size:        368814 bytes
  url:         
# apt-cache show apt | sed -nEe '/^Description:/,/^[^ ]/p'
Description: Debian APT - Усовершенствованное средство управления пакетами с поддержкой RPM
 Перенесенные из Debian средства управления пакетами APT, включающие
 в себя поддержку RPM, выполненную компанией Conectiva (Бразилия).
 Этот пакет содержит утилиту apt-get для простой и надежной установки
 и обновления пакетов. APT умеет автоматически разрешать зависимости
 при установке, обеспечивает установку из нескольких источников и
 целый ряд других уникальных возможностей.
 
 Данный пакет пока еще находится в стадии разработки.
Changelog:
# pkcon get-details 0ad
Описание пакета
  package:     0ad-1:0.0.26-alt0_1_alpha.p10:p10+307479.400.5.1@1665497068.x86_64
  summary:     Free, open-source realtime strategy game of ancient warfare
  license:     unknown
  group:       games
  description: eal-time strategy (RTS) game of ancient warfare. In short, it is a
historically-based war/economy game that allows players to relive or ewrite the history of Western civilizations, focusing on the years etween 500 B.C. and 500 A.D. The project is highly ambitious, involving tate-of-the-art 3D graphics, detailed artwork, sound, and a flexible nd powerful custom-built game engine. The game has been in development by Wildfire Games (WFG), a group of olunteer, hobbyist game developers, since 2001. The code and data are vailable under the GPL license, and the art, sound and documentation re available under CC-BY-SA. In short, we consider 0 A.D. an an ducational celebration of game development and ancient history.
  size:        6167606 bytes
  url:         
# 

# rpm -q packagekit apt rpm
packagekit-1.2.5-alt7.x86_64
apt-0.5.15lorg2-alt83.x86_64
rpm-4.13.0.1-alt34.x86_64
Comment 1 Repository Robot 2023-06-08 01:45:31 MSK
apt-0.5.15lorg2-alt84 -> sisyphus:

 Fri Jun 02 2023 Ivan Zakharyaschev <imz@altlinux> 0.5.15lorg2-alt84
 - Fixed the display of descriptions in aptitude and packagekit (by making
   the format closer to Debian's):
   + Fixed the display of the first line, which was not shown in packagekit.
   + Fixed the regression (from 0.5.15lorg2-alt72) in the display of
     all but the first lines (in aptitude and packagekit). (ALT#40826)
   + This has also made packagekit show translated descriptions. (ALT#46251)
   + As a result, there is a cosmetic regression in synaptic: extra blanks.
 - Increased the buf for reading to 32k for effectiveness in methods:
   gzip (and other compression types), rsh, ftp.
 - Avoid compilation errors with GCC 13 (thx Alexey Sheplyakov). (ALT#46105)