Skip to content

Commit d8e9748

Browse files
authored
Merge pull request #2926 from joolswills/stats_fixes
Stats fixes
2 parents 0972ab6 + cc5fb00 commit d8e9748

File tree

3 files changed

+22
-16
lines changed

3 files changed

+22
-16
lines changed

scriptmodules/admin/stats.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ function build_stats() {
3333
local dest="$__tmpdir/stats"
3434
mkUserDir "$dest"
3535

36+
# ignore platform flags to get info for all packages
37+
__ignore_flags=1
38+
rp_registerAllModules
39+
3640
echo "$(_get_package_data_stats)" > "$dest/packages.csv"
3741
echo "$(_get_commit_data_stats)" > "$dest/commit.csv"
3842

scriptmodules/packages.sh

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,6 @@
1010
#
1111

1212
declare -A __mod_id_to_idx
13-
__mod_idx=()
14-
__mod_id=()
15-
__mod_type=()
16-
__mod_desc=()
17-
__mod_help=()
18-
__mod_licence=()
19-
__mod_section=()
20-
__mod_flags=()
21-
2213
declare -A __sections
2314
__sections[core]="core"
2415
__sections[main]="main"
@@ -393,12 +384,14 @@ function rp_registerModule() {
393384
local flag
394385
local valid=1
395386
396-
for flag in "${flags[@]}"; do
397-
if [[ "$flag" =~ ^\!(.+) ]] && isPlatform "${BASH_REMATCH[1]}"; then
398-
valid=0
399-
break
400-
fi
401-
done
387+
if [[ "$__ignore_flags" -ne 1 ]]; then
388+
for flag in "${flags[@]}"; do
389+
if [[ "$flag" =~ ^\!(.+) ]] && isPlatform "${BASH_REMATCH[1]}"; then
390+
valid=0
391+
break
392+
fi
393+
done
394+
fi
402395
403396
if [[ "$valid" -eq 1 ]]; then
404397
__mod_idx+=("$module_idx")
@@ -425,6 +418,15 @@ function rp_registerModuleDir() {
425418
}
426419
427420
function rp_registerAllModules() {
421+
__mod_idx=()
422+
__mod_id=()
423+
__mod_type=()
424+
__mod_desc=()
425+
__mod_help=()
426+
__mod_licence=()
427+
__mod_section=()
428+
__mod_flags=()
429+
428430
rp_registerModuleDir 100 "emulators"
429431
rp_registerModuleDir 200 "libretrocores"
430432
rp_registerModuleDir 300 "ports"

scriptmodules/supplementary/resetromdirs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111

1212
rp_module_id="resetromdirs"
13-
rp_module_desc="Reset ownership/permissions of $romdir"
13+
rp_module_desc="Reset ownership/permissions of RetroPie/roms directory"
1414
rp_module_section="config"
1515

1616
function gui_resetromdirs() {

0 commit comments

Comments
 (0)