<div class="gmail_quote">On Sun, Aug 2, 2009 at 6:24 PM, Pierre Cazenave <span dir="ltr">&lt;<a href="mailto:pwcazenave@gmail.com">pwcazenave@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">
Chess Griffin wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sun, Aug 2, 2009 at 10:00 AM, Pierre Cazenave&lt;<a href="mailto:pwcazenave@gmail.com" target="_blank">pwcazenave@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br>
<br>
I&#39;m not sure if this has been discussed before, but I&#39;ve noticed that if I<br>
use a queue file to build a package and its dependencies, then all the<br>
packages listed in the queue file will be built, irrespective of whether<br>
they&#39;re already installed. A useful option would be to have sbopkg skip<br>
building those files that are already installed, thus reducing build times<br>
considerably. This way, a centrally distributed queue file (like those in<br>
/var/lib/sbopkg/queues) wouldn&#39;t build packages already installed on a<br>
user&#39;s system.<br>
<br>
</blockquote>
<br>
This has come up before. �The only difficulty is that this option<br>
really could not do a simple check of whether the package in the queue<br>
is installed. �To do it right, it would essentially first have to<br>
determine whether a package in the queue is installed and then also<br>
determine whether there is an update to that package. �If the package<br>
passed both checks -- meaning the package is installed and there is no<br>
update -- then conceivably it could be skipped (or the user given the<br>
option to skip). �Overall, this would probably slow down the queue<br>
processing at the outset. �This is not an insurmountable problem, but<br>
still it is something to consider.<br>
<br>
I agree that it would be helpful, though.<br>
<br>
</blockquote>
<br></div>
Perhaps having the default as it is at the moment, so that there&#39;s no increase in time for the standard behaviour, but having a flag like --check-installed could then trigger the slower checks for installed packages? This way a casual-ish user would have the current experience, but if you wanted to avoid the possibility of having to rebuild packages you&#39;ve already installed, it&#39;d be available as an option.<br>

<br>
Of course, you can just comment out the installed packages from the queue file, but I don&#39;t always remember everything that&#39;s installed on my system!<br>
<br>
I also don&#39;t think it&#39;d necessarily have to check for updates to the currently installed packages, as that&#39;s more a job for the dedicated update option in sbopkg.</blockquote><div><br></div></div>The issue here is that you may want to build a package you have already installed.<br>
<br>Actually, we have a half-working patch that, in the queue view, instead of &quot;Found&quot; shows whether a package with the same name is installed, and if so which version is installed. You still have to deselect things manually, but at least you have a handy reference.<br>
<br>Do you think this would be enough to address the issue?<br>-- <br>Mauro Giachero<br>