diff options
| -rwxr-xr-x | spm | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -113,7 +113,7 @@ spm_install() { if [ -f "$SPMDIR/conflict.list" ] && [ ! "$SPM_FORCEINSTALL" ]; then cat "$SPMDIR/conflict.list" | while read -r line; do - p=$(grep $line $PKGDB/* | awk -F : '{print $1}' | head -n1) + p=$(grep -x $line $PKGDB/* | awk -F : '{print $1}' | head -n1) p=${p##*/} echo "${p:-(none)}: $line" done @@ -252,7 +252,10 @@ spm_allinstalled() { spm_listfiles() { checkdbdir needarg $1 - tail -n+2 $PKGDB/$1 + if [ ! -s $PKGDB/$1 ]; then + msgerr "Package '$1' not installed." + fi + tail -n+2 $PKGDB/$1 exit 0 } |