Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
I
inary
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)
1
Konular (issue)
1
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ç
SulinOS
inary
Commits
a643c436
Unverified
Kaydet (Commit)
a643c436
authored
Tem 11, 2020
tarafından
Suleyman Poyraz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Inode caching için bir başlangıç.
üst
e061aaaa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
installdb.py
inary/db/installdb.py
+10
-6
No files found.
inary/db/installdb.py
Dosyayı görüntüle @
a643c436
...
...
@@ -90,12 +90,16 @@ class InstallDB(lazydb.LazyDB):
#Clear old inode cache TODO: drop cache need option
#open("/proc/sys/vm/drop_caches","w").write("2")
for
package
in
self
.
list_installed
():
i
=
os
.
path
.
join
(
self
.
package_path
(
package
),
ctx
.
const
.
metadata_xml
)
ctx
.
ui
.
debug
(
_
(
"Checking {}"
)
.
format
(
package
))
if
os
.
path
.
isfile
(
i
):
open
(
i
,
"rb"
)
.
read
(
1
)
ie_path
=
os
.
path
.
join
(
self
.
package_path
(
package
),
ctx
.
const
.
metadata_xml
)
ctx
.
ui
.
debug
(
_
(
"Checking inode {}"
)
.
format
(
package
))
if
os
.
path
.
isfile
(
ie_path
):
os
.
stat
(
ie_path
)
else
:
ctx
.
ui
.
error
(
_
(
"Unhandled corruption on {0} package metadata."
"Please check installation of {0} package"
)
.
format
(
package
))
@staticmethod
...
...
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