In recent biber versions, the log message that tells us which bib files are used has been changed. Adapt the parser, so that bib files are tracked again.

(backport of r40542)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40547 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2011-12-26 08:47:40 +00:00
parent 3256da26eb
commit a3671ef1c4
2 changed files with 4 additions and 2 deletions

View File

@ -1196,7 +1196,7 @@ void LaTeX::scanBlgFile(DepTable & dep)
ifstream ifs(blg_file.toFilesystemEncoding().c_str()); ifstream ifs(blg_file.toFilesystemEncoding().c_str());
string token; string token;
static regex const reg1(".*Found bibtex data file '([^']+).*"); static regex const reg1(".*Found (bibtex|BibTeX) data (file|source) '([^']+).*");
while (getline(ifs, token)) { while (getline(ifs, token)) {
token = rtrim(token, "\r"); token = rtrim(token, "\r");
@ -1205,7 +1205,7 @@ void LaTeX::scanBlgFile(DepTable & dep)
// in the aux file are in the file system encoding. // in the aux file are in the file system encoding.
token = to_utf8(from_filesystem8bit(token)); token = to_utf8(from_filesystem8bit(token));
if (regex_match(token, sub, reg1)) { if (regex_match(token, sub, reg1)) {
string data = sub.str(1); string data = sub.str(3);
if (!data.empty()) { if (!data.empty()) {
LYXERR(Debug::LATEX, "Found bib file: " << data); LYXERR(Debug::LATEX, "Found bib file: " << data);
handleFoundFile(data, dep); handleFoundFile(data, dep);

View File

@ -103,6 +103,8 @@ What's new
- Fix problem with translation of theorem environments when language and - Fix problem with translation of theorem environments when language and
buffer encoding differ (bug 7941). buffer encoding differ (bug 7941).
- Fix monitoring of bib files with recent versions of biber.
- Fix python problem with common path prefixes when exporting a LyX archive - Fix python problem with common path prefixes when exporting a LyX archive
(bug 7933). (bug 7933).