a little script: snapdiff

Michael Hudson-Doyle michael.hudson at canonical.com
Thu Mar 2 21:20:29 UTC 2017


On 10 February 2017 at 19:16, Simon Fels <simon.fels at canonical.com> wrote:

> On 10.02.2017 01:44, Michael Hudson-Doyle wrote:
> > Very much inspired by debdiff, I wrote a little script to compare two
> > snaps. It looks like this:
> >
> > (master)mwhudson at aeglos:/opt/opensource/snaps/go$ snapdiff
> > go-17-mwhudson_1.snap go-17-mwhudson_2.snap
> > Only in second snap, go-17-mwhudson_2.snap:
> >
> > -rw-rw-r-- root/root               839 2017-02-03 11:14
> > test/fixedbugs/issue16331.go
> > -rw-rw-r-- root/root               686 2017-02-03 11:14
> > test/fixedbugs/issue18410.go
> >
> > Differences in meta directory:
> >
> > diff -Nur meta1/snap.yaml meta2/snap.yaml
> > --- meta1/snap.yaml2017-01-11 11:49:30.000000000 +1300
> > +++ meta2/snap.yaml2017-02-03 11:16:07.000000000 +1300
> > @@ -13,4 +13,4 @@
> >  grade: devel
> >  name: go-17-mwhudson
> >  summary: Go programming language compiler, linker, stdlib
> > -version: 1.7.4
> > +version: 1.7.5
> >
> > It's implemented in perl (for no very good reason) and you can get it
> > here: http://paste.ubuntu.com/23963902/
>
> That is really nice!
>
> Having a classic snap for it would be awesome :-)
>

I've finally pushed this, needs review of course. It's also on github at
https://github.com/mwhudson/snapdiff now.

Cheers,
mwh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20170303/c0a8acda/attachment.html>


More information about the Snapcraft mailing list