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
7c77a44c
Kaydet (Commit)
7c77a44c
authored
Eki 27, 2014
tarafından
Tor Lillqvist
Kaydeden (comit)
Tomaž Vajngerl
Ara 04, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Beware of modifying a list being iterated
Change-Id: Ib9cf1a47eb20bd28d954ddcded89f67cf6865f1c
üst
ebd86807
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
10 deletions
+18
-10
mobile-config.py
android/mobile-config.py
+18
-10
No files found.
android/mobile-config.py
Dosyayı görüntüle @
7c77a44c
...
@@ -54,18 +54,26 @@ if __name__ == '__main__':
...
@@ -54,18 +54,26 @@ if __name__ == '__main__':
tree
=
ET
.
parse
(
sys
.
argv
[
1
])
tree
=
ET
.
parse
(
sys
.
argv
[
1
])
root
=
tree
.
getroot
()
root
=
tree
.
getroot
()
saved
=
0
total
=
0
total
=
0
for
child
in
root
:
for
child
in
root
:
section
=
child
.
attrib
[
'{http://openoffice.org/2001/registry}name'
]
total
+=
len
(
ET
.
tostring
(
child
))
package
=
child
.
attrib
[
'{http://openoffice.org/2001/registry}package'
]
size
=
len
(
ET
.
tostring
(
child
));
saved
=
0
total
=
total
+
size
restarted
=
True
key
=
'
%
s/
%
s'
%
(
package
,
section
)
if
key
in
main_xcd_discard
:
while
restarted
:
root
.
remove
(
child
)
restarted
=
False
print
'removed
%
s - saving
%
d'
%
(
key
,
size
)
for
child
in
root
:
saved
=
saved
+
size
section
=
child
.
attrib
[
'{http://openoffice.org/2001/registry}name'
]
package
=
child
.
attrib
[
'{http://openoffice.org/2001/registry}package'
]
size
=
len
(
ET
.
tostring
(
child
));
key
=
'
%
s/
%
s'
%
(
package
,
section
)
if
key
in
main_xcd_discard
:
root
.
remove
(
child
)
print
'removed
%
s - saving
%
d'
%
(
key
,
size
)
saved
=
saved
+
size
restarted
=
True
break
print
"saved
%
d of
%
d bytes:
%2
.f
%%
"
%
(
saved
,
total
,
saved
*
100.0
/
total
)
print
"saved
%
d of
%
d bytes:
%2
.f
%%
"
%
(
saved
,
total
,
saved
*
100.0
/
total
)
...
...
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