<?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>5688</bug_id>
          
          <creation_ts>2013-12-26 15:46:56 +0000</creation_ts>
          <short_desc>bitbake -ccleanall doesn&apos;t remove the git2_git.pkg.tar.gz.done</short_desc>
          <delta_ts>2014-01-10 06:56:12 +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>39592</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-12-26 15:46:56 +0000</bug_when>
    <thetext>$ bitbake xf86-video-omapfb -cfetch &amp;&amp; bitbake xf86-video-omapfb -ccleanall


The git2_git.pingu.fi.xf86-video-omapfb.tar.gz has been removed from the DL_DIR, but the git2_git.pingu.fi.xf86-video-omapfb.tar.gz.done doesn&apos;t, this is because the &quot;open(ud.donestamp, &apos;w&apos;).close()&quot; in try_mirror_url() will create the git2_git.xxx.tar.gz.done, but no one removes (the clean() in fetch2/__init__.py removes the DL_DIR/git2/pkg.done)

This only happens on the git fetcher AFAIK, the following patch will fix the problem:

diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index bd107db..b4b9368 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -283,6 +283,7 @@ class Git(FetchMethod):
 
         bb.utils.remove(ud.localpath, True)
         bb.utils.remove(ud.fullmirror)
+        bb.utils.remove(ud.fullmirror + &quot;.done&quot;)
 
     def supports_srcrev(self):
         return True</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39653</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2014-01-03 06:42:44 +0000</bug_when>
    <thetext>Merged:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=5688</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39729</commentid>
    <comment_count>2</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2014-01-10 06:56:12 +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 git2_git.pkg.tar.gz.done also be removed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>