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

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

    <bug>
          <bug_id>37022</bug_id>
          
          <creation_ts>2019-07-12 15:35:41 +0300</creation_ts>
          <short_desc>Показывает несвободные лицензии у firefox и chromium</short_desc>
          <delta_ts>2019-07-12 17:42:14 +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>all</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>P3</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>34231</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrey Cherepanov">cas</reporter>
          <assigned_to name="Anton Farygin">rider</assigned_to>
          <cc>aen</cc>
    
    <cc>boyarsh</cc>
    
    <cc>darktemplaralt</cc>
    
    <cc>iv</cc>
    
    <cc>rider</cc>
    
    <cc>sem</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>183038</commentid>
    <comment_count>0</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2019-07-12 15:35:41 +0300</bug_when>
    <thetext>В поле лицензия показывается вместо собственно названия лицензии &quot;Несвободная&quot;. Это неправильно.

id&gt;firefox.desktop&lt;/id&gt;                                                                               
&lt;metadata_license&gt;CC0-1.0&lt;/metadata_license&gt;

&lt;id&gt;chromium.desktop&lt;/id&gt;                                                                              
&lt;metadata_license&gt;CC0-1.0&lt;/metadata_license&gt;

Почему не берёт из пакета?

cas@basalt appstream-data $ rpm -qp /ALT/Sisyphus/x86_64/RPMS.classic/firefox-67.0.4-alt2.x86_64.rpm --qf &apos;%{license}\n&apos;
MPL/GPL/LGPL

cas@basalt appstream-data $ rpm -qp /ALT/Sisyphus/x86_64/RPMS.classic/chromium-74.0.3729.131-alt1.x86_64.rpm --qf &apos;%{license}\n&apos;
BSD-3-Clause and LGPL-2.1+</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>183040</commentid>
    <comment_count>1</comment_count>
    <who name="Aleksei Nikiforov">darktemplaralt</who>
    <bug_when>2019-07-12 15:52:51 +0300</bug_when>
    <thetext>Это metadata_license, а не project_license.

https://www.freedesktop.org/software/appstream/docs/chap-Quickstart.html

Пункт 4.1.3 по указанной ссылке и далее.

Добавлю возможность смены metadata_license, а также посмотрю что можно сделать по поводу взятия тэга license из файла rpm.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>183043</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2019-07-12 17:41:03 +0300</bug_when>
    <thetext>appstream-data-generator-20190712-alt1 -&gt; sisyphus:

Fri Jul 12 2019 Aleksei Nikiforov &lt;darktemplar@altlinux&gt; 20190712-alt1
- Updated option descriptions in help message (Closes: #37021).
- Added options to configure generation of
  metadata_license and project_license tags 
  in appdata generated from desktop files (Closes: #37022).
- Added options to skip or exclusively process specified
  desktop files if desktop files convertion is enabled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>183044</commentid>
    <comment_count>3</comment_count>
    <who name="AEN">aen</who>
    <bug_when>2019-07-12 17:42:14 +0300</bug_when>
    <thetext>Спасибо!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>