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
b4ef794e
Kaydet (Commit)
b4ef794e
authored
May 19, 2017
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
take the update server url from the config
Change-Id: I9960cbc0b0c9037a1c9cf0ef7a9699bb09ad054e
üst
95602b8b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
config.py
bin/update/config.py
+2
-0
create_partial_update.py
bin/update/create_partial_update.py
+1
-1
No files found.
bin/update/config.py
Dosyayı görüntüle @
b4ef794e
...
...
@@ -9,6 +9,7 @@ class Config(object):
self
.
channel
=
None
self
.
base_url
=
None
self
.
upload_url
=
None
self
.
server_url
=
None
def
parse_config
(
config_file
):
config
=
configparser
.
ConfigParser
()
...
...
@@ -21,5 +22,6 @@ def parse_config(config_file):
data
.
certificate_path
=
updater_data
[
'certificate-path'
]
data
.
channel
=
updater_data
[
'channel'
]
data
.
upload_url
=
updater_data
[
'upload-url'
]
data
.
server_url
=
updater_data
[
"ServerURL"
]
return
data
bin/update/create_partial_update.py
Dosyayı görüntüle @
b4ef794e
...
...
@@ -55,7 +55,7 @@ def handle_language(lang_entries, filedir):
def
download_mar_for_update_channel_and_platform
(
config
,
platform
,
temp_dir
):
mar
=
os
.
environ
.
get
(
'MAR'
,
'mar'
)
base_url
=
"http://updater.libreofficecrash.org/
update/partial-targets/1/"
base_url
=
config
.
server_url
+
"
update/partial-targets/1/"
url
=
base_url
+
platform
+
"/"
+
config
.
channel
r
=
requests
.
get
(
url
)
if
r
.
status_code
is
not
200
:
...
...
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