From c7baefb69e54b8caa66c90208146b85efd2ffd74 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 28 May 2015 20:26:26 +0200 Subject: [PATCH] Fix calling lintian with library packages --- src/deforaos-package.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/deforaos-package.sh b/src/deforaos-package.sh index ab85792..7b70ec6 100755 --- a/src/deforaos-package.sh +++ b/src/deforaos-package.sh @@ -393,12 +393,13 @@ EOF _debian_lintian() { arch="$($DPKG --print-architecture)" - major=0 + major= + [ -z "${PACKAGE%%lib*}" ] && major=0 _info "Checking the package..." #XXX only check for the packages built this time for i in "../${pkgname}_$VERSION-${revision}_$arch.deb" \ - "../$pkgname$major_$VERSION-${revision}_$arch.deb" \ + "../$pkgname${major}_$VERSION-${revision}_$arch.deb" \ "../$pkgname-dev_$VERSION-${revision}_$arch.deb"; do [ -f "$i" ] || continue