diff --git a/bash-rpmlintrc b/bash-rpmlintrc index 3dcea1a0..1986eb06 100644 --- a/bash-rpmlintrc +++ b/bash-rpmlintrc @@ -1,3 +1,4 @@ -addFilter(".*hidden-file-or-dir.*/etc/skel/\..*") +addFilter(".*shared-library-without-dependency-information.*") +addFilter(".*useless-provides.*") addFilter(".*zero-length.*/etc/skel/\..*") addFilter(".*call-to-mktemp.*/usr/bin/bash.*") diff --git a/get_version_number.sh b/get_version_number.sh index 31214a76..970174ce 100644 --- a/get_version_number.sh +++ b/get_version_number.sh @@ -7,9 +7,9 @@ version=$(sed -rn '/^%define[[:space:]]+bversion/{s/^%define[[:space:]]+bversion test -e ${sourcedir}/bash-${version}.tar.gz || exit 1 last=($(tar Oxf ${sourcedir}/bash-${version}.tar.gz bash-${version}/configure.ac | sed -rn '/^define.bashvers/{s/^define\(bashvers,[[:space:]]([0-9\.]+)\)/\1/p}')) || exit 1 test -e ${sourcedir}/bash-${version}-patches.tar.bz2 || echo ${last[0]} -tar --wildcards -tf ${sourcedir}/bash-${version}-patches.tar.bz2 '*/bash[0-9][0-9]-[0-9]*' &> /dev/null || echo ${last[0]} +tar --wildcards -tf ${sourcedir}/bash-${version}-patches.tar.bz2 '*/bash[0-9][0-9]-*[0-9]' &> /dev/null || echo ${last[0]} OFS="$IFS" IFS=- -last=($(tar -tf ${sourcedir}/bash-${version}-patches.tar.bz2 | sed -r 's@\.patch$@@'| sort -t '-' -k 3,3 -n | tail -n 1)) +last=($(tar --wildcards -tf ${sourcedir}/bash-${version}-patches.tar.bz2 '*/bash[0-9][0-9]-*[0-9]' | sed -r 's@\.patch$@@'| sort -t '-' -k 3,3 -n | tail -n 1)) IFS="$OFS" echo ${last[3]/*0/}