update buildroot - work in progress development
[cmdllinux.git] / buildroot / _pkg / dest / pkg_check / _chk_more_versions.sh
blob2400dc7bde8d76c039e00efc0b3af655f4015961
1 #is there more version of a package
2 nofiles()
4 echo "no files"
5 exit 1
8 [ -z "$1" ] && cd /dest || cd "$1"
9 ls *.tar.gz > /dev/null 2>&1 || nofiles
10 ls *.tar.gz | rev | cut -d - -f 3- | rev | sort | tee /_a | sort -u > /_b
11 comm -23 /_a /_b