* Correctly handle the case of an empty build-status file.

svn path=/trunk/kdenonbeta/kdecvs-build/; revision=320828
wilder
Michael Pyne 22 years ago
parent bb1afb74ca
commit e217a3d29c
  1. 8
      kdecvs-build

@ -849,6 +849,14 @@ sub get_build_list
close STATUS_FILE; close STATUS_FILE;
if (not defined $oldline)
{
# Hmm, empty file?
print "Unable to read information from resume status file.\n";
print "It's probably empty, but there's no way to resume!\n";
return ();
}
chomp $oldline; chomp $oldline;
print "The last success line is $oldline\n" if debugging; print "The last success line is $oldline\n" if debugging;

Loading…
Cancel
Save