Skip to content

Commit 626fdde

Browse files
committed
builder - fix check for rp_hasNewerModule to build with return codes other than 1
1 parent a39f05d commit 626fdde

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scriptmodules/admin/builder.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,11 @@ function module_builder() {
4242
continue
4343
fi
4444

45-
# if there is no newer version, skip to the next module
46-
if ! rp_hasNewerModule "$id" "source"; then
45+
# if there is no newer version, skip to the next module. Returns 1 when update is not required,
46+
# but can also return 2, to mean "unknown" in which case we should do an update. Modules like sdl2
47+
# will return 2 as they are handled differently, and don't use the package update mechanisms.
48+
rp_hasNewerModule "$id" "source"
49+
if [[ "$?" -eq 1 ]]; then
4750
printMsgs "console" "No update was found."
4851
continue
4952
fi

0 commit comments

Comments
 (0)