The problem lies in the "opt2" extension of the slackpkg script.
In /usr/sbin/slackpkg at line 464 you'll find:
Code:
INSTPKG=$(ls -1 /var/log/packages | \
grep -e "^${BASENAME}-[^-]\+-\(${ARCH}\|fw\|noarch\)-[[:digit:]]\+")
Most packages end with the "build-version" like -1, -2, -3 etc.
The qt3 package is optional and ends with -opt2 and therefore is not found as "installed" by Slackpkg.
The solution would be to change the line as follows:
Code:
INSTPKG=$(ls -1 /var/log/packages | \
grep -e "^${BASENAME}-[^-]\+-\(${ARCH}\|fw\|noarch\)-[[:alpha:]]*[[:digit:]]\+")
This seems to work, as "slackpkg search qt3" returns:
Code:
[ installed ] - kdebase-runtime-4.2.4-x86_64-1
[ installed ] - qt-r994599-x86_64-1
[ installed ] - qt3-3.3.8b-x86_64-opt2
Note: I am not an expert, just a big fan of Slackpkg and have made some changes in the scripts before