<?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>5687</bug_id>
          
          <creation_ts>2013-12-26 15:21:00 +0000</creation_ts>
          <short_desc>bitbake -ccleanall doesn&apos;t remove the patch.done</short_desc>
          <delta_ts>2014-01-10 06:53:32 +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.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.6 M2</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>
    
    <cc>yi.zhao</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>39591</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-12-26 15:21:00 +0000</bug_when>
    <thetext>$ bitbake xf86-video-omapfb -cfetch &amp;&amp; bitbake xf86-video-omapfb -ccleanall

The 0006-omapfb-port-to-new-xserver-video-API.patch in the DL_DIR has been removed, but the 0006-omapfb-port-to-new-xserver-video-API.patch.done still exists.

This is because the clean() in the fetch2/__init__.py will skip removing local file, so that it will skip removing the .done, the following patch will fix the problem:

diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 8fdf59c..1d89aaf 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -1497,7 +1497,7 @@ class Fetch(object):
             ud = self.ud[url]
             ud.setup_localpath(self.d)
 
-            if not ud.localfile or self.localpath is None:
+            if not ud.localfile and ud.localpath is None:
                 continue
 
             if ud.lockfile:</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39652</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2014-01-03 06:41:34 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=2c9475edcc5219b912530dbdcbca09ea6f43bcde</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39728</commentid>
    <comment_count>2</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2014-01-10 06:53:32 +0000</bug_when>
    <thetext>Verified with master/e93a345fae7c21652547bec501fcb1f3b6c6427d

#######################
$ find ./downloads/ -name  \*omapfb\*
$
$ bitbake xf86-video-omapfb -c fetch
...
...
$ $ find ./downloads/ -name  \*omapfb\*
./downloads/git2_git.pingu.fi.xf86-video-omapfb.tar.gz
./downloads/git2_git.pingu.fi.xf86-video-omapfb.tar.gz.done
./downloads/git2/git.pingu.fi.xf86-video-omapfb
./downloads/git2/git.pingu.fi.xf86-video-omapfb.done
./downloads/0006-omapfb-port-to-new-xserver-video-API.patch.done
$
$ bitbake xf86-video-omapfb -c cleanall
...
...
$ find ./downloads/ -name  \*omapfb\*
$
######################

The patch.done also be removed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>