We don't use any 'pooling' when packaging
This commit is contained in:
@@ -20,7 +20,6 @@ Globals
|
|||||||
SOLSUREPACKAGEPREFIX libreoffice
|
SOLSUREPACKAGEPREFIX libreoffice
|
||||||
USE_FILEVERSION 1
|
USE_FILEVERSION 1
|
||||||
LIBRARYVERSION 9.4.0
|
LIBRARYVERSION 9.4.0
|
||||||
POOLPRODUCT 1
|
|
||||||
REGISTRATION_HOST https://registration.libreoffice.org/RegistrationWeb
|
REGISTRATION_HOST https://registration.libreoffice.org/RegistrationWeb
|
||||||
REGISTRATIONURL http://survey.libreoffice.org/user/index.php
|
REGISTRATIONURL http://survey.libreoffice.org/user/index.php
|
||||||
PROGRESSBARCOLOR 126,170,23
|
PROGRESSBARCOLOR 126,170,23
|
||||||
@@ -185,7 +184,6 @@ URE
|
|||||||
SETSTATICPATH 1
|
SETSTATICPATH 1
|
||||||
NOVERSIONINDIRNAME 1
|
NOVERSIONINDIRNAME 1
|
||||||
PCPFILENAME ure.pcp
|
PCPFILENAME ure.pcp
|
||||||
POOLPRODUCT 0
|
|
||||||
GLOBALFILEGID gid_File_Dl_Cppu
|
GLOBALFILEGID gid_File_Dl_Cppu
|
||||||
DONTUSESTARTMENUFOLDER 1
|
DONTUSESTARTMENUFOLDER 1
|
||||||
RELATIVE_PATHES_IN_DDF 1
|
RELATIVE_PATHES_IN_DDF 1
|
||||||
@@ -222,7 +220,6 @@ LibreOffice_SDK
|
|||||||
PACKAGEVERSION 3.6.0
|
PACKAGEVERSION 3.6.0
|
||||||
PACKAGEREVISION {buildid}
|
PACKAGEREVISION {buildid}
|
||||||
PACK_INSTALLED 1
|
PACK_INSTALLED 1
|
||||||
POOLPRODUCT 0
|
|
||||||
DMG_VOLUMEEXTENSION SDK
|
DMG_VOLUMEEXTENSION SDK
|
||||||
DATABASENAME libreoffice35sdk
|
DATABASENAME libreoffice35sdk
|
||||||
NO_README_IN_ROOTDIR 1
|
NO_README_IN_ROOTDIR 1
|
||||||
@@ -271,7 +268,6 @@ LibreOffice_Dev_SDK
|
|||||||
REGISTRYLAYERNAME LayerDev
|
REGISTRYLAYERNAME LayerDev
|
||||||
DEVELOPMENTPRODUCT 1
|
DEVELOPMENTPRODUCT 1
|
||||||
PACK_INSTALLED 1
|
PACK_INSTALLED 1
|
||||||
POOLPRODUCT 0
|
|
||||||
DMG_VOLUMEEXTENSION SDK
|
DMG_VOLUMEEXTENSION SDK
|
||||||
DATABASENAME libreoffice35devsdk
|
DATABASENAME libreoffice35devsdk
|
||||||
NO_README_IN_ROOTDIR 1
|
NO_README_IN_ROOTDIR 1
|
||||||
@@ -314,7 +310,6 @@ LibreOffice_Test
|
|||||||
PACKAGEVERSION 3.6.0
|
PACKAGEVERSION 3.6.0
|
||||||
PACKAGEREVISION {buildid}
|
PACKAGEREVISION {buildid}
|
||||||
PACK_INSTALLED 1
|
PACK_INSTALLED 1
|
||||||
POOLPRODUCT 0
|
|
||||||
DMG_VOLUMEEXTENSION TEST
|
DMG_VOLUMEEXTENSION TEST
|
||||||
DATABASENAME libreoffice35test
|
DATABASENAME libreoffice35test
|
||||||
NO_README_IN_ROOTDIR 1
|
NO_README_IN_ROOTDIR 1
|
||||||
@@ -363,7 +358,6 @@ LibreOffice_Dev_Test
|
|||||||
REGISTRYLAYERNAME LayerDev
|
REGISTRYLAYERNAME LayerDev
|
||||||
DEVELOPMENTPRODUCT 1
|
DEVELOPMENTPRODUCT 1
|
||||||
PACK_INSTALLED 1
|
PACK_INSTALLED 1
|
||||||
POOLPRODUCT 0
|
|
||||||
DMG_VOLUMEEXTENSION TEST
|
DMG_VOLUMEEXTENSION TEST
|
||||||
DATABASENAME libreoffice35devtest
|
DATABASENAME libreoffice35devtest
|
||||||
NO_README_IN_ROOTDIR 1
|
NO_README_IN_ROOTDIR 1
|
||||||
|
@@ -49,7 +49,6 @@ use installer::languagepack;
|
|||||||
use installer::languages;
|
use installer::languages;
|
||||||
use installer::logger;
|
use installer::logger;
|
||||||
use installer::packagelist;
|
use installer::packagelist;
|
||||||
use installer::packagepool;
|
|
||||||
use installer::parameter;
|
use installer::parameter;
|
||||||
use installer::pathanalyzer;
|
use installer::pathanalyzer;
|
||||||
use installer::profiles;
|
use installer::profiles;
|
||||||
@@ -1354,39 +1353,6 @@ for ( my $n = 0; $n <= $#installer::globals::languageproducts; $n++ )
|
|||||||
|
|
||||||
installer::logger::include_header_into_logfile("Creating package: $packagename ($k)");
|
installer::logger::include_header_into_logfile("Creating package: $packagename ($k)");
|
||||||
|
|
||||||
####################################################
|
|
||||||
# Pool check: If package is created at the moment
|
|
||||||
# try it again later.
|
|
||||||
####################################################
|
|
||||||
|
|
||||||
if (( $installer::globals::patch ) ||
|
|
||||||
( $installer::globals::languagepack ) ||
|
|
||||||
( $installer::globals::helppack ) ||
|
|
||||||
( $installer::globals::packageformat eq "native" ) ||
|
|
||||||
( $installer::globals::packageformat eq "portable" ) ||
|
|
||||||
( $installer::globals::packageformat eq "osx" )) { $allvariableshashref->{'POOLPRODUCT'} = 0; }
|
|
||||||
|
|
||||||
if ( $allvariableshashref->{'POOLPRODUCT'} )
|
|
||||||
{
|
|
||||||
if ( ! $installer::globals::sessionidset ) { installer::packagepool::set_sessionid(); }
|
|
||||||
if ( ! $installer::globals::poolpathset ) { installer::packagepool::set_pool_path(); }
|
|
||||||
if (( ! $installer::globals::getuidpathset ) && ( $installer::globals::issolarisbuild )) { installer::worker::set_getuid_path($includepatharrayref); }
|
|
||||||
|
|
||||||
my $package_is_creatable = installer::packagepool::check_package_availability($packagename);
|
|
||||||
|
|
||||||
if (( ! $package_is_creatable ) && ( ! exists($installer::globals::poolshiftedpackages{$packagename}) ))
|
|
||||||
{
|
|
||||||
splice(@{$packages}, $k, 1); # removing package ...
|
|
||||||
push(@{$packages}, $onepackage); # ... and adding it to the end
|
|
||||||
$installer::globals::poolshiftedpackages{$packagename} = 1; # only shifting each package once
|
|
||||||
$k--; # decreasing the counter
|
|
||||||
my $localinfoline = "Pool: Package \"$packagename\" cannot be created at the moment. Trying again later (1).\n";
|
|
||||||
installer::logger::print_message($localinfoline);
|
|
||||||
push( @installer::globals::logfileinfo, $localinfoline);
|
|
||||||
next; # repeating this iteration with new package
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
###########################################
|
###########################################
|
||||||
# Root path, can be defined as parameter
|
# Root path, can be defined as parameter
|
||||||
###########################################
|
###########################################
|
||||||
@@ -1611,42 +1577,6 @@ for ( my $n = 0; $n <= $#installer::globals::languageproducts; $n++ )
|
|||||||
installer::epmfile::resolve_path_in_epm_list_before_packaging(\@epmfile, $completeepmfilename, "UREPACKAGEPREFIX", $allvariableshashref->{'UREPACKAGEPREFIX'});
|
installer::epmfile::resolve_path_in_epm_list_before_packaging(\@epmfile, $completeepmfilename, "UREPACKAGEPREFIX", $allvariableshashref->{'UREPACKAGEPREFIX'});
|
||||||
installer::files::save_file($completeepmfilename ,\@epmfile);
|
installer::files::save_file($completeepmfilename ,\@epmfile);
|
||||||
|
|
||||||
#######################################################
|
|
||||||
# Now the complete content of the package is known,
|
|
||||||
# including variables and shell scripts.
|
|
||||||
# Create the package or using the package pool?
|
|
||||||
#######################################################
|
|
||||||
|
|
||||||
my $use_package_from_pool = 0;
|
|
||||||
if ( $allvariableshashref->{'POOLPRODUCT'} ) { $use_package_from_pool = installer::packagepool::package_is_up_to_date($allvariableshashref, $onepackage, $packagename, \@epmfile, $filesinpackage, $installdir, $installer::globals::epmoutpath, $languagestringref); }
|
|
||||||
|
|
||||||
if ( $use_package_from_pool == 3 ) # repeat this package later
|
|
||||||
{
|
|
||||||
my $package_is_creatable = installer::packagepool::check_package_availability($packagename);
|
|
||||||
|
|
||||||
if (( ! $package_is_creatable ) && ( ! exists($installer::globals::poolshiftedpackages{$packagename}) ))
|
|
||||||
{
|
|
||||||
splice(@{$packages}, $k, 1); # removing package ...
|
|
||||||
push(@{$packages}, $onepackage); # ... and adding it to the end
|
|
||||||
$installer::globals::poolshiftedpackages{$packagename} = 1; # only shifting each package once
|
|
||||||
$k--; # decreasing the counter
|
|
||||||
my $localinfoline = "\nPool: Package \"$packagename\" cannot be created at the moment. Trying again later (2).\n";
|
|
||||||
installer::logger::print_message($localinfoline);
|
|
||||||
push( @installer::globals::logfileinfo, $localinfoline);
|
|
||||||
next; # repeating this iteration with new package
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( $use_package_from_pool == 4 ) # There was a problem with pooling. Repeat this package immediately.
|
|
||||||
{
|
|
||||||
$k--; # decreasing the counter
|
|
||||||
my $localinfoline = "\nPool: Package \"$packagename\" had pooling problems. Repeating packaging immediately (3).\n";
|
|
||||||
installer::logger::print_message($localinfoline);
|
|
||||||
push( @installer::globals::logfileinfo, $localinfoline);
|
|
||||||
next; # repeating this iteration
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( $use_package_from_pool == 0 )
|
|
||||||
{
|
{
|
||||||
# changing into the "install" directory to create installation sets
|
# changing into the "install" directory to create installation sets
|
||||||
|
|
||||||
@@ -1694,6 +1624,7 @@ for ( my $n = 0; $n <= $#installer::globals::languageproducts; $n++ )
|
|||||||
# solaris patch not needed anymore
|
# solaris patch not needed anymore
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
else # this is the standard epm (not relocatable) or ( nonlinux and nonsolaris )
|
else # this is the standard epm (not relocatable) or ( nonlinux and nonsolaris )
|
||||||
{
|
{
|
||||||
installer::epmfile::resolve_path_in_epm_list_before_packaging(\@epmfile, $completeepmfilename, "\$\$PRODUCTINSTALLLOCATION", $relocatablepath);
|
installer::epmfile::resolve_path_in_epm_list_before_packaging(\@epmfile, $completeepmfilename, "\$\$PRODUCTINSTALLLOCATION", $relocatablepath);
|
||||||
@@ -1714,11 +1645,9 @@ for ( my $n = 0; $n <= $#installer::globals::languageproducts; $n++ )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $allvariableshashref->{'POOLPRODUCT'} ) { installer::packagepool::put_content_into_pool($packagename, $installdir, $installer::globals::epmoutpath, $filesinpackage, \@epmfile); }
|
|
||||||
|
|
||||||
chdir($currentdir); # changing back into start directory
|
chdir($currentdir); # changing back into start directory
|
||||||
|
|
||||||
} # end of "if ( ! $use_package_from_pool )
|
}
|
||||||
|
|
||||||
} # end of "if ( ! $installer::globals::simple )
|
} # end of "if ( ! $installer::globals::simple )
|
||||||
|
|
||||||
@@ -1726,7 +1655,7 @@ for ( my $n = 0; $n <= $#installer::globals::languageproducts; $n++ )
|
|||||||
# xpd installation mechanism
|
# xpd installation mechanism
|
||||||
###########################################
|
###########################################
|
||||||
|
|
||||||
# Creating the xpd file for the package. This has to happen always, not determined by $use_package_from_pool
|
# Creating the xpd file for the package. This has to happen always
|
||||||
|
|
||||||
if ( $installer::globals::isxpdplatform )
|
if ( $installer::globals::isxpdplatform )
|
||||||
{
|
{
|
||||||
@@ -1745,8 +1674,6 @@ for ( my $n = 0; $n <= $#installer::globals::languageproducts; $n++ )
|
|||||||
|
|
||||||
} # end of "for ( my $k = 0; $k <= $#{$packages}; $k++ )"
|
} # end of "for ( my $k = 0; $k <= $#{$packages}; $k++ )"
|
||||||
|
|
||||||
installer::packagepool::log_pool_statistics();
|
|
||||||
|
|
||||||
##############################################################
|
##############################################################
|
||||||
# Post epm functionality, after the last package is packed
|
# Post epm functionality, after the last package is packed
|
||||||
##############################################################
|
##############################################################
|
||||||
|
@@ -47,10 +47,6 @@ sub exit_program
|
|||||||
|
|
||||||
if ( $installer::globals::saveinstalldir =~ /_inprogress/ ) { installer::systemactions::rename_string_in_directory($installer::globals::saveinstalldir, "_inprogress", "_witherror"); }
|
if ( $installer::globals::saveinstalldir =~ /_inprogress/ ) { installer::systemactions::rename_string_in_directory($installer::globals::saveinstalldir, "_inprogress", "_witherror"); }
|
||||||
|
|
||||||
# Cleaning files from pool tooling
|
|
||||||
if ( $installer::globals::processhaspoolcheckfile ) { unlink $installer::globals::poolcheckfilename; }
|
|
||||||
if ( $installer::globals::processhaspoollockfile ) { unlink $installer::globals::poollockfilename; }
|
|
||||||
|
|
||||||
installer::worker::clean_output_tree(); # removing directories created in the output tree
|
installer::worker::clean_output_tree(); # removing directories created in the output tree
|
||||||
|
|
||||||
# If @installer::globals::logfileinfo is not empty, it can be used.
|
# If @installer::globals::logfileinfo is not empty, it can be used.
|
||||||
|
@@ -342,15 +342,7 @@ BEGIN
|
|||||||
$nopatchfilecollector = "";
|
$nopatchfilecollector = "";
|
||||||
@userregistrycollector = ();
|
@userregistrycollector = ();
|
||||||
$addeduserregitrykeys = 0;
|
$addeduserregitrykeys = 0;
|
||||||
$poolpathset = 0;
|
|
||||||
$poolpath = 0;
|
|
||||||
$poollockfilename = "";
|
|
||||||
$poolcheckfilename = "";
|
|
||||||
%poolshiftedpackages = ();
|
|
||||||
%poolpackages = ();
|
|
||||||
%createpackages = ();
|
%createpackages = ();
|
||||||
$processhaspoolcheckfile = 0;
|
|
||||||
$processhaspoollockfile = 0;
|
|
||||||
$newpcfcontentcalculated = 0;
|
$newpcfcontentcalculated = 0;
|
||||||
$sessionid = 0;
|
$sessionid = 0;
|
||||||
$sessionidset = 0;
|
$sessionidset = 0;
|
||||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user