[mh] collections.json being changed on $Pgm_Root?

Eloy Paris <[email protected]>
Newsgroups gmane.comp.misc.misterhouse.user
Message-ID <[email protected]>
Hi Howard,

Question on collections.json...

I set data_dir in my .ini file to avoid writing to $Pgm_Root/data. That
way git never finds a modified file in $Pgm_Root/data and I keep the
source code tree separate from the data (I'm guessing this is how
everybody does it).

I just found out that ia7_update_collection() in lib/ia7_utilities.pl
will update all collections.json files in all locations
($Pgm_Root/data/web/, $config_parms{data_dir}/web/, and
$config_parms{ia7_data_dir}/).

However, when reading the file, we seem to use the order
$config_parms{data_dir}/web/, $config_parms{ia7_data_dir}/, and
$Pgm_Root/data/web/, and stop with the first one we find.

(And similar for writing in json_write_file() -- we write to the first
we find and then stop.)

Is there any reason for updating the same file in all locations,
especially the one at $Pgm_Root/data/web/ (which will throw git off);
should we just no update the first one we find?

Cheers,

Eloy Paris.-



________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.