mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 08:22:44 +00:00
Make the case where there is no changes look less fatal.
This commit is contained in:
parent
24e41f4044
commit
a5c57c4040
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=19835
@ -116,6 +116,11 @@ while 1 {
|
||||
set r1 [catch "exec ${CTMSW}/mkctm -I ${CTMignore} -B ${CTMbogus} -l ${CTMtmp}.log -D $max_damage $CTMname $CTMnbr . $CTMdate $x1 $CTMref | md5 -p | gzip -9 > ${CTMtmp}:${nm}.gz 2>@ stderr" r2]
|
||||
|
||||
if {$r1} {
|
||||
if {[lindex $errorCode 2] == 4} {
|
||||
puts "No changes, stopping."
|
||||
exec rm -f $CTMlock
|
||||
exit 0
|
||||
}
|
||||
puts "problems, stopping now."
|
||||
puts "errorCode $errorCode"
|
||||
puts "$r2"
|
||||
|
@ -584,7 +584,7 @@ main(int argc, char **argv)
|
||||
errx(1, "Damage of %d would exceed %d files",
|
||||
damage, damage_limit);
|
||||
} else if (change < 2) {
|
||||
errx(1, "No changes");
|
||||
errx(4, "No changes");
|
||||
} else {
|
||||
printf("CTM_END ");
|
||||
fprintf(logf, "CTM_END\n");
|
||||
|
Loading…
Reference in New Issue
Block a user