<div dir="ltr"><div><div><div><div><div>OK, one naive question more.<br></div>At the bottom of this page:<br><a href="https://developer.ubuntu.com/en/snappy/guides/package-metadata/">https://developer.ubuntu.com/en/snappy/guides/package-metadata/</a><br></div>there is the line:<br>"See lp:~snappy-dev/snappy-hub/snappy-examples for up-to-date examples."<br><br></div>What is lp:~?<br><br></div>Regards,<br></div>Gabor<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 30, 2015 at 2:17 PM, Jamie Strandboge <span dir="ltr"><<a href="mailto:jamie@canonical.com" target="_blank">jamie@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 10/30/2015 03:13 AM, Gábor Paller wrote:<br>
> "Let us know how it goes updating your snap."<br>
><br>
> Let me grab this opportunity to talk about my AppArmor file that breaks the<br>
> install. :-)<br>
><br>
> The whole purpose of that exercise is to access the /dev/ttyO1 device that I use<br>
> to talk to my GSM machinery. So if there's an easy way to provide access, I<br>
> happily drop that AppArmor file. :-)<br>
><br>
<br>
</span>On a 15.04 system, use:<br>
$ sudo snappy hw-assign cameraagent.sideload /dev/ttyO1<br>
<span class=""><br>
> Meanwhile, it looks like this:<br>
> {<br>
>     "template": "default",<br>
>     "policy_vendor": "ubuntu-snappy",<br>
>     "policy_version": 1.3,<br>
>     "policy_groups": [<br>
>         "networking"<br>
>     ],<br>
>     "read_path": [<br>
>         "/dev/ttyO1"<br>
>    ],<br>
>    "write_path": [<br>
>         "/dev/ttyO1"<br>
>    ]<br>
> }<br>
><br>
> Referenced like this from package.yaml:<br>
><br>
> binaries:<br>
>  - name: bin/cameraagent.sh<br>
>    security-policy:<br>
>       apparmor: meta/cameraagent.apparmor<br>
><br>
<br>
</span>This is an old yaml format and the policy vendor and version you are using<br>
indicate this is from tools from before the 15.04 release (and there was a lot<br>
of snappy activity prior to release).<br>
<br>
In the future, you can use the review tools to catch these issues (assuming they<br>
are up to date. These are the same tools that the store will use). Eg:<br>
$ click-review /path/to/you/snap<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Jamie Strandboge                 <a href="http://www.ubuntu.com/" rel="noreferrer" target="_blank">http://www.ubuntu.com/</a><br>
<br>
</font></span><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>
<br></blockquote></div><br></div>