remove dpkg usage from build_abi.sh

No need to rely on Debian to do a version check when sort can do it for
us already.  Removing the call to dpkg allows us to run the script on
non-Debian systems, which is nice for those of us not using that
specific distro variant.

Also, break the check for a working abidiff up into two different tests,
providing two different error messages to help people understand what
specifically went wrong (either no abigail installed at all, or an old
version is installed.)

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I9cda3c63b2cca732deb96ae92cd542643376adf5
1 file changed