From e0f19627893c7205a26a3a12d6fa99c8b8ee4219 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 11 Oct 2008 05:28:52 +0200 Subject: [PATCH] Improve one more time the regexp to match installed vs required versions. --HG-- extra : convert_revision : 4ae4f3c2c565dc81a9dc6101444aa8f592aaac79 --- pkgfs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgfs.sh b/pkgfs.sh index a212895b11a..bc084196b68 100755 --- a/pkgfs.sh +++ b/pkgfs.sh @@ -1049,7 +1049,7 @@ check_installed_tmpl() run_file $PKGFS_TEMPLATESDIR/${pkg%-[0-9]*.*}.tmpl - reqver="$(echo $reqver | $sed_cmd 's|\.||g;s|[aA-zZ]||g')" + reqver="$(echo $reqver | $sed_cmd 's|[[:punct:]]||g;s|[[:alpha:]]||g')" $db_cmd -K btree $PKGFS_REGPKG_DB $pkgname 2>&1 >/dev/null if [ "$?" -eq 0 ]; then @@ -1064,7 +1064,7 @@ check_installed_tmpl() # It's not optimal and may fail, but it is enough # for now. # - iver="$(echo $iver | $sed_cmd 's|\.||g;s|[aA-zZ]||g')" + iver="$(echo $iver | $sed_cmd 's|[[:punct:]]||g;s|[[:alpha:]]||g')" if [ "$iver" -eq "$reqver" \ -o "$iver" -gt "$reqver" ]; then return 0