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 var notFound = true
for pkg in pkgList: for pkg in pkgList:
for word in action.search: for word in action.search:
if word in pkg.tags: for tag in pkg.tags:
echoPackage(pkg) if word in tag:
echo(" ") echoPackage(pkg)
notFound = false echo(" ")
break notFound = false
break
if notFound: if notFound:
# Search by name. # Search by name.
for pkg in pkgList: for pkg in pkgList: