[Lxr-commits] CVS: lxr genxref,1.67,1.68
Brought to you by:
ajlittoz
From: Andre-Littoz <ajl...@us...> - 2013-11-08 18:14:06
|
Update of /cvsroot/lxr/lxr In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv15032 Modified Files: genxref Log Message: Index.pm, Lang/Generic.pm, Common.pm, genxref: make sure the human-readable type description is initialised in every database (Important for genxref, does not really matter for browsing) Parser tables are cached after first instantiation while they are written if needed into DB. Under --allurls genxref connects to new DB and, though parser initialisation is called again, the loaded cache prevents from writing the types in the new DB. A running DB counter is created. Whenever, its value is different from the cached one, writing types table is forced. Index: genxref =================================================================== RCS file: /cvsroot/lxr/lxr/genxref,v retrieving revision 1.67 retrieving revision 1.68 diff -u -d -r1.67 -r1.68 --- genxref 24 Sep 2013 15:21:36 -0000 1.67 +++ genxref 8 Nov 2013 18:14:03 -0000 1.68 @@ -402,14 +402,11 @@ . " - Can't run${VTnorm}\n"; } - $files = LXR::Files->new ( $config->{'sourceroot'} - , $config->{'sourceparams'} - ); + $files = LXR::Files->new($config); die "${VTred}Can't create file access object ${VTnorm}" . $config->{'sourceroot'} if !defined($files); - $index = LXR::Index->new ( $config->{'dbname'} - , $config->{'dbprefix'} - ); + $LXR::Index::database_id++; # Changing database + $index = LXR::Index->new($config); die "${VTred}Can't create Index ${VTnorm}" . $config->{'dbname'} if !defined($index); |