aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2018-06-24 23:38:02 -0400
committerB. Watson <yalhcru@gmail.com>2018-06-24 23:38:02 -0400
commitb1aee38cf6a286a8ddbb6d331fc5ba57d1e1aaee (patch)
treec049960f5b4ccee4f03f628692cd31ce3c1247db
parentbeca4b4c50a92aa0a0213f5991c61149147160ba (diff)
downloadsbostuff-b1aee38cf6a286a8ddbb6d331fc5ba57d1e1aaee.tar.gz
sbosrcarch: wip
-rwxr-xr-xsbosrcarch26
1 files changed, 15 insertions, 11 deletions
diff --git a/sbosrcarch b/sbosrcarch
index 9314269..327ef0e 100755
--- a/sbosrcarch
+++ b/sbosrcarch
@@ -1680,7 +1680,7 @@ sub check_info_wanted {
my ($category, $prgnam, $file) = split /\//;
if(blacklisted("$category/$prgnam")) {
- warn " $category/$prgnam blacklisted, skipping\n";
+ print " $category/$prgnam blacklisted, skipping\n" if $verbosecheck;
return;
}
@@ -1726,14 +1726,6 @@ sub check_mode {
print "by-md5 contains both symlinks and hardlinks (harmless but messy)\n";
}
- print "--- by-name summary\n";
- if(@missingfilebuilds) {
- print "Following SlackBuilds are missing by-name files:\n";
- print " $_\n" for sort { $a cmp $b } @missingfilebuilds;
- } else {
- print "All SlackBuild download files present in by-name.\n";
- }
-
my $totalbuildcount = keys %infofilecount;
my $missingbuildcount = @missingfilebuilds;
my $completebuildcount = $totalbuildcount - $missingbuildcount;
@@ -1747,6 +1739,8 @@ sub check_mode {
my $md5_filecoverage = sprintf("%.2f", $md5_filecount * 100 / $md5_totalfiles);
print <<EOF;
+
+--- by-name status:
Total source files: $totalfiles
Archived files: $filecount
Archive size: $filemegs
@@ -1754,13 +1748,23 @@ Missing files: $missingfiles
Extraneous files: $extraneous_byname
File coverage: $filecoverage%
---- SlackBuild summary (based on by-name)
+--- SlackBuild status (based on by-name):
Total SlackBuilds: $totalbuildcount
SlackBuilds with all files present: $completebuildcount
SlackBuilds missing at least one file: $missingbuildcount
SlackBuild coverage: $coverage%
+EOF
+
+ if(@missingfilebuilds) {
+ print "Following SlackBuilds are missing by-name files:\n";
+ print " $_\n" for sort { $a cmp $b } @missingfilebuilds;
+ } else {
+ print "All SlackBuild download files present in by-name.\n";
+ }
+
+print <<EOF
---- by-md5 summary:
+--- by-md5 status:
Total source files: $md5_totalfiles
Archived files: $md5_filecount
Missing files: $md5_missingfiles