2014-01-28 Murray Cumming 1.25.6 2014-01-28 Murray Cumming Backup: Simplify the code and fix the problem with groups. * glom/libglom/connectionpool.[h|cc]: convert_backup(): Take a path to the (postgres-specific) backup data file instead of a path to the parent directory, so we do not need to guess the actual path. * glom/libglom/connectionpool_backends/backend.h * glom/libglom/connectionpool_backends/mysql.[h|cc]: * glom/libglom/connectionpool_backends/postgres.[h|cc]: * glom/libglom/connectionpool_backends/sqlite.[h|cc]: convert_backup(): Rename path_backup to backup_data_file_path to make it clearer. * glom/libglom/document/document.[h|cc]: extract_backup_file(): Take a path to the (postgres-specific) backup data file, * glom/appwindow.[h|cc]: do_restore_backup(): Store the path to the backup data file in m_backup_data_filepath temporarily. on_document_load(): Pass m_backup_data_filepath to recreate_database_from_example(). recreate_database_from_example(): Take a path to the backup data instead of a URI to the .glom file, and pass that path to ConnectionPool::convert_backup(). Also add groups before restoring the backup data, because it needs these groups to exist already. * glom/libglom/db_utils.cc: add_group(): Do not fail if the autoincrements table does not exist yet, because this can happen while restoring data from a backup. * tests/test_selfhosting_new_then_backup_restore.cc: Adapted. 2014-01-28 Murray Cumming Fix restoring from backups. * glom/appwindow.cc: recreate_database_from_backup(): Do not try to add the standard groups until after restoring from the postgres backup data, because we try (and fail) to set groups for standard tables that do not exist yet. 2014-01-28 Murray Cumming Added a little error output. 2014-01-20 Matej Urbančič Updated Slovenian translation 2014-01-19 Marek Černocký Updated Czech translation 2014-01-15 Murray Cumming Exporting Backup: Save the backup data file too. * glom/libglom/document/document.cc: save_backup_file(): Move some code to an add_file_to_archive() utility function and use it to add the postgres backup data export file too. 2014-01-15 Daniel Mustieles Updated Spanish translation 2014-01-14 Murray Cumming Some bytes-versus-characters corrections. 2014-01-14 Murray Cumming AppWindow: Avoid an infinite loop when loading fails. * glom/appwindow.cc: ui_warning_load_failed(): Do not call the function itself. This was a side-effect of a recent collapsing of the class hierarchy. 2014-01-08 Murray Cumming Backups: Use libarchive instead of calling the tar command-line utility. * configure.ac: Depend on libarchive. * glom/libglom/document/document.[h|cc]: save_backup_file(): Use libarchive instead of the command-line. restore_backup_file(): Rename to extract backup_file() and redocument it to return the contents in memory rather than a path to a temporary file. Use libarchive rather than the command-line. * tests/test_selfhosting_utils.[h|cc]: Add test_create_and_selfhost_from_data(), moving some shared code into after_load(). * tests/test_selfhosting_new_then_backup_restore.cc: Adapted. The libarchive API is not well documented and the code is rather verbose and repetitive, mostly due to the error checking, so it does not feel entirely robust. But in general, this should be safer than using shell commands, even though we were doing that properly. And this would let us load the example data progressively/asynchronously if we make suitable changes to the API. 2013-12-24 Marek Černocký Updated Czech translation 2013-12-19 Murray Cumming 1.25.5