<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>13971</bug_id>
          
          <creation_ts>2020-07-06 05:13:33 +0000</creation_ts>
          <short_desc>[devtool] requires LIC_FILES_CHKSUM to be set, even for LICENSE=CLOSED</short_desc>
          <delta_ts>2020-07-09 07:51:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>Scripts and Tools</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Bjarne Michelsen">bjarne_michelsen</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>87695</commentid>
    <comment_count>0</comment_count>
    <who name="Bjarne Michelsen">bjarne_michelsen</who>
    <bug_when>2020-07-06 05:13:33 +0000</bug_when>
    <thetext>When using `devtool upgrade &lt;component&gt;`, devtool requires LIC_FILES_CHKSUM to be set in the recipe, even if the recipe uses `LICENSE=CLOSED`

To reproduce:

1. Create a recipe with `LICENSE=CLOSED` but no `LIC_CHKSUM`
2. Run `devtool upgrade &lt;component&gt;`

Result:

```
Traceback (most recent call last):
  File &quot;sources/poky/scripts/devtool&quot;, line 334, in &lt;module&gt;
    ret = main()
  File &quot;sources/poky/scripts/devtool&quot;, line 321, in main
    ret = args.func(args, config, basepath, workspace)
  File &quot;sources/poky/scripts/lib/devtool/upgrade.py&quot;, line 553, in upgrade
    old_licenses = _extract_licenses(srctree, rd.getVar(&apos;LIC_FILES_CHKSUM&apos;))
  File &quot;sources/poky/scripts/lib/devtool/upgrade.py&quot;, line 457, in _extract_licenses
    for url in recipe_licenses.split():
AttributeError: &apos;NoneType&apos; object has no attribute &apos;split&apos;
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87726</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-07-09 07:51:28 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=5c2381f9ebcfb9b7991cc40429f286ae3557fd1e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>