tazpkg rev 387
Improvement: Allow to request a specific package's version number with get/get-install.
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Wed Dec 08 18:37:58 2010 +0100 (2010-12-08) |
parents | 6f594569d967 |
children | e1357d7ca9ae |
files | tazpkg |
line diff
1.1 --- a/tazpkg Wed Dec 08 18:36:03 2010 +0100 1.2 +++ b/tazpkg Wed Dec 08 18:37:58 2010 +0100 1.3 @@ -308,7 +308,11 @@ 1.4 pkg=$(grep -A 1 -sh "^$1$" $rep/packages.txt | tail -1 | \ 1.5 sed 's/^ *//') 1.6 [ "$pkg" ] && pkg=$(grep -sh "^$1-$pkg" \ 1.7 - $rep/packages.list | head -1) 1.8 + $rep/packages.list | head -1) 1.9 + 1.10 + # Allow user to call a package with his version number. 1.11 + [ "$pkg" ] || pkg=$(grep -sh "^$1$" $rep/packages.list | head -1) 1.12 + 1.13 [ "$pkg" ] || pkg=$(grep -sh "^$1-[0-9]" \ 1.14 $rep/packages.list | head -1) 1.15 [ "$pkg" ] || pkg=$(grep -sh "^$1-.[\.0-9]" \