]> Zhao Yanbai Git Server - minix.git/commitdiff
Packman also recognizes package names with no or partial version number
authorErik van der Kouwe <erik@minix3.org>
Sun, 20 Jun 2010 06:39:23 +0000 (06:39 +0000)
committerErik van der Kouwe <erik@minix3.org>
Sun, 20 Jun 2010 06:39:23 +0000 (06:39 +0000)
commands/packman/packman.sh

index 56d4943c6f8eb68f615cae35f89e66aa3158fce7..bac7b837b5860c2e47ca1cf15114ade8a4fdf180 100644 (file)
@@ -192,7 +192,7 @@ do  cd $TMPDIR
       do
        ok=y
        if [ $packlistno -eq 0 ]
-       then pat="^[0-9]\+|$packno|"
+       then pat="^[0-9]\+|$packno[-|.]"
        else pat="^$packno|"
        fi
        if [ "`grep -c $pat $TMPF`" -ne 1 ]