Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On 08/23/2012 07:00 PM, Tim Retout wrote:
On Aug 23, 2012 9:13 AM, "Stephan Bergmann" <sbergman@redhat.com
<mailto:sbergman@redhat.com>> wrote:
 > On 08/23/2012 09:59 AM, Libreoffice Gerrit user wrote:
 >> commit 52755d6d2cf1c6addaf3c91b93bb86d66b730409
 >> Author: Stephan Bergmann <sbergman@redhat.com
<mailto:sbergman@redhat.com>>
 >> Date:   Thu Aug 23 09:47:13 2012 +0200
 >>
 >>      Revert "installer: Use hashref for
replace_all_ziplistvariables_in_rtffile"
 >>
 >>      This reverts commit 46a977081c6f1886f8fff8457c85e6d426dcc20f.
  It started to
 >>      replace occurrences of "${...}" unknown to the installer with
empty strings,
 >>      instead of keeping them as-is.  This caused the "${ORIGIN}" at
the start of the
 >>      value for URE_BOOTSTRAP to disappear from the soffice ini-file (cf.
 >>      gid_Brand_Profileitem_Soffice_UreBootstrap in
scp2/source/ooo/common_brand.scp),
 >>      making soffice fail to start completely.

 > Needed to revert, see above.  The original situation of how the
installer Perl code (we have no good name to talk about it, btw) does
string replacements was never really satisfactory to begin with,
replacing just those "${abc}" it happens to recognize (i.e., that are
defined in instsetoo_native/util/openoffice.lst, IIUC) and leaving
unknown ones (like "${ORIGIN}") alone.

Oh dear, sorry. :(  I could quite easily modify the patch to restore
that behaviour... and I'd add a test for it.  But I can see that it's
not ideal - if ORIGIN gets added to openoffice.lst, it will still fall over.

So I would go with that approach for now, anyway. It wouldn't make things worse than they were originally, and would let us still benefit from your clean-up and added test case.

Addition of an escape mechanism to make the thing more robust can come as a later step.

Stephan

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.