Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
e167ff39
Kaydet (Commit)
e167ff39
authored
Nis 15, 2014
tarafından
Andre Fischer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
i124682: Use the right upgrade code for lanaguage sets.
üst
48653aa3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
3 deletions
+27
-3
msiglobal.pm
solenv/bin/modules/installer/windows/msiglobal.pm
+27
-3
No files found.
solenv/bin/modules/installer/windows/msiglobal.pm
Dosyayı görüntüle @
e167ff39
...
@@ -1567,10 +1567,12 @@ sub get_source_codes ($)
...
@@ -1567,10 +1567,12 @@ sub get_source_codes ($)
Determine values for the product code and upgrade code of the target version.
Determine values for the product code and upgrade code of the target version.
As p
erparation for building a Windows patch, certain conditions have to be ful
lfilled.
As p
reparation for building a Windows patch, certain conditions have to be fu
lfilled.
- The upgrade code
changes from old to new version
- The upgrade code
remains the same
- The product code remains the same
- The product code remains the same
In order to inforce that we have to access information about the source version.
[this is still to be determined. For patches to work we need the same product codes but
the install sets install only when the product codes differ.]
In order to enforce that we have to access information about the source version.
The resulting values are stored as global variables
The resulting values are stored as global variables
$installer::globals::productcode
$installer::globals::productcode
...
@@ -1631,6 +1633,28 @@ sub set_global_code_variables ($$)
...
@@ -1631,6 +1633,28 @@ sub set_global_code_variables ($$)
$
installer::logger::
Lang
->
printf
(
"there is no source version => created new guids\n"
);
$
installer::logger::
Lang
->
printf
(
"there is no source version => created new guids\n"
);
}
}
# Keep the upgrade code constant between versions. Read it from the codes.txt file.
# Note that this handles regular installation sets and language packs.
my
$onelanguage
=
$
{
$languagesref
}[
0
];
$
installer::logger::
Lang
->
printf
(
"reading upgrade code for language %s from %s\n"
,
$onelanguage
,
$
installer::globals::
codefilename
);
if
(
defined
$
installer::globals::
codefilename
)
{
my
$code_filename
=
$
installer::globals::
codefilename
;
installer::files::
check_file
(
$code_filename
);
my
$codefile
=
installer::files::
read_file
(
$code_filename
);
my
$searchstring
=
"UPGRADECODE"
;
my
$codeblock
=
installer::windows::idtglobal::
get_language_block_from_language_file
(
$searchstring
,
$codefile
);
$target_upgrade_code
=
installer::windows::idtglobal::
get_language_string_from_language_block
(
$codeblock
,
$onelanguage
,
""
);
}
# else use the previously generated upgrade code.
$
installer::globals::
productcode
=
$target_product_code
;
$
installer::globals::
productcode
=
$target_product_code
;
$
installer::globals::
upgradecode
=
$target_upgrade_code
;
$
installer::globals::
upgradecode
=
$target_upgrade_code
;
$allvariableshashref
->
{
'PRODUCTCODE'
}
=
$target_product_code
;
$allvariableshashref
->
{
'PRODUCTCODE'
}
=
$target_product_code
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment