libapse.lib: ignore everything after a dash ('-') when checking for last version

This commit is contained in:
Silvan Calarco 2016-04-08 15:31:10 +02:00
parent 7761a49bb3
commit 99fd03d6a7

View File

@ -565,7 +565,7 @@ apse.cmpversion \"$last_version\" \"$new_version\""
unset APSE_LAST_VERSION unset APSE_LAST_VERSION
if [ "$last_version" ]; then if [ "$last_version" ]; then
APSE_LAST_VERSION="${last_version/-/.}" APSE_LAST_VERSION="${last_version/-*}"
notify.note $"\ notify.note $"\
last version of \`${NOTE}$specname${NORM}' found:"" \ last version of \`${NOTE}$specname${NORM}' found:"" \
\`${NOTE}${APSE_LAST_VERSION}${NORM}'" \`${NOTE}${APSE_LAST_VERSION}${NORM}'"