<div dir="ltr"><div><div><div><div><div><div>" (I don't recall the bugs, but they're in launchpad<br>
if you care to look for them)."<br><br></div>Now you got another surprising behaviour.<br></div>Let's say you have a snap called "mysnap" and it has a 'bin' directory, containing the executable "prog".<br></div>Deploy the snap, go into /apps/mysnap.sideload/current/bin and execute "prog".<br></div>Now update "prog", redeploy, and execute "prog" again.<br></div>Surprise, surprise, it is the old one. Because your shell remained in a directory that was "current" at certain point but it is<br></div>not anymore. In order to get the redeployed package, you have to cd /apps/mysnap.sideload/current/bin again.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 31, 2015 at 1:16 AM, John Lenton <span dir="ltr"><<a href="mailto:john.lenton@canonical.com" target="_blank">john.lenton@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 30 October 2015 at 21:31, Gábor Paller <<a href="mailto:gaborpaller@gmail.com">gaborpaller@gmail.com</a>> wrote:<br>
> and why is the difference?<br>
<br>
</span>because most of the times developers will install the same package<br>
again and again while building and debugging their program, and that<br>
breaks some things (I don't recall the bugs, but they're in launchpad<br>
if you care to look for them). We had two options: stop developers<br>
from being able to re-sideload things with the same declared version,<br>
or override it.<br>
<br>
Given that the path to a package should not be relied on for anything<br>
(this is why you get all those useful environment variables), and will<br>
at some point probably go away in favour of store revisions even for<br>
store-installed packages, it seemed like the best option.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
snappy-devel mailing list<br>
<a href="mailto:snappy-devel@lists.ubuntu.com">snappy-devel@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snappy-devel" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/snappy-devel</a><br>
</div></div></blockquote></div><br></div>