summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-09-12 19:04:26 +0200
committerMichael Stahl <mstahl@redhat.com>2013-09-12 19:53:32 +0200
commit1f3f3c94458aef5df3d30e32b497885cccf32a52 (patch)
treed8e544afcba7ca25afedc1bf2958a66aeca3e8db /solenv
parent7a6fd503b1c69e99eb1bcfb55a453a1afad3e4eb (diff)
installer: find files in INSTDIR also on WNT
... where everything is inside some artificial "LibreOffice 4" directory that is set as WINDOWSBASISROOTNAME in openoffice.lst.in Change-Id: Ib04f84a8064739e0ea9d11b3b79cc1fa167a06e5
Diffstat (limited to 'solenv')
-rw-r--r--solenv/bin/modules/installer.pm4
-rw-r--r--solenv/bin/modules/installer/scriptitems.pm9
2 files changed, 9 insertions, 4 deletions
diff --git a/solenv/bin/modules/installer.pm b/solenv/bin/modules/installer.pm
index 7093e64ad75e..a26196ac99cf 100644
--- a/solenv/bin/modules/installer.pm
+++ b/solenv/bin/modules/installer.pm
@@ -588,7 +588,7 @@ sub run {
installer::scriptitems::get_Destination_Directory_For_Item_From_Directorylist($filesinproductlanguageresolvedarrayref, $dirsinproductarrayref);
- installer::scriptitems::get_Source_Directory_For_Files_From_Includepathlist($filesinproductlanguageresolvedarrayref, $includepatharrayref_lang, $dirsinproductlanguageresolvedarrayref, "Files");
+ installer::scriptitems::get_Source_Directory_For_Files_From_Includepathlist($filesinproductlanguageresolvedarrayref, $includepatharrayref_lang, $dirsinproductlanguageresolvedarrayref, "Files", $allvariableshashref);
$filesinproductlanguageresolvedarrayref = installer::scriptitems::remove_Files_Without_Sourcedirectory($filesinproductlanguageresolvedarrayref);
@@ -672,7 +672,7 @@ sub run {
installer::scriptitems::changing_name_of_language_dependent_keys($scpactionsinproductlanguageresolvedarrayref);
- installer::scriptitems::get_Source_Directory_For_Files_From_Includepathlist($scpactionsinproductlanguageresolvedarrayref, $includepatharrayref_lang, $dirsinproductlanguageresolvedarrayref, "ScpActions");
+ installer::scriptitems::get_Source_Directory_For_Files_From_Includepathlist($scpactionsinproductlanguageresolvedarrayref, $includepatharrayref_lang, $dirsinproductlanguageresolvedarrayref, "ScpActions", $allvariableshashref);
# Editing scpactions with flag SCPZIP_REPLACE.
diff --git a/solenv/bin/modules/installer/scriptitems.pm b/solenv/bin/modules/installer/scriptitems.pm
index e0ed89f157dd..749ada966ca8 100644
--- a/solenv/bin/modules/installer/scriptitems.pm
+++ b/solenv/bin/modules/installer/scriptitems.pm
@@ -1014,10 +1014,11 @@ sub get_sourcepath_from_filename_and_includepath
sub get_Source_Directory_For_Files_From_Includepathlist
{
- my ($filesarrayref, $includepatharrayref, $dirsref, $item) = @_;
+ my ($filesarrayref, $includepatharrayref, $dirsref, $item, $allvariables) = @_;
installer::logger::include_header_into_logfile("$item:");
+ my $extrarootdir = $allvariables->{'WINDOWSBASISROOTNAME'};
my $infoline = "";
for ( my $i = 0; $i <= $#{$filesarrayref}; $i++ )
@@ -1044,7 +1045,11 @@ sub get_Source_Directory_For_Files_From_Includepathlist
my $instdirdestination;
if ($destination)
{
- $instdirdestination = $ENV{'INSTDIR'} . $installer::globals::separator . $onefile->{'destination'};
+ if ($extrarootdir)
+ {
+ $destination =~ s,$extrarootdir/,,; # remove it from path
+ }
+ $instdirdestination = $ENV{'INSTDIR'} . $installer::globals::separator . $destination;
}
if ($instdirdestination && -f $instdirdestination)
{