This commit is contained in:
Dominik Picheta 2013-11-30 14:55:02 +00:00
commit 94df44eb6c

View file

@ -358,11 +358,12 @@ proc search(action: TAction) =
var notFound = true
for pkg in pkgList:
for word in action.search:
if word in pkg.tags:
echoPackage(pkg)
echo(" ")
notFound = false
break
for tag in pkg.tags:
if word in tag:
echoPackage(pkg)
echo(" ")
notFound = false
break
if notFound:
# Search by name.
for pkg in pkgList: