Change match order

This commit is contained in:
Steve McIntyre 2008-06-07 19:31:29 +00:00
parent 9c027571ba
commit 09dab01bb4
1 changed files with 5 additions and 2 deletions

View File

@ -37,11 +37,14 @@ update_full_list () {
}
/^Task: / {
if (in_packages) {
# Parse the Tasks: line, splitting into array "these"
gsub("Task: ", "", $0)
gsub(",", "", $0)
split($0, these)
for (taskname in tasklist) {
for (task in these) {
# And see if we have any matches
for (task in these) {
for (taskname in tasklist) {
if (these[task] == taskname) {
printf("%d:%s\n", tasklist[taskname], pkgname)
next