diff options
author | B. Watson <yalhcru@gmail.com> | 2018-07-16 16:45:33 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2018-07-16 16:45:33 -0400 |
commit | 6e85199a5b8dd9384f8a575d80e912c033ba0901 (patch) | |
tree | 10e4a4efc38fc4bc30b67be383e1c368c292b0dc | |
parent | 8568cc23685966d5bda423dfb8d26ebf62d96ae3 (diff) | |
download | sbostuff-6e85199a5b8dd9384f8a575d80e912c033ba0901.tar.gz |
sbosrcarch: add by-md5 build status
-rwxr-xr-x | sbosrcarch | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -1696,7 +1696,8 @@ sub check_info_wanted { $totalfiles += keys %$dls; $infofilecount{"$category/$prgnam"} += keys %$dls; $parsedinfo{"$category/$prgnam"} = $dls; - $allmd5sums{$_}++ for values %$dls; + #$allmd5sums{$_}++ for values %$dls; + push @{$allmd5sums{$_}}, "$category/$prgnam" for values %$dls; } # write status results to STATUS file in the root of the archive @@ -1736,6 +1737,7 @@ sub check_mode { $quickcheck = shift; # 1 = don't md5sum stuff shift @ARGV; $verbosecheck = ($ARGV[0] && $ARGV[0] =~ /^-*v(?:erbose)?$/); + our %missingmd5builds; $use_bwlist = 1; init_git(); @@ -1807,6 +1809,17 @@ Extraneous files: $extraneous_bymd5 File coverage: $md5_filecoverage% EOF + my @list; + for(keys %allmd5sums) { + push @list, @{$allmd5sums{$_}} if ref $allmd5sums{$_}; + } + if(@list) { + $output .= "Following SlackBuilds are missing by-md5 files:\n"; + $output .= " $_\n" for sort { $a cmp $b } @list; + } else { + $output .= "All SlackBuild download files present in by-md5.\n"; + } + print $output; write_status_file($output); exit 0; |