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
c17e15a4
Kaydet (Commit)
c17e15a4
authored
Ock 08, 2013
tarafından
Petr Mladek
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
clean up of the code that defines the download file names
Change-Id: I3241801d49673cac33eb923fb986c6ceb2c39503
üst
a575f124
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
21 deletions
+32
-21
download.pm
solenv/bin/modules/installer/download.pm
+32
-21
No files found.
solenv/bin/modules/installer/download.pm
Dosyayı görüntüle @
c17e15a4
...
...
@@ -431,57 +431,64 @@ sub get_download_architecture
}
#########################################################
# Setting the
installation
type for the download name
# Setting the
content
type for the download name
#########################################################
sub
get_
install_type
sub
get_
download_content
{
my
(
$allvariables
)
=
@_
;
my
$
type
=
""
;
my
$
content
=
""
;
# content type included in the installer
if
(
$
installer::globals::
isrpmbuild
)
{
$
type
.
=
"rpm"
;
$
content
=
"rpm"
;
}
elsif
(
$
installer::globals::
isdebbuild
)
{
$
type
.
=
"deb"
;
$
content
=
"deb"
;
}
elsif
(
$
installer::globals::
packageformat
eq
"archive"
)
{
$
type
.
=
"archive"
;
$
content
=
"archive"
;
}
$type
.=
"_"
if
(
$type
);
return
$content
;
}
#########################################################
# Setting the functionality type for the download name
#########################################################
sub
get_download_functionality
{
my
(
$allvariables
)
=
@_
;
my
$functionality
=
""
;
# functionality type
if
(
$
installer::globals::
languagepack
)
{
$
type
.
=
"langpack"
;
$
functionality
=
"langpack"
;
}
elsif
(
$
installer::globals::
helppack
)
{
$
type
.
=
"helppack"
;
$
functionality
=
"helppack"
;
}
elsif
(
$allvariables
->
{
'POSTVERSIONEXTENSION'
}
eq
"SDK"
)
{
$
type
.
=
"sdk"
;
$
functionality
=
"sdk"
;
}
elsif
(
$allvariables
->
{
'POSTVERSIONEXTENSION'
}
eq
"TEST"
)
{
$
type
.
=
"test"
;
$
functionality
=
"test"
;
}
elsif
(
$allvariables
->
{
'PRODUCTNAME'
}
eq
"URE"
)
{
$
type
.
=
"ure"
;
$
functionality
=
"ure"
;
}
# get rid of trailing _ if functionality type was not set
$type
=~
s/\_$//
;
return
$type
;
return
$functionality
;
}
###############################################################################################
...
...
@@ -498,21 +505,25 @@ sub set_download_filename
my
$versionstring
=
get_download_version
(
$allvariables
);
my
$platform
=
get_download_platformname
();
my
$architecture
=
get_download_architecture
();
my
$type
=
get_install_type
(
$allvariables
);
my
$content
=
get_download_content
(
$allvariables
);
my
$functionality
=
get_download_functionality
(
$allvariables
);
my
$language
=
get_downloadname_language
(
$languagestringref
);
# Setting the extension happens automatically
my
$filename
=
$start
.
"_"
.
$versionstring
.
"_"
.
"_"
.
$platform
.
"_"
.
$architecture
.
"_"
.
$type
.
"_"
.
$language
;
my
$filename
=
$start
.
"_"
.
$versionstring
.
"_"
.
$platform
.
"_"
.
$architecture
.
"_"
.
$content
.
"_"
.
$functionality
.
"_"
.
$language
;
$filename
=~
s/\_\_/\_/g
;
# necessary, if $versionstring or $platform or $language are empty
$filename
=~
s/\_\s*$//
;
# necessary, if $language and $addon are empty
# get rid of duplicit "_" delimiters when some strings are empty
$filename
=~
s/\_\_\_/\_/g
;
$filename
=~
s/\_\_/\_/g
;
$filename
=~
s/\_\s*$//
;
$
installer::globals::
ooodownloadfilename
=
$filename
;
return
$filename
;
}
#########################################################
# Creating a tar.gz file
#########################################################
...
...
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