<?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>1791</bug_id>
          
          <creation_ts>2011-11-29 18:07:43 +0000</creation_ts>
          <short_desc>Remove a few unwanted lines</short_desc>
          <delta_ts>2011-12-06 23:51:39 +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>BitBake</product>
          <component>bitbake</component>
          <version>1.2</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>Low</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>1.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>17426</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2011-11-29 18:07:43 +0000</bug_when>
    <thetext>There seems a few lines are unwanted.

In bitbake/lib/bb/cooker.py, we have the followings in both BBCooker::__init__ and
BBCooker::loadConfigurationData:

if not self.configuration.cmd:
    self.configuration.cmd = self.configuration.data.getVar(&quot;BB_DEFAULT_TASK&quot;, True) or &quot;build&quot;

The __init__ will invoke the loadConfigurationData, so we can remove the one in the __init__.

In bitbake/lib/bb/command.py, we have the following lines:

for attr in CommandsSync.__dict__:
    command = attr[:].lower()
    method = getattr(CommandsSync, attr)
    sync_cmds[command] = (method) 

for attr in CommandsAsync.__dict__:
    command = attr[:].lower()
    method = getattr(CommandsAsync, attr)
    async_cmds[command] = (method) 

The sync_cmds and async_cmds are defined as global dictionaries, but it seems that we&apos;ve never used them, it seems that they have been replaced by the self.cmds_sync and  self.cmds_async, so I think that we can remove them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17427</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2011-11-29 18:10:54 +0000</bug_when>
    <thetext>Add Richard to the CC list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17505</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2011-12-06 23:51:39 +0000</bug_when>
    <thetext>merged to master</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>