aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2018-07-16 16:45:33 -0400
committerB. Watson <yalhcru@gmail.com>2018-07-16 16:45:33 -0400
commit6e85199a5b8dd9384f8a575d80e912c033ba0901 (patch)
tree10e4a4efc38fc4bc30b67be383e1c368c292b0dc
parent8568cc23685966d5bda423dfb8d26ebf62d96ae3 (diff)
downloadsbostuff-6e85199a5b8dd9384f8a575d80e912c033ba0901.tar.gz
sbosrcarch: add by-md5 build status
-rwxr-xr-xsbosrcarch15
1 files changed, 14 insertions, 1 deletions
diff --git a/sbosrcarch b/sbosrcarch
index d8ef22e..7b9ab11 100755
--- a/sbosrcarch
+++ b/sbosrcarch
@@ -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;