[koha-commits] main Koha release repository branch 3.22.x updated. v3.22.14-1-gd6bf898

Git repo owner gitmaster at git.koha-community.org
Thu Jan 19 15:48:28 CET 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".

The branch, 3.22.x has been updated
       via  d6bf898dd5b16decaf6edc892fa5c25fdf2e5218 (commit)
      from  1121c6f59ce78ec12253e4ef603b7dc05ca96764 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d6bf898dd5b16decaf6edc892fa5c25fdf2e5218
Author: Magnus Enger <magnus at libriotech.no>
Date:   Thu Sep 8 14:13:46 2016 +0200

    Bug 17265 - Make koha-create-defaults less greedy
    
    koha-create-defaults substitutes the instance name with the placeholder
    __KOHASITE__ in the SQL file that it creates. If the instance name is
    something common, like "data", this means that way too many substitutions
    will be made, and when koha-create uses the SQL file as a template, broken
    data can be the result.
    
    The solution in this patch was suggested by drojf on IRC.
    
    To test:
    - Create an instance called "data"
    - Run "sudo koha-dump-defaults data > test.sql"
    - Take a look at test.sql and verify there are way too many occurences
      of __KOHASITE__, like "-- Dumping __KOHASITE__ for table `accountlines`"
    - Apply the patch
    - Copy the resulting koha-create and koha-dump-defaults to somewhere
      running off the packages
    - Run "sudo koha-dump-defaults data > test.sql" again and verify there
      are only 4 occurrences of __KOHASITE__, in places that make sense
    - Create an instance with something like:
      $ gzip test.sql
      $ sudo koha-create --create-db --defaultsql test.sql.gz test17265
    - Verify that you have a working Koha install
    
    Signed-off-by: Andreas Roussos <arouss1980 at gmail.com>
    Works as expected.
    
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

-----------------------------------------------------------------------

Summary of changes:
 debian/scripts/koha-create        |    2 +-
 debian/scripts/koha-dump-defaults |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list