Improved 'babel search'.
This commit is contained in:
parent
946fa7c7c2
commit
d826584f21
1 changed files with 5 additions and 4 deletions
|
|
@ -386,10 +386,11 @@ proc search(action: TAction) =
|
||||||
if notFound:
|
if notFound:
|
||||||
# Search by name.
|
# Search by name.
|
||||||
for pkg in pkgList:
|
for pkg in pkgList:
|
||||||
if pkg.name in action.search:
|
for word in action.search:
|
||||||
echoPackage(pkg)
|
if word in pkg.name:
|
||||||
echo(" ")
|
echoPackage(pkg)
|
||||||
notFound = false
|
echo(" ")
|
||||||
|
notFound = false
|
||||||
|
|
||||||
if notFound:
|
if notFound:
|
||||||
echo("No package found.")
|
echo("No package found.")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue