Skip to content
Permalink
Browse files

Exclude xmlconfig.po from Vagrant rsync

`xmlconfig.po` is derived from `config.xml`. As such, it should not be
put into the VM where it overrides the `xmlconfig.po` file generated by
the `django` container.

There was a bug that manifested itself as follows: whenever a file was
changed with `vagrant rsync-auto` running, `xmlconfig.po` within the VM
would be overwritten. If you would re-configure by running `./manage.py
setup config/config.xml`, the file would then be generated correctly,
but any other change to a file with rysnc-auto running would overwrite
it again.

This change makes it so that other `.po` files that are committed to
source control with proper translations (such as `django.po`) will still
make their way into the VM while `xmlconfig.po` will not.

A change to fix globbing to ignore `.mo` files in nested subfolders is
also included.
  • Loading branch information...
pcaisse committed Jun 1, 2018
1 parent e0195fa commit d6c255431268c491f52d13e5735a087b284a6e77
Showing with 2 additions and 1 deletion.
  1. +2 −1 Vagrantfile
@@ -16,7 +16,8 @@ Vagrant.configure(2) do |config|
"reports/",
"geoserver/data_dir/",
"django/publicmapping/publicmapping/config_settings.py",
"django/publicmapping/locale/*/*.mo"],
"django/publicmapping/locale/**/*.mo",
"django/publicmapping/locale/**/xmlconfig.po"],
rsync__args: ["--verbose", "--archive", "--delete", "-z", "--links"]

config.vm.provider :virtualbox do |vb|

0 comments on commit d6c2554

Please sign in to comment.
You can’t perform that action at this time.