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
5244a49b
Kaydet (Commit)
5244a49b
authored
Haz 16, 2017
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
updater: find all the language update files
Change-Id: I5261d8d96f83b8b81b0dc2576cbd9241705ae9b7
üst
ebeb76f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
2 deletions
+28
-2
updater.cxx
onlineupdate/source/update/updater/updater.cxx
+28
-2
No files found.
onlineupdate/source/update/updater/updater.cxx
Dosyayı görüntüle @
5244a49b
...
...
@@ -2556,13 +2556,39 @@ static int
GetUpdateFileNames
(
std
::
vector
<
tstring
>
fileNames
)
{
NS_tchar
fileName
[
MAXPATHLEN
];
// TODO: moggi: needs adaption for LibreOffice
// We would like to store the name inside of an ini file
NS_tsnprintf
(
fileName
,
MAXPATHLEN
,
NS_T
(
"%s/update.mar"
),
gPatchDirPath
);
fileNames
.
push_back
(
fileName
);
// add the language packs
NS_tDIR
*
dir
=
NS_topendir
(
gPatchDirPath
);
if
(
!
dir
)
{
LOG
((
"Could not open directory "
LOG_S
,
gPatchDirPath
));
return
READ_ERROR
;
}
NS_tdirent
*
entry
;
while
((
entry
=
NS_treaddir
(
dir
))
!=
nullptr
)
{
if
(
NS_tstrcmp
(
entry
->
d_name
,
NS_T
(
"."
))
&&
NS_tstrcmp
(
entry
->
d_name
,
NS_T
(
".."
)))
{
if
(
NS_tstrncmp
(
entry
->
d_name
,
NS_T
(
"update"
),
6
)
==
0
)
{
char
*
dot
=
strrchr
(
entry
->
d_name
,
'.'
);
if
(
dot
&&
!
strcmp
(
dot
,
".mar"
))
{
NS_tchar
updatePath
[
MAXPATHLEN
];
NS_tsnprintf
(
updatePath
,
sizeof
(
updatePath
)
/
sizeof
(
updatePath
[
0
]),
NS_T
(
"%s/%s"
),
gPatchDirPath
,
entry
->
d_name
);
LOG
((
"Found language update file: "
LOG_S
,
updatePath
));
fileNames
.
push_back
(
updatePath
);
}
}
}
}
return
OK
;
}
...
...
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