diff options
author | Julian Andres Klode <jak@debian.org> | 2016-08-24 16:21:12 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2016-08-26 22:22:47 +0200 |
commit | 03ae49aca57b499f8ef497c2777b3eaef2516d1a (patch) | |
tree | e5e360821ddc4b2f76071e3d898aae9806cf7e37 /test/integration/test-bug-661537-build-profiles-support | |
parent | 71e22da91ff888cf645e5083fbac7839846111d2 (diff) |
test: More portable check for dpkg versions
This check should work regardless if dpkg was installed by dpkg
or by a native package manager like RPM or pkg.
Gbp-Dch: ignore
Diffstat (limited to 'test/integration/test-bug-661537-build-profiles-support')
-rwxr-xr-x | test/integration/test-bug-661537-build-profiles-support | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/test-bug-661537-build-profiles-support b/test/integration/test-bug-661537-build-profiles-support index 91115ea18..d24484de9 100755 --- a/test/integration/test-bug-661537-build-profiles-support +++ b/test/integration/test-bug-661537-build-profiles-support @@ -76,7 +76,7 @@ Building dependency tree... } msgtest 'Check if version of installed dpkg is high enough for' 'build profiles support' -if dpkg --compare-versions "$(command dpkg-query --showformat='${Version}' --show dpkg)" 'ge' '1.17.14'; then +if dpkg --compare-versions "$(dpkg_version)" 'ge' '1.17.14'; then msgpass testwithdpkg() { msgtest "Test with" "dpkg-checkbuilddeps -d '$1' -P '$2'" |