<?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>9458</bug_id>
          
          <creation_ts>2016-04-13 13:56:33 +0000</creation_ts>
          <short_desc>devtool: &quot;update-recipe rpm&quot; crashes</short_desc>
          <delta_ts>2016-04-15 13:43:36 +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>devtools / tool chain</component>
          <version>2.1</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>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Markus Lehtonen">markus.lehtonen</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>61153</commentid>
    <comment_count>0</comment_count>
    <who name="Markus Lehtonen">markus.lehtonen</who>
    <bug_when>2016-04-13 13:56:33 +0000</bug_when>
    <thetext>Devtool update-recipe crashed when I tried to add a new patch to rpm:

NOTE: Updating recipe rpm_5.4.16.bb
Traceback (most recent call last):
  File &quot;/home/marquiz/yocto/openembedded-core/scripts/devtool&quot;, line 337, in &lt;module&gt;
    ret = main()
  File &quot;/home/marquiz/yocto/openembedded-core/scripts/devtool&quot;, line 324, in main
    ret = args.func(args, config, basepath, workspace)
  File &quot;/home/marquiz/yocto/openembedded-core/scripts/lib/devtool/standard.py&quot;, line 1271, in update_recipe
    updated = _update_recipe_patch(args, config, workspace, srctree, rd, tinfoil.config_data)
  File &quot;/home/marquiz/yocto/openembedded-core/scripts/lib/devtool/standard.py&quot;, line 1211, in _update_recipe_patch
    {&apos;SRC_URI&apos;: &apos; &apos;.join(srcuri)})
  File &quot;/home/marquiz/yocto/openembedded-core/meta/lib/oe/recipeutils.py&quot;, line 322, in patch_recipe
    patchdata = patch_recipe_file(f, vals, patch, relpath)
  File &quot;/home/marquiz/yocto/openembedded-core/meta/lib/oe/recipeutils.py&quot;, line 254, in patch_recipe_file
    changed, tolines = bb.utils.edit_metadata(fromlines, varlist, patch_recipe_varfunc, match_overrides=True)
  File &quot;/home/marquiz/yocto/openembedded-core/bitbake/lib/bb/utils.py&quot;, line 1162, in edit_metadata
    if handle_var_end():
  File &quot;/home/marquiz/yocto/openembedded-core/bitbake/lib/bb/utils.py&quot;, line 1087, in handle_var_end
    (newvalue, newop, indent, minbreak) = varfunc(in_var, full_value, op, newlines)
  File &quot;/home/marquiz/yocto/openembedded-core/meta/lib/oe/recipeutils.py&quot;, line 240, in patch_recipe_varfunc
    del remainingnames[varname]
  File &quot;/usr/lib64/python2.7/collections.py&quot;, line 68, in __delitem__
    dict_delitem(self, key)
KeyError: &apos;SRC_URI&apos;


The probable cause is the slightly complex assignment of the SRC_URI variable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61287</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-04-15 13:43:36 +0000</bug_when>
    <thetext>Fixed in oe-core da5cd84794e1ab5c4efcd6250d3b93a46f610744.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>