Kaydet (Commit) ad21f8ec authored tarafından Markus Mohrhard's avatar Markus Mohrhard

updater: also write channel to version.ini outside of instdir

Change-Id: Ibb087fc9cd17e50accf78f805e0fec4f202334b1
üst bfd8a4e2
......@@ -565,6 +565,15 @@ ProfileItem gid_Brand_Profileitem_Version_Updateurl
#endif
End
ProfileItem gid_Brand_Profileitem_Version_UpdateChannel
ProfileID = gid_Brand_Profile_Version_Ini;
ModuleID = gid_Module_Root_Brand;
Section = "Version";
Order = 19;
Key = "UpdateChannel";
Value = "<updatechannel>";
End
ProfileItem gid_Brand_Profileitem_Version_Updateid
ProfileID = gid_Brand_Profile_Version_Ini;
ModuleID = gid_Module_Root_Brand;
......
......@@ -656,6 +656,26 @@ sub replace_setup_variables
my $updateid = $productname . "_" . $libo_version_major . "_" . $$languagestringref;
$updateid =~ s/ /_/g;
my $updatechannel = "";
if ( $ENV{'UPDATE_CONFIG'} && $ENV{'UPDATE_CONFIG'} ne "")
{
open(CONFIG, $ENV{'UPDATE_CONFIG'});
while (<CONFIG>)
{
chomp;
if (/^s*(\S+)=(\S+)$/)
{
$key = $1;
$val = $2;
if ($key eq "channel")
{
$updatechannel = $val;
}
}
}
close(CONFIG);
}
for ( my $i = 0; $i <= $#{$itemsarrayref}; $i++ )
{
my $oneitem = ${$itemsarrayref}[$i];
......@@ -669,6 +689,7 @@ sub replace_setup_variables
$value =~ s/\<alllanguages\>/$languagesstring/;
$value =~ s/\<sourceid\>/$installer::globals::build/;
$value =~ s/\<updateid\>/$updateid/;
$value =~ s/\<updatechannel\>/$updatechannel/;
$value =~ s/\<pkgformat\>/$installer::globals::packageformat/;
$ENV{'OOO_VENDOR'} = "" if !defined $ENV{'OOO_VENDOR'};
$value =~ s/\<vendor\>/$ENV{'OOO_VENDOR'}/;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment