i used dpkg-query --show (thanks) i put results here: https://github.com/borgified/diffdpkg
output is the output from running the check.pl script used to compare the two files (node01.txt and travis.txt) node01 is my vm which runs grind.sh just fine travis is the worker from travis-ci.org where grind.sh gets stuck On Sat, May 25, 2013 at 7:51 PM, Alan Robertson <[email protected]> wrote: > Hi, > > This command works nicely for debian systems > > dpkg-query --show > --showformat='"${package;0}::${architecture;0}":"${version;0}"\n' > > A really simple script wrapped around this would make it into fully > legit JSON. > > One of the annoying things about JSON is that the final data element > before a } cannot have a comma after it. > > > This script produces JSON... > > comma='{' > dpkg-query --show > --showformat='"${package;0}::${architecture;0}":"${version;0}"\n' | > while > read line > do > printf '%s' "${comma}${line}" > comma=', > ' > done > printf '\n%s' "}" > > Unfortunately, I can't discover that data in production until we add > compression [It's in the architecture, but not yet implemented]. > > -- > Alan Robertson <[email protected]> - @OSSAlanR > > "Openness is the foundation and preservative of friendship... Let me > claim from you at all times your undisguised opinions." - William > Wilberforce > _______________________________________________ > Assimilation mailing list - Discovery-Driven Monitoring > [email protected] > http://lists.community.tummy.com/cgi-bin/mailman/listinfo/assimilation > http://assimmon.org/ >
_______________________________________________ Assimilation mailing list - Discovery-Driven Monitoring [email protected] http://lists.community.tummy.com/cgi-bin/mailman/listinfo/assimilation http://assimmon.org/
