luci-app-opkg: relax dependency parsing
authorJo-Philipp Wich <[email protected]>
Fri, 30 Sep 2022 07:59:39 +0000 (09:59 +0200)
committerJo-Philipp Wich <[email protected]>
Fri, 30 Sep 2022 08:03:35 +0000 (10:03 +0200)
commite01e38cf822b77ee9735da1d519f7eb1c48cce19
treec681cc58a68e8e3e72af00560350db80afb46266
parent30ba27798900a351513372d935c7533d9e658c92
luci-app-opkg: relax dependency parsing

Align depdendency parse logic with opkg to properly process certain
malformed dependency specifications. In particular do not require a
depdendency specification to end after the closing paren of a version
constraint and perform non-greedy matching in order to extract the
first version constraint only.

Fixes: #5997
Ref: https://forum.openwrt.org/t/x/138328
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 84ba6a5c36072f74721d535104735757b005c8d6)
applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js