<div dir="auto">Can you do the organize in the build instead of post organizing with the dump?  I used to do something similar with copy, but then dump didn't do what I needed, so switched it up.</div><div class="gmail_extra"><br><div class="gmail_quote">On Dec 13, 2016 5:21 PM, "Joe Coates" <<a href="mailto:jcoates@extremenetworks.com">jcoates@extremenetworks.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_-2845860057545741174WordSection1">
<p class="MsoNormal">My snap includes a part which has an unconventional build process (which I don’t control).  It builds and arranges a lot of stuff that I don’t need.  For a while now I have been using a second part with the dump plugin to pick the files
 I need out of the build tree of the first part, and create directories and files in the snap exactly as I need them.  The yaml goes like below.   Unfortunately this breaks as of snapcraft 2.23, which seems to check the dump source path before the first part
 is built, and fails.   Any suggestions as to how I can achieve the previous function with the current dump plugin ?  (Using the organize keyword in the first part does not seem to be able to create directories in the install tree). 
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="font-size:12.0pt">   </span><span style="font-size:12.0pt;font-family:"Courier New"">part-aa:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New"">    source: git@giteng1:part-aa<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New"">    source-type: git<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New"">    plugin: autotools   
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New""># Don't include anything from here in the snap (done in next part)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New"">    stage: [ "-*" ]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New"">    snap: [ "-*" ]   
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New"">    <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New""># This part just installs from the build tree of part-aa to the snap
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New"">  aa-snap:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New"">    source: ./parts/part-aa/build<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New"">    after: [part-aa]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New"">    plugin: dump<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New"">    organize:
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New"">      client/client: usr/bin/myclient<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New"">      other/observer: usr/bin/myobserver<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New"">      datafiles/client-1: etc/myclient/    
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New"">      datafiles/client-2: etc/myclient/       
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New"">      datafiles/observer-id: etc/myobserver/
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New"">    snap:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New"">      - usr/bin<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New"">      - etc<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New"">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New"">Joe Coates<u></u><u></u></span></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="2"><br>
DISCLAIMER:<br>
This e-mail and any attachments to it may contain confidential and proprietary material and is solely for the use of the intended recipient. Any review, use, disclosure, distribution or copying of this transmittal is prohibited except by or on behalf of the
 intended recipient. If you have received this transmittal in error, please notify the sender and destroy this e-mail and any attachments and all copies, whether electronic or printed.<br>
</font>
</div>

<br>--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/snapcraft</a><br>
<br></blockquote></div></div>