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
5daa3a1c
Kaydet (Commit)
5daa3a1c
authored
Agu 19, 2017
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
updater: make it easier to test some parts of the updating code
Change-Id: I7f3758eb8c12d912a47ac3a3c632347e6e124601
üst
3f8a48f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
app.cxx
desktop/source/app/app.cxx
+2
-1
updater.cxx
desktop/source/app/updater.cxx
+7
-0
No files found.
desktop/source/app/app.cxx
Dosyayı görüntüle @
5daa3a1c
...
...
@@ -1427,6 +1427,7 @@ int Desktop::Main()
osl
::
DirectoryItem
::
get
(
Updater
::
getUpdateFileURL
(),
aUpdateFile
);
const
char
*
pUpdaterTestUpdate
=
std
::
getenv
(
"LIBO_UPDATER_TEST_UPDATE"
);
const
char
*
pForcedUpdateCheck
=
std
::
getenv
(
"LIBO_UPDATER_TEST_UPDATE_CHECK"
);
if
(
pUpdaterTestUpdate
||
aUpdateFile
.
is
())
{
OUString
aBuildID
(
"${$BRAND_BASE_DIR/"
LIBO_ETC_FOLDER
"/"
SAL_CONFIGFILE
(
"version"
)
":buildid}"
);
...
...
@@ -1446,7 +1447,7 @@ int Desktop::Main()
if
(
bSuccess
)
return
EXIT_SUCCESS
;
}
else
if
(
isTimeForUpdateCheck
())
else
if
(
isTimeForUpdateCheck
()
||
pForcedUpdateCheck
)
{
sal_uInt64
nNow
=
tools
::
Time
::
GetSystemTicks
();
Updater
::
log
(
"Update Check Time: "
+
OUString
::
number
(
nNow
));
...
...
desktop/source/app/updater.cxx
Dosyayı görüntüle @
5daa3a1c
...
...
@@ -678,6 +678,13 @@ void update_checker()
OUString
aProductName
=
utl
::
ConfigManager
::
getProductName
();
OUString
aBuildID
=
Updater
::
getBuildID
();
static
const
char
*
pBuildIdEnv
=
std
::
getenv
(
"LIBO_UPDATER_BUILD"
);
if
(
pBuildIdEnv
)
{
aBuildID
=
OUString
::
createFromAscii
(
pBuildIdEnv
);
}
OUString
aBuildTarget
=
"${_OS}_${_ARCH}"
;
rtl
::
Bootstrap
::
expandMacros
(
aBuildTarget
);
OUString
aChannel
=
officecfg
::
Office
::
Update
::
Update
::
UpdateChannel
::
get
();
...
...
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