a little script: snapdiff

Michael Hudson-Doyle michael.hudson at canonical.com
Fri Feb 10 00:44:32 UTC 2017


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.yaml 2017-01-11 11:49:30.000000000 +1300
+++ meta2/snap.yaml 2017-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/

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


More information about the Snapcraft mailing list