• Michael Stahl's avatar
    xmloff: ODF import: improve meta:generator checks · 0d6ffe11
    Michael Stahl yazdı
    Instead of a hard-coded check for (effectively) one project name
    "LibreOffice" (which is build-time configurable), check for the string
    "LibreOffice_project", which has been produced hard-coded ever since
    LO 3.3.0.
    
    This now recognises additional downstreams "LibreOffice_Vanilla"
    and "Collabora_Office", and also historic "BrOffice".
    
    An important point here is that the build-time configurable version
    numbers of any downstream that retains the hard-coded
    "LibreOffice_project" *MUST* be the same as the upstream's at least
    in their major and minor versions (micro and further digits are
    currently not used), and that such downstreams don't backport
    changes with ODF export compatibility impact further than upstream.
    
    Add a unit test too, with a representative sample of 4372 distinct
    generators in bugzilla attachments.
    
    This revealed that StarOffice 6 and AOO 4.0.1 were falling through
    the cracks and not recognised, so fix that too.
    
    Change-Id: I8105222d3428e7b20cc4a6b8e76732c697812594
    Reviewed-on: https://gerrit.libreoffice.org/51171Tested-by: 's avatarJenkins <ci@libreoffice.org>
    Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
    0d6ffe11
Adı
Son kayıt (commit)
Son güncelleme
..
unit Loading commit data...
unoapi Loading commit data...