<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>51299</bug_id>
          
          <creation_ts>2024-08-27 17:06:33 +0300</creation_ts>
          <short_desc>Не исключаются языки в appstream-data-generator</short_desc>
          <delta_ts>2024-10-02 15:35:33 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>appstream-data-generator</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Белая Алёна">belayaav</reporter>
          <assigned_to name="felixz@altlinux.org">felixz</assigned_to>
          <cc>rider</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>250673</commentid>
    <comment_count>0</comment_count>
    <who name="Белая Алёна">belayaav</who>
    <bug_when>2024-08-27 17:06:33 +0300</bug_when>
    <thetext>Стенды:
Alt Workstation K 10.3 x86_64
Alt Workstation 10.2 x86_64
Alt Education 10.2 x86_64
Alt Server 10.2 x86_64
обновленные до Сизифа

Версия пакета:
appstream-data-generator-20240809-alt1.x86_64

Шаги воспроизведения: 
1. Установить пакет 
2. Создать файлы apps с названием пакета и lang  с исключаемыми языками:
$ cat ~/apps
vlc-mini
$ cat ~/lang 
vlc-mini wa uz uk ug tt tr th te ta sw sv sr sl
3. Сгенерировать файл с исключением языков:
$ appstream-data-generator -e ~/apps -u ~/adg &lt;path_to_local_repo&gt; -l ~/lang -v -o vlc-mini --allownoicons
4. Проверить наличие языков в сгенерированном файле:
$ vim ~/adg/xmls/vlc-mini.xml

Результат: строки на языках, которые должны были быть исключены, присутствуют в файле

Ожидаемый результат: в файле нет строк на исключаемых языках</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>252457</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2024-10-02 15:35:33 +0300</bug_when>
    <thetext>appstream-data-generator-20241002-alt1 -&gt; sisyphus:

 Wed Oct 02 2024 Kirill Izmestev &lt;felixz@altlinux&gt; 20241002-alt1
 - Added removal of unnecessary languages in \
 appstream-data-appdata-converter (ALT #51298, #51299).
 - Minor improvements \
 (thanks Sergey Shevchenko sergey.shevchenko04@gmail.com).
 - Added russian translation (thanks gammaray@basealt.ru).
 Tue Aug 20 2024 Kirill Izmestev &lt;felixz@altlinux&gt; 20240820-alt1
 - Added functionality: takes into account the computer locale and \
 substitutes the translation \
 (thanks Sergey Shevchenko sergey.shevchenko04@gmail.com).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>