Skip to content

Commit

Permalink
api: allow to prefix packages with a +
Browse files Browse the repository at this point in the history
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 <mail@aparcar.org>
  • Loading branch information
aparcar committed Feb 18, 2023
1 parent 08e10b8 commit 1422c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asu/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 1422c7c

Please sign in to comment.