Hello
As pointed out in the thread http://groups.google.com/group/alt.os.linux.slackware/browse_frm/thread/290e0f1f1f2e0dee#, when searching for 'qt', slackpkg does not return the package "qt" even when it is installed.
The problem comes from the code at #695 - #698 and #708 - #711 in /usr/libexec/slackpkg/core-functions.sh :
695/708 echo $LIST | \
696/709 grep -qwe "${NAME}-[^-]\+-\(${ARCH}\|fw\|noarch\)-[^-]\+" && \
697/710 continue
698/711 LIST="$LIST ${FULLNAME}"
More precisely, since LIST is a space separated list of package name, the grep used on this
can lead to return false positive, when the PATTERN is a substring of one of the package in "LIST".
For instance, this is what happen when you search for "qt". Indeed, when you do a "slackpkg search qt",
the selected packages (in variable PKGS at #704) will be :
polkit-qt-1-r1145513-x86_64-2 libdbusmenu-qt-0.6.4-x86_64-1 qt-4.7.0_7abde40-x86_64-3 qtscriptgenerator-0.1.0-x86_64-2
The loop at #706, handles the packages "polkit-qt" and "libdbusmenu-qt correctly", and the variable LIST will be set to :
"polkit-qt-1-r1145513-x86_64-2 libdbusmenu-qt-0.6.4-x86_64-1"
However, when the package "qt" is processed, it is rejected by the "grep -qwe" at 709 because the substring "qt-0.6.4-x86_64-1" in "libdbusmenu-qt-0.6.4-x86_64-1" match the REGEXP "qt-[^-]\+-\(x86_64\|fw\|noarch\)-[^-]\+"
The attached patch fix this issue.
search (and file-search) patch