<div dir="ltr"><div>For what it&#39;s worth I am firmly in the camp that finds the non-deletion of sources annoying. When I run &#39;devtool reset&#39;, there is never any unsaved work left in there, but I am in too much of a hurry to do the extra &#39;rm&#39; on those sources, and so much later (sometimes months later) it has to be done just prior to starting work on something else entirely (but with the same upstream component).</div><div><br></div><div>Alex<br></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 8 Aug 2019 at 22:17, Manjukumar Harthikote Matha &lt;<a href="mailto:MANJUKUM@xilinx.com">MANJUKUM@xilinx.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Paul,<br>
<br>
&gt; -----Original Message-----<br>
&gt; From: <a href="mailto:openembedded-core-bounces@lists.openembedded.org" target="_blank">openembedded-core-bounces@lists.openembedded.org</a><br>
&gt; &lt;<a href="mailto:openembedded-core-bounces@lists.openembedded.org" target="_blank">openembedded-core-bounces@lists.openembedded.org</a>&gt; On Behalf Of<br>
&gt; Manjukumar Harthikote Matha<br>
&gt; Sent: Monday, March 4, 2019 3:27 PM<br>
&gt; To: Paul Eggleton &lt;<a href="mailto:paul.eggleton@linux.intel.com" target="_blank">paul.eggleton@linux.intel.com</a>&gt;; openembedded-<br>
&gt; <a href="mailto:core@lists.openembedded.org" target="_blank">core@lists.openembedded.org</a>; Chandana Kalluri &lt;<a href="mailto:ckalluri@xilinx.com" target="_blank">ckalluri@xilinx.com</a>&gt;<br>
&gt; Subject: Re: [OE-core] [OE-Core][master][PATCH] standard.py: Provide an<br>
&gt; additional option for devtool reset<br>
&gt; <br>
&gt; Hi Paul,<br>
&gt; <br>
&gt; &gt; -----Original Message-----<br>
&gt; &gt; From: <a href="mailto:openembedded-core-bounces@lists.openembedded.org" target="_blank">openembedded-core-bounces@lists.openembedded.org</a><br>
&gt; &gt; [mailto:<a href="mailto:openembedded-core-bounces@lists.openembedded.org" target="_blank">openembedded-core-bounces@lists.openembedded.org</a>] On Behalf Of<br>
&gt; &gt; Paul Eggleton<br>
&gt; &gt; Sent: Monday, March 04, 2019 12:17 PM<br>
&gt; &gt; To: <a href="mailto:openembedded-core@lists.openembedded.org" target="_blank">openembedded-core@lists.openembedded.org</a>; Chandana Kalluri<br>
&gt; &gt; &lt;<a href="mailto:ckalluri@xilinx.com" target="_blank">ckalluri@xilinx.com</a>&gt;<br>
&gt; &gt; Subject: Re: [OE-core] [OE-Core][master][PATCH] standard.py: Provide<br>
&gt; &gt; an additional option for devtool reset<br>
&gt; &gt;<br>
&gt; &gt; On Friday, 8 February 2019 2:57:32 PM NZDT Sai Hari Chandana Kalluri wrote:<br>
&gt; &gt; &gt; The devtool reset command cleans the sysroot for a recipe in workspace.<br>
&gt; &gt; &gt; It also removes the append file but leaves the source code as in<br>
&gt; &gt; &gt; workspace. The source is not cleaned intentionally and the user has<br>
&gt; &gt; &gt; to manually remove it before calling devtool modify again.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Provide the user with an option to remove the source code from<br>
&gt; &gt; &gt; workspace by adding a flag to the devtool reset command. The<br>
&gt; &gt; &gt; --rm-source option for the devtool reset command will also clean the<br>
&gt; &gt; &gt; source code from the workspace along with the sysroot and the append file.<br>
&gt; &gt; &gt; Ex: devtool reset --rm-source zip or devtool reset -r zip<br>
&gt; &gt;<br>
&gt; &gt; When I wrote this I made a conscious decision not to delete the<br>
&gt; &gt; source, in case the user has unsaved work in the source tree; at least<br>
&gt; &gt; then the user has to take an explicit step (an additional rm -rf) in<br>
&gt; &gt; order to delete it. You might argue that adding an option is the same<br>
&gt; &gt; as that explicit step, but I am still hesitant as you might for<br>
&gt; &gt; example pick a previously used command from your command history with<br>
&gt; &gt; -r in it and only realise after you&#39;ve run it that you&#39;ve just blown away a bunch<br>
&gt; of your work.<br>
&gt; &gt;<br>
&gt; &gt; However, I have received the feedback from a number of people that<br>
&gt; &gt; they find it annoying that they have to delete the source themselves<br>
&gt; &gt; before being able to run devtool on the recipe again. I&#39;d like to hear<br>
&gt; &gt; from the wider community on the following two questions:<br>
&gt; &gt;<br>
&gt; &gt; 1) Does the convenience of having this kind of option outweigh the<br>
&gt; &gt; potential danger of deleting unsaved work?<br>
&gt; &gt;<br>
&gt; &gt; 2) Are there issues that anyone is experiencing that force you to run<br>
&gt; &gt; devtool clean/finish and then re-run devtool modify (or add, or<br>
&gt; &gt; upgrade), making this kind of situation come up more frequently? Or is<br>
&gt; &gt; it mostly that the source directories end up being left around to stumble over<br>
&gt; some time later?<br>
&gt; <br>
&gt; We have seen source directories end up being left around (taking more disk<br>
&gt; space on certain projects), hence a solution to remove it might be optimal. If the<br>
&gt; preference is not have &quot;-r&quot; option to avoid command history mistake, then a full<br>
&gt; command like devtool reset --rm-source is acceptable as well<br>
&gt; <br>
<br>
<br>
Any update on this?  Is there a reason not to merge this feature?<br>
<br>
Thanks,<br>
Manju<br>
-- <br>
_______________________________________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</blockquote></div>