Skip to content

Commit d6775d4

Browse files
committed
packages - fix install of modules with nonet flag when not connected
This allows updating/reinstalling of modules with the nonet flag set (retropiemenu and runcommand) when no internet connection is available. Incorrect variable was used in comparison ($id instead of $md_id), so the has_net wasn't forced to 1.
1 parent 5b9e221 commit d6775d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scriptmodules/packages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function rp_callModule() {
150150
isConnected && has_net=1
151151
152152
# for modules with nonet flag that don't need to download data, we force has_net to 1
153-
hasFlag "${__mod_info[$id/flags]}" "nonet" && has_net=1
153+
hasFlag "${__mod_info[$md_id/flags]}" "nonet" && has_net=1
154154
155155
if [[ "$has_net" -eq 1 ]]; then
156156
rp_hasBinary "$md_id"

0 commit comments

Comments
 (0)