Fix a bug where the DVI file was not updated due to an old format .dep file.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6383 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2003-03-07 20:17:40 +00:00
parent 120c89f24f
commit e36eb8f674
4 changed files with 14 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2003-03-07 Dekel Tsur <dekelts@tau.ac.il>
* LaTeX.C (run): Fix a bug where the DVI file was not updated due
to an old format .dep file.
2003-03-07 Angus Leeming <leeming@lyx.org>
* BufferView_pimpl.C (dispatch):

View File

@ -234,7 +234,7 @@ void DepTable::write(string const & f) const
}
void DepTable::read(string const & f)
bool DepTable::read(string const & f)
{
ifstream ifs(f.c_str());
string nome;
@ -252,4 +252,5 @@ void DepTable::read(string const & f)
}
deplist[nome] = di;
}
return deplist.size();
}

View File

@ -32,8 +32,8 @@ public:
///
void write(string const & f) const;
///
void read(string const & f);
/// returns true if dep file was read successfully
bool read(string const & f);
/// returns true if any of the files has changed
bool sumchange() const;
/// return true if fil has changed.

View File

@ -180,7 +180,10 @@ int LaTeX::run(TeXErrors & terr, LyXFunc * lfun)
if (had_depfile) {
lyxerr[Debug::DEPEND] << "Dependency file exists" << endl;
// Read the dep file:
head.read(depfile);
had_depfile = head.read(depfile);
}
if (had_depfile) {
// Update the checksums
head.update();
// Can't just check if anything has changed because it might have aborted
@ -201,7 +204,7 @@ int LaTeX::run(TeXErrors & terr, LyXFunc * lfun)
run_bibtex = true;
} else
lyxerr[Debug::DEPEND]
<< "Dependency file does not exist" << endl;
<< "Dependency file does not exist, or has wrong format" << endl;
/// We scan the aux file even when had_depfile = false,
/// because we can run pdflatex on the file after running latex on it,