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