Commit 7a1cd2da authored by Vitaly Lipatov's avatar Vitaly Lipatov

gitask: fix get_subtask fallback to avoid substring matches

libopenshot-audio was incorrectly matched when searching for libopenshot. Use -[0-9] pattern to ensure version number follows package name.
parent a8e1cd08
......@@ -106,7 +106,7 @@ for num, st in task.get("subtasks", {}).items():
[ -n "$result" ] && echo "$result" && return
fi
# fallback
ssh $GEARHOST task show $1 | grep -E "(/$2.git|:package=$2$|:srpm=$2-.*src.rpm)" | sed -e "s|^ \([0-9]*\):.*|\1|g"
ssh $GEARHOST task show $1 | grep -E "(/$2\.git|:package=$2$|:srpm=$2-[0-9])" | sed -e "s|^ \([0-9]*\):.*|\1|g"
}
# get all subtask numbers from TASKNUMBER
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment