diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-09-21 02:46:34 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-09-21 02:46:34 -0400 |
| commit | ee623d1663d1c81b8d426f693050ed7e8826da1a (patch) | |
| tree | 3e5e8913f85b3fd8787c24e2861daf02a9e73167 /admin/check_dup_commits | |
| parent | 1eafc5a2fc5755f4de34b876f77754e6848b21a5 (diff) | |
| download | sbostuff-ee623d1663d1c81b8d426f693050ed7e8826da1a.tar.gz | |
check_dup_commits: fix extraneous messages.
Diffstat (limited to 'admin/check_dup_commits')
| -rwxr-xr-x | admin/check_dup_commits | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/admin/check_dup_commits b/admin/check_dup_commits index e2aa083..5c5cb3c 100755 --- a/admin/check_dup_commits +++ b/admin/check_dup_commits @@ -17,14 +17,15 @@ while(<$pipe>) { } close $pipe; +$bad = 0; for(sort keys %builds) { my $count = $builds{$_}; $count < 2 && next; print "$_: has $count local commits\n"; - $ret++; + $ret++; $bad++; } -print " Fix these, rebase, and do a git push -f\n\n" if $ret; +print " Fix these, rebase, and do a git push -f\n\n" if $bad; open $pipe, "-|", "elinks -dump-width 500 -dump -no-numbering -no-references https://slackbuilds.org/ready/"; while(<$pipe>) { @@ -40,21 +41,24 @@ while(<$pipe>) { } close $pipe; +$bad = 0; for(sort keys %builds) { my $count = $rbuilds{$_}; if($count) { print "$_: has $builds{$_} local and $count remote commits\n"; - $ret++; + $ret++; $bad++; } } -print " Remove local commits, rebase, and do a git push -f\n\n" if $ret; +print " Remove local commits, rebase, and do a git push -f\n\n" if $bad; +$bad = 0; for(sort keys %rbuilds) { my $count = $rbuilds{$_}; $count < 2 && next; print "$_: has $count remote commits\n"; + $ret++; $bad++; } -print " Let Willy know he should fix these.\n" if $ret; +print " Let Willy know he should fix these.\n" if $bad; exit $ret ? 1 : 0; |
