aboutsummaryrefslogtreecommitdiff
path: root/sbosrcarch
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2018-06-04 04:36:01 -0400
committerB. Watson <yalhcru@gmail.com>2018-06-04 04:36:01 -0400
commit90c34c45de0db4511c280ffbabb8ff21d2a08239 (patch)
treedd5f2dd44d036d3abd8bf79094dd5c7612ec8d39 /sbosrcarch
parent91532c42ff36d4ef0efc0b8451675399a9f04813 (diff)
downloadsbostuff-90c34c45de0db4511c280ffbabb8ff21d2a08239.tar.gz
sbosrcarch purge_mode fix, wip
Diffstat (limited to 'sbosrcarch')
-rwxr-xr-xsbosrcarch11
1 files changed, 10 insertions, 1 deletions
diff --git a/sbosrcarch b/sbosrcarch
index d073651..98a0c1f 100755
--- a/sbosrcarch
+++ b/sbosrcarch
@@ -1656,11 +1656,20 @@ sub check_bymd5_wanted {
sub check_info_wanted {
return unless /\.info/;
s,\./,,;
- my ($category, $prgnam, undef) = split /\//;
+
+ my ($category, $prgnam, $file) = split /\//;
+
if(blacklisted("$category/$prgnam")) {
warn " $category/$prgnam blacklisted, skipping\n";
return;
}
+
+ # 20180604 bkw: games/mrboom has a file named "mrboom_libretro.info"
+ # which isn't an SBo info file. In general it's allowed for builds to
+ # include other files with .info filenames, so this bit is to make
+ # sure we're only looking at the real prgnam.info file:
+ return unless $file eq ($prgnam . ".info");
+
my $dls = parse_info($_);
$totalfiles += keys %$dls;
$infofilecount{"$category/$prgnam"} += keys %$dls;