<?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>269</bug_id>
          
          <creation_ts>2010-09-03 16:07:46 +0000</creation_ts>
          <short_desc>sstate manifests need to be ordered</short_desc>
          <delta_ts>2010-12-21 06:09:40 +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>core</component>
          <version>0.9</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>0.9 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jeff Polk">jeff.polk</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>josh</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>9588</commentid>
    <comment_count>0</comment_count>
    <who name="Jeff Polk">jeff.polk</who>
    <bug_when>2010-09-03 16:07:46 +0000</bug_when>
    <thetext>sstate_clean reads the manifest and expects to be able to rmdir directories so the directories need to follow the files in the list</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10017</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2010-09-29 03:57:48 +0000</bug_when>
    <thetext>The directories do follow files, but are listed in parent child order. Fixing this could be as simple as calling reverse() on the list of directories...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10019</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-09-29 04:42:48 +0000</bug_when>
    <thetext>I think I&apos;d be happier if the order was explicit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10020</commentid>
    <comment_count>3</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2010-09-29 05:09:08 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; I think I&apos;d be happier if the order was explicit.

Well, it is in that the list of directories is generated whilst walking the directory tree depth first from the root.

However I can implement this such that the list is first explicitly sorted by length and then reversed, to ensure that the list children (longer entries) are at the top?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10033</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2010-09-29 09:12:01 +0000</bug_when>
    <thetext>Pushed a fix: 62fe6dc755d83a4d394cb8a3751fc6172715ee37

sstate: list directories in child first order in the manifest file
The directory list in the manifest file needs to be sorted such that child
directories are deleted first. Fortunately as the list is generated by walking</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>