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
14e6a83c
Kaydet (Commit)
14e6a83c
authored
Şub 15, 2012
tarafından
Tim Retout
Kaydeden (comit)
Michael Meeks
Şub 16, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove unnecessary sorting subroutines.
üst
177a9666
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
45 deletions
+1
-45
sorter.pm
solenv/bin/modules/installer/sorter.pm
+0
-26
worker.pm
solenv/bin/modules/installer/worker.pm
+1
-19
No files found.
solenv/bin/modules/installer/sorter.pm
Dosyayı görüntüle @
14e6a83c
...
...
@@ -90,30 +90,4 @@ sub sort_array_of_hashes_numerically
}
}
#########################################
# Sorting an array of of strings
#########################################
sub
sorting_array_of_strings
{
my
(
$arrayref
)
=
@_
;
for
(
my
$i
=
0
;
$i
<=
$#
{
$arrayref
};
$i
++
)
{
my
$onestringunder
=
$
{
$arrayref
}[
$i
];
for
(
my
$j
=
$i
+
1
;
$j
<=
$#
{
$arrayref
};
$j
++
)
{
my
$onestringover
=
$
{
$arrayref
}[
$j
];
if
(
$onestringunder
gt
$onestringover
)
{
$
{
$arrayref
}[
$i
]
=
$onestringover
;
$
{
$arrayref
}[
$j
]
=
$onestringunder
;
$onestringunder
=
$onestringover
;
}
}
}
}
1
;
solenv/bin/modules/installer/worker.pm
Dosyayı görüntüle @
14e6a83c
...
...
@@ -42,7 +42,6 @@ use installer::logger;
use
installer::
pathanalyzer
;
use
installer::
scpzipfiles
;
use
installer::
scriptitems
;
use
installer::
sorter
;
use
installer::
systemactions
;
use
installer::windows::
language
;
...
...
@@ -1532,23 +1531,6 @@ sub shift_file_to_end
return
\
@patchfile
;
}
###########################################################
# Putting hash content into array and sorting it
###########################################################
sub
sort_hash
{
my
(
$hashref
)
=
@_
;
my
$item
=
""
;
my
@sortedarray
=
();
foreach
$item
(
keys
%
{
$hashref
})
{
push
(
@sortedarray
,
$item
);
}
installer::sorter::
sorting_array_of_strings
(
\
@sortedarray
);
return
\
@sortedarray
;
}
###########################################################
# Renaming Windows files in Patch and creating file
# patchfiles.txt
...
...
@@ -1611,7 +1593,7 @@ sub prepare_windows_patchfiles
my
$patchlistfile
=
installer::existence::
get_specified_file_by_name
(
$filesref
,
$patchfilename
);
# reorganizing the patchfile content, sorting for directory to decrease the file size
my
$sorteddirectorylist
=
sort_hash
(
\%
patchfiledirectories
)
;
my
$sorteddirectorylist
=
[
sort
keys
%
patchfiledirectories
]
;
my
$patchfilelist
=
reorg_patchfile
(
\
@patchfiles
,
$sorteddirectorylist
);
# shifting version.ini to the end of the list, to guarantee, that all files are patched
...
...
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