From 1422c7ccddc336c77c6356cc5d962bf26a61165a Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Sat, 18 Feb 2023 02:52:11 +0100 Subject: [PATCH] api: allow to prefix packages with a + When adding a + to the beginning of a package name it will modify the order of packages and thereby fix dependency issues of OPKG. This is more of a advanced user feature. Signed-off-by: Paul Spooren --- asu/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asu/api.py b/asu/api.py index 90778ab6..fc234e52 100644 --- a/asu/api.py +++ b/asu/api.py @@ -84,7 +84,7 @@ def validate_packages(req): else: tr.add(p) - req["packages"] = tr + req["packages"] = list(map(lambda x: x.removeprefix("+"), sorted(tr))) # store request packages temporary in Redis and create a diff temp = str(uuid4())