Make the case where there is no changes look less fatal.

This commit is contained in:
Poul-Henning Kamp 1996-11-17 08:11:18 +00:00
parent 24e41f4044
commit a5c57c4040
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=19835
2 changed files with 6 additions and 1 deletions

View File

@ -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"

View File

@ -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");