Fix ALSA packages version.

This commit is contained in:
Manuel Canales Esparcia 2006-08-18 19:47:00 +00:00
parent c704412372
commit fd3dcd4db4

View file

@ -23,8 +23,10 @@ declare PKG_VER
get_pkg_ver() {
local this_script=$1
[[ ${this_script:0:4} = "alsa" ]] && this_script=alsa
PKG_VER=$(xmllint --noent ./blfs-xml/book/bookinfo.xml 2>/dev/null | \
grep -i " ${this_script#*-?-}-version " | cut -d "\"" -f2 )
grep -i " ${this_script}-version " | cut -d "\"" -f2 )
}